本文整理汇总了Java中org.apache.isis.applib.annotation.Editing类的典型用法代码示例。如果您正苦于以下问题:Java Editing类的具体用法?Java Editing怎么用?Java Editing使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Editing类属于org.apache.isis.applib.annotation包,在下文中一共展示了Editing类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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();
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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();
}
示例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);
}
示例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;
}
示例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);
}
示例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());
}
示例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());
}
示例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;
}
示例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());
}
示例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());
}
示例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;
}