本文整理汇总了Java中org.apache.isis.applib.annotation.Editing类的典型用法代码示例。如果您正苦于以下问题:Java Editing类的具体用法?Java Editing怎么用?Java Editing使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Editing类属于org.apache.isis.applib.annotation包,在下文中一共展示了Editing类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getName
import org.apache.isis.applib.annotation.Editing; //导入依赖的package包/类
@javax.jdo.annotations.NotPersistent
@Property(
domainEvent = NameDomainEvent.class,
editing = Editing.DISABLED
)
@PropertyLayout(
hidden=Where.OBJECT_FORMS
)
@MemberOrder(name="Id", sequence = "1")
public String getName() {
final StringBuilder buf = new StringBuilder();
if(getFamilyName() != null) {
if(getKnownAs() != null) {
buf.append(getKnownAs());
} else {
buf.append(getGivenName());
}
buf.append(' ')
.append(getFamilyName())
.append(" (").append(getUsername()).append(')');
} else {
buf.append(getUsername());
}
return buf.toString();
}
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:26,代码来源:ApplicationUser.java
示例2: getNotification
import org.apache.isis.applib.annotation.Editing; //导入依赖的package包/类
@Property(editing = Editing.DISABLED)
@PropertyLayout(multiLine = 5)
public String getNotification(){
final StringBuilder result = new StringBuilder();
final String noBuyerBarcodeMatch = buyerBarcodeMatchValidation();
if (noBuyerBarcodeMatch!=null){
result.append(noBuyerBarcodeMatch);
}
final String sameInvoiceNumberCheck = doubleInvoiceCheck();
if (sameInvoiceNumberCheck !=null){
result.append(sameInvoiceNumberCheck);
}
return result.length()>0 ? result.toString() : null;
}
开发者ID:estatio,项目名称:estatio,代码行数:19,代码来源:IncomingDocAsInvoiceViewModel.java
示例3: getNotification
import org.apache.isis.applib.annotation.Editing; //导入依赖的package包/类
@Property(editing = Editing.DISABLED)
@PropertyLayout(multiLine = 5)
public String getNotification(){
final StringBuilder result = new StringBuilder();
final String noBuyerBarcodeMatch = buyerBarcodeMatchValidation();
if (noBuyerBarcodeMatch!=null){
result.append(noBuyerBarcodeMatch);
}
final String sameOrderNumberCheck = doubleOrderCheck();
if (sameOrderNumberCheck !=null){
result.append(sameOrderNumberCheck);
}
return result.length()>0 ? result.toString() : null;
}
开发者ID:estatio,项目名称:estatio,代码行数:19,代码来源:IncomingDocAsOrderViewModel.java
示例4: getTenancyDuration
import org.apache.isis.applib.annotation.Editing; //导入依赖的package包/类
@org.apache.isis.applib.annotation.Property(editing = Editing.DISABLED, optionality = Optionality.OPTIONAL)
public String getTenancyDuration() {
LocalDateInterval ldi;
if (getTenancyStartDate() != null && getTenancyEndDate() != null) {
ldi = getEffectiveInterval();
} else if (getTenancyStartDate() == null && getTenancyEndDate() != null && getStartDate() != null) {
ldi = new LocalDateInterval(getStartDate(), getTenancyEndDate());
} else if (getTenancyStartDate() != null && getTenancyEndDate() == null && getEndDate() != null) {
ldi = new LocalDateInterval(getTenancyStartDate(), getEndDate());
} else {
return null;
}
if (ldi.isValid()) {
return JodaPeriodUtils.asSimpleString(new Period(ldi.asInterval(), PeriodType.yearMonthDay()));
}
return null;
}
开发者ID:estatio,项目名称:estatio,代码行数:20,代码来源:Lease.java
示例5: getNombre
import org.apache.isis.applib.annotation.Editing; //导入依赖的package包/类
@Property(editing = Editing.DISABLED)
@Column(allowsNull = "false",length = 40)
@MemberOrder(name="Equipo", sequence= "1")
public String getNombre()
{
return nombre;
}
开发者ID:TesisTarjetasMejorar,项目名称:TarjetasISIS,代码行数:8,代码来源:Equipo.java
示例6: getNotYetComplete
import org.apache.isis.applib.annotation.Editing; //导入依赖的package包/类
@Collection(
editing = Editing.DISABLED
)
@CollectionLayout(
sortedBy = RelativePriorityService.Comparator.class
)
public List<ToDoItem> getNotYetComplete() {
return toDoItems.notYetCompleteNoUi();
}
开发者ID:isisaddons,项目名称:isis-app-todoapp,代码行数:10,代码来源:ToDoAppDashboard.java
示例7: complete
import org.apache.isis.applib.annotation.Editing; //导入依赖的package包/类
@Action(
semantics = SemanticsOf.SAFE,
hidden = Where.ALL_TABLES
)
@ActionLayout(
describedAs = "The relative priority of this item compared to others not yet complete (using 'due by' date)",
contributed = Contributed.AS_ASSOCIATION
)
@Property(
editing = Editing.DISABLED,
editingDisabledReason = "Relative priority, derived from due date"
)
public Integer $$() {
return queryResultsCache.execute(() -> {
if(toDoItem.isComplete()) {
return null;
}
// sort items, then locate this one
int i=1;
for (final ToDoItem each : relativePriorityService.sortedNotYetComplete()) {
if(each == toDoItem) {
return i;
}
i++;
}
return null;
}, ToDoItem_relativePriority.class, "relativePriority", toDoItem);
}
开发者ID:isisaddons,项目名称:isis-app-todoapp,代码行数:30,代码来源:ToDoItem_relativePriority.java
示例8: getSomeStringOptionalWithMultiAutoComplete
import org.apache.isis.applib.annotation.Editing; //导入依赖的package包/类
@Property(
editing = Editing.DISABLED,
hidden = Where.EVERYWHERE // autocomplete on values is NOT SUPPORTED
)
@Column(allowsNull = "true")
public String getSomeStringOptionalWithMultiAutoComplete() {
return someStringOptionalWithMultiAutoComplete;
}
开发者ID:isisaddons,项目名称:isis-app-kitchensink,代码行数:9,代码来源:TextObject.java
示例9: getFeature
import org.apache.isis.applib.annotation.Editing; //导入依赖的package包/类
@javax.jdo.annotations.NotPersistent
@Property(
domainEvent = FeatureDomainEvent.class,
editing = Editing.DISABLED
)
@PropertyLayout(hidden=Where.REFERENCES_PARENT)
@MemberOrder(name = "Permission",sequence = "4")
public ApplicationFeatureViewModel getFeature() {
if(getFeatureId() == null) {
return null;
}
return ApplicationFeatureViewModel.newViewModel(getFeatureId(), applicationFeatureRepository, container);
}
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:14,代码来源:UserPermissionViewModel.java
示例10: getViewingPermission
import org.apache.isis.applib.annotation.Editing; //导入依赖的package包/类
@javax.jdo.annotations.NotPersistent
@Property(
domainEvent = ViewingPermissionDomainEvent.class,
editing = Editing.DISABLED
)
@PropertyLayout(hidden=Where.REFERENCES_PARENT)
@MemberOrder(name="Cause", sequence = "2.1")
public ApplicationPermission getViewingPermission() {
if(getViewingPermissionValue() == null) {
return null;
}
return applicationPermissionRepository.findByUserAndPermissionValue(username, getViewingPermissionValue());
}
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:14,代码来源:UserPermissionViewModel.java
示例11: getChangingPermission
import org.apache.isis.applib.annotation.Editing; //导入依赖的package包/类
@javax.jdo.annotations.NotPersistent
@Property(
domainEvent = ChangingPermissionDomainEvent.class,
editing = Editing.DISABLED
)
@PropertyLayout(hidden=Where.REFERENCES_PARENT)
@MemberOrder(name="Cause", sequence = "2.2")
public ApplicationPermission getChangingPermission() {
if(getChangingPermissionValue() == null) {
return null;
}
return applicationPermissionRepository.findByUserAndPermissionValue(username, getChangingPermissionValue());
}
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:14,代码来源:UserPermissionViewModel.java
示例12: getType
import org.apache.isis.applib.annotation.Editing; //导入依赖的package包/类
/**
* Combines {@link #getFeatureType() feature type} and member type.
*/
@Property(
domainEvent = TypeDomainEvent.class,
editing = Editing.DISABLED
)
@PropertyLayout(typicalLength=ApplicationPermission.TYPICAL_LENGTH_TYPE)
@MemberOrder(name="Feature", sequence = "5")
public String getType() {
final Enum<?> e = getFeatureType() != ApplicationFeatureType.MEMBER ? getFeatureType() : getMemberType();
return e != null ? e.name(): null;
}
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:14,代码来源:ApplicationPermission.java
示例13: isHasPassword
import org.apache.isis.applib.annotation.Editing; //导入依赖的package包/类
@Property(
domainEvent = HasPasswordDomainEvent.class,
editing = Editing.DISABLED
)
@MemberOrder(name="Status", sequence = "4")
public boolean isHasPassword() {
return !Strings.isNullOrEmpty(getEncryptedPassword());
}
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:9,代码来源:ApplicationUser.java
示例14: getUsers
import org.apache.isis.applib.annotation.Editing; //导入依赖的package包/类
@Collection(
domainEvent = UsersDomainEvent.class,
editing = Editing.DISABLED
)
@CollectionLayout(
render = RenderType.EAGERLY
)
@MemberOrder(sequence = "10")
public List<ApplicationUser> getUsers() {
return applicationUserRepository.findByAtPath(getPath());
}
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:12,代码来源:ApplicationTenancy.java
示例15: getCost
import org.apache.isis.applib.annotation.Editing; //导入依赖的package包/类
@javax.jdo.annotations.Column(allowsNull="true", scale=2)
@javax.validation.constraints.Digits(integer=10, fraction=2)
@Property(
editing = Editing.DISABLED,
editingDisabledReason = "Update using action"
)
public BigDecimal getCost() {
return cost;
}
开发者ID:isisaddons-legacy,项目名称:isis-module-excel,代码行数:10,代码来源:ExcelModuleDemoToDoItem.java
示例16: getMotd
import org.apache.isis.applib.annotation.Editing; //导入依赖的package包/类
@Property(
editing = Editing.ENABLED,
optionality = Optionality.OPTIONAL,
hidden = Where.EVERYWHERE // for now...
)
@XmlTransient
public String getMotd() {
ApplicationSettingForEstatio applicationSetting =
(ApplicationSettingForEstatio) applicationSettingsServiceRW.find(KEY_ESTATIO_MOTD);
return applicationSetting != null ? applicationSetting.valueAsString() : null;
}
开发者ID:estatio,项目名称:estatio,代码行数:12,代码来源:AdminDashboard.java
示例17: getSource
import org.apache.isis.applib.annotation.Editing; //导入依赖的package包/类
/**
* Polymorphic association to (any implementation of) {@link EventSource}.
*/
@Property(
editing = Editing.DISABLED,
hidden = Where.PARENTED_TABLES,
notPersisted = true
)
public EventSource getSource() {
final EventSourceLink link = getSourceLink();
return link != null? link.getPolymorphicReference(): null;
}
开发者ID:estatio,项目名称:estatio,代码行数:13,代码来源:Event.java
示例18: getOwner
import org.apache.isis.applib.annotation.Editing; //导入依赖的package包/类
@Property(
notPersisted = true,
editing = Editing.DISABLED
)
@PropertyLayout(hidden = Where.PARENTED_TABLES)
public CommunicationChannelOwner getOwner() {
final CommunicationChannelOwnerLink link = getOwnerLink();
return link != null? link.getPolymorphicReference(): null;
}
开发者ID:estatio,项目名称:estatio,代码行数:10,代码来源:CommunicationChannel.java
示例19: getBlob
import org.apache.isis.applib.annotation.Editing; //导入依赖的package包/类
@javax.jdo.annotations.NotPersistent
@Property(
notPersisted = true,
domainEvent = BlobDomainEvent.class,
editing = Editing.DISABLED
)
public Blob getBlob() {
return new Blob(getName(), getMimeType(), getBlobBytes());
}
开发者ID:estatio,项目名称:estatio,代码行数:11,代码来源:DocumentAbstract.java
示例20: getClob
import org.apache.isis.applib.annotation.Editing; //导入依赖的package包/类
@javax.jdo.annotations.NotPersistent
@Property(
notPersisted = true, // exclude from auditing
domainEvent = ClobDomainEvent.class,
editing = Editing.DISABLED
)
public Clob getClob() {
return new Clob(getName(), getMimeType(), getClobChars());
}
开发者ID:estatio,项目名称:estatio,代码行数:11,代码来源:DocumentAbstract.java
注:本文中的org.apache.isis.applib.annotation.Editing类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论