本文整理汇总了Java中org.apache.isis.applib.annotation.Editing.DISABLED属性的典型用法代码示例。如果您正苦于以下问题:Java Editing.DISABLED属性的具体用法?Java Editing.DISABLED怎么用?Java Editing.DISABLED使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.apache.isis.applib.annotation.Editing
的用法示例。
在下文中一共展示了Editing.DISABLED属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getName
@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();
}
示例2: getNotification
@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;
}
示例3: getNotification
@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;
}
示例4: getTenancyDuration
@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;
}
示例5: getNombre
@Property(editing = Editing.DISABLED)
@Column(allowsNull = "false",length = 40)
@MemberOrder(name="Equipo", sequence= "1")
public String getNombre()
{
return nombre;
}
示例6: getNotYetComplete
@Collection(
editing = Editing.DISABLED
)
@CollectionLayout(
sortedBy = RelativePriorityService.Comparator.class
)
public List<ToDoItem> getNotYetComplete() {
return toDoItems.notYetCompleteNoUi();
}
示例7: complete
@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);
}
示例8: getSomeStringOptionalWithMultiAutoComplete
@Property(
editing = Editing.DISABLED,
hidden = Where.EVERYWHERE // autocomplete on values is NOT SUPPORTED
)
@Column(allowsNull = "true")
public String getSomeStringOptionalWithMultiAutoComplete() {
return someStringOptionalWithMultiAutoComplete;
}
示例9: getChangingPermission
@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());
}
示例10: isHasPassword
@Property(
domainEvent = HasPasswordDomainEvent.class,
editing = Editing.DISABLED
)
@MemberOrder(name="Status", sequence = "4")
public boolean isHasPassword() {
return !Strings.isNullOrEmpty(getEncryptedPassword());
}
示例11: getUsers
@Collection(
domainEvent = UsersDomainEvent.class,
editing = Editing.DISABLED
)
@CollectionLayout(
render = RenderType.EAGERLY
)
@MemberOrder(sequence = "10")
public List<ApplicationUser> getUsers() {
return applicationUserRepository.findByAtPath(getPath());
}
示例12: getSource
/**
* 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;
}
示例13: getOwner
@Property(
notPersisted = true,
editing = Editing.DISABLED
)
@PropertyLayout(hidden = Where.PARENTED_TABLES)
public CommunicationChannelOwner getOwner() {
final CommunicationChannelOwnerLink link = getOwnerLink();
return link != null? link.getPolymorphicReference(): null;
}
示例14: getBlob
@javax.jdo.annotations.NotPersistent
@Property(
notPersisted = true,
domainEvent = BlobDomainEvent.class,
editing = Editing.DISABLED
)
public Blob getBlob() {
return new Blob(getName(), getMimeType(), getBlobBytes());
}
示例15: getClob
@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());
}