当前位置: 首页>>代码示例>>Java>>正文


Java Where.REFERENCES_PARENT属性代码示例

本文整理汇总了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);
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:20,代码来源:ApplicationPermission_feature.java

示例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);
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:13,代码来源:UserPermissionViewModel.java

示例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());
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:13,代码来源:UserPermissionViewModel.java

示例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());
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:13,代码来源:UserPermissionViewModel.java

示例5: getPerson

@Column(name = "personId", allowsNull = "false")
@Property(hidden = Where.REFERENCES_PARENT)
public Person getPerson() {
    return person;
}
 
开发者ID:isisaddons,项目名称:isis-app-kitchensink,代码行数:5,代码来源:Preference.java

示例6: getFoodStuff

@Column(name = "foodId", allowsNull = "false")
@Property(hidden = Where.REFERENCES_PARENT)
public FoodStuff getFoodStuff() {
    return foodStuff;
}
 
开发者ID:isisaddons,项目名称:isis-app-kitchensink,代码行数:5,代码来源:Preference.java

示例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;
}
 
开发者ID:estatio,项目名称:estatio,代码行数:8,代码来源:InvoiceItem.java

示例8: getCreditor

/**
 * Document > PmtInf > CdtTrfTxInf > Cdtr > Nm
 * Document > PmtInf > CdtTrfTxInf > Cdtr > PstlAdr > Ctry
 */
@PropertyLayout(hidden = Where.REFERENCES_PARENT)
public Party getCreditor() {
    return getCreditorBankAccount().getOwner();
}
 
开发者ID:estatio,项目名称:estatio,代码行数:8,代码来源:PaymentLine.java


注:本文中的org.apache.isis.applib.annotation.Where.REFERENCES_PARENT属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。