本文整理汇总了Java中org.apache.isis.applib.annotation.Where.REFERENCES_PARENT属性的典型用法代码示例。如果您正苦于以下问题:Java Where.REFERENCES_PARENT属性的具体用法?Java Where.REFERENCES_PARENT怎么用?Java Where.REFERENCES_PARENT使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.apache.isis.applib.annotation.Where
的用法示例。
在下文中一共展示了Where.REFERENCES_PARENT属性的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: if
@Action(
semantics = SemanticsOf.SAFE,
domainEvent = ActionDomainEvent.class
)
@ActionLayout(
contributed = Contributed.AS_ASSOCIATION
)
@Property(
)
@PropertyLayout(
hidden=Where.REFERENCES_PARENT
)
@MemberOrder(name="Feature", sequence = "4")
public ApplicationFeatureViewModel $$(final ApplicationPermission permission) {
if(permission.getFeatureType() == null) {
return null;
}
final ApplicationFeatureId featureId = getFeatureId(permission);
return ApplicationFeatureViewModel.newViewModel(featureId, applicationFeatureRepository, container);
}
示例2: getFeature
@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);
}
示例3: getViewingPermission
@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());
}
示例4: 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());
}
示例5: getPerson
@Column(name = "personId", allowsNull = "false")
@Property(hidden = Where.REFERENCES_PARENT)
public Person getPerson() {
return person;
}
示例6: getFoodStuff
@Column(name = "foodId", allowsNull = "false")
@Property(hidden = Where.REFERENCES_PARENT)
public FoodStuff getFoodStuff() {
return foodStuff;
}
示例7: getSource
/**
* Optional, for subclasses to indicate their source (UI purposes only)
*/
@Property(hidden = Where.REFERENCES_PARENT)
public InvoiceSource getSource() {
// TODO: this applies to InvoiceItemForLease only, so should probably be moved down.
return null;
}
示例8: getCreditor
/**
* Document > PmtInf > CdtTrfTxInf > Cdtr > Nm
* Document > PmtInf > CdtTrfTxInf > Cdtr > PstlAdr > Ctry
*/
@PropertyLayout(hidden = Where.REFERENCES_PARENT)
public Party getCreditor() {
return getCreditorBankAccount().getOwner();
}