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


Java PropertyLayout类代码示例

本文整理汇总了Java中org.apache.isis.applib.annotation.PropertyLayout的典型用法代码示例。如果您正苦于以下问题:Java PropertyLayout类的具体用法?Java PropertyLayout怎么用?Java PropertyLayout使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


PropertyLayout类属于org.apache.isis.applib.annotation包,在下文中一共展示了PropertyLayout类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: if

import org.apache.isis.applib.annotation.PropertyLayout; //导入依赖的package包/类
@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,代码行数:21,代码来源:ApplicationPermission_feature.java

示例2: getParent

import org.apache.isis.applib.annotation.PropertyLayout; //导入依赖的package包/类
@Property(
        domainEvent = ParentDomainEvent.class
)
@PropertyLayout(hidden=Where.ALL_TABLES)
@MemberOrder(name = "Parent", sequence = "2.6")
public ApplicationFeatureViewModel getParent() {
    final ApplicationFeatureId parentId;
    parentId = getType() == ApplicationFeatureType.MEMBER
            ? getFeatureId().getParentClassId()
            : getFeatureId().getParentPackageId();
    if(parentId == null) {
        return null;
    }
    final ApplicationFeature feature = applicationFeatureRepository.findFeature(parentId);
    if (feature == null) {
        return null;
    }
    final Class<?> cls = viewModelClassFor(parentId, applicationFeatureRepository);
    return (ApplicationFeatureViewModel) container.newViewModelInstance(cls, parentId.asEncodedString());

}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:22,代码来源:ApplicationFeatureViewModel.java

示例3: getName

import org.apache.isis.applib.annotation.PropertyLayout; //导入依赖的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

示例4: getNotification

import org.apache.isis.applib.annotation.PropertyLayout; //导入依赖的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

示例5: getNotification

import org.apache.isis.applib.annotation.PropertyLayout; //导入依赖的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

示例6: getApplicationTenancy

import org.apache.isis.applib.annotation.PropertyLayout; //导入依赖的package包/类
@PropertyLayout(
        hidden = Where.ALL_TABLES,
        describedAs = "Determines those users for whom this object is available to view and/or modify."
)

@Programmatic
public ApplicationTenancy getApplicationTenancy() {
    final ApplicationTenancy applicationTenancy = applicationTenancyRepository.findByPathCached(applicationTenancyPath);
    if (applicationTenancy == null) {
        throw new FatalException("Domain Object without Application Tenancy.");
    }
    return applicationTenancy;
}
 
开发者ID:bibryam,项目名称:rotabuilder,代码行数:14,代码来源:AbstractPersistable.java

示例7: getNotYetComplete

import org.apache.isis.applib.annotation.PropertyLayout; //导入依赖的package包/类
@PropertyLayout(
    multiLine=5
)
public String getNotYetComplete() {
    final List<ToDoItem> notYetComplete = getItemsNotYetComplete();
    return Joiner.on(", ").join(
        Iterables.transform(subcategories(), summarizeBySubcategory(notYetComplete)));
}
 
开发者ID:isisaddons,项目名称:isis-app-todoapp,代码行数:9,代码来源:ToDoItemsByCategoryViewModel.java

示例8: getComplete

import org.apache.isis.applib.annotation.PropertyLayout; //导入依赖的package包/类
@PropertyLayout(
    multiLine=5
)
public String getComplete() {
    final List<ToDoItem> completeInCategory = getItemsComplete();
    return Joiner.on(", ").join(
        Iterables.transform(subcategories(), summarizeBySubcategory(completeInCategory)));
}
 
开发者ID:isisaddons,项目名称:isis-app-todoapp,代码行数:9,代码来源:ToDoItemsByCategoryViewModel.java

示例9: getMetadataRegionDummyProperty

import org.apache.isis.applib.annotation.PropertyLayout; //导入依赖的package包/类
/**
 * Exists just that the Wicket viewer will render an (almost) empty metadata region (on which the
 * framework contributed mixin actions will be attached).  The field itself can optionally be hidden
 * using CSS.
 */
@NotPersistent
@Property(domainEvent = MetadataRegionDummyPropertyDomainEvent.class, notPersisted = true)
@PropertyLayout(labelPosition = LabelPosition.NONE, hidden = Where.ALL_TABLES)
@MemberOrder(name="Metadata", sequence = "1")
public String getMetadataRegionDummyProperty() {
    return null;
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-audit,代码行数:13,代码来源:AuditEntry.java

示例10: getPackageName

import org.apache.isis.applib.annotation.PropertyLayout; //导入依赖的package包/类
@Property(
        domainEvent = PackageNameDomainEvent.class
)
@PropertyLayout(typicalLength=ApplicationFeature.TYPICAL_LENGTH_PKG_FQN)
@MemberOrder(name="Id", sequence = "2.2")
public String getPackageName() {
    return getFeatureId().getPackageName();
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:9,代码来源:ApplicationFeatureViewModel.java

示例11: getClassName

import org.apache.isis.applib.annotation.PropertyLayout; //导入依赖的package包/类
/**
 * For packages, will be null. Is in this class (rather than subclasses) so is shown in
 * {@link ApplicationPackage#getContents() package contents}.
 */
@Property(
        domainEvent = ClassNameDomainEvent.class
)
@PropertyLayout(typicalLength=ApplicationFeature.TYPICAL_LENGTH_CLS_NAME)
@MemberOrder(name="Id", sequence = "2.3")
public String getClassName() {
    return getFeatureId().getClassName();
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:13,代码来源:ApplicationFeatureViewModel.java

示例12: getMemberName

import org.apache.isis.applib.annotation.PropertyLayout; //导入依赖的package包/类
/**
 * For packages and class names, will be null.
 */
@Property(
        domainEvent = MemberNameDomainEvent.class
)
@PropertyLayout(typicalLength=ApplicationFeature.TYPICAL_LENGTH_MEMBER_NAME)
@MemberOrder(name="Id", sequence = "2.4")
public String getMemberName() {
    return getFeatureId().getMemberName();
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:12,代码来源:ApplicationFeatureViewModel.java

示例13: getUser

import org.apache.isis.applib.annotation.PropertyLayout; //导入依赖的package包/类
@Property(
        domainEvent = UserDomainEvent.class
)
@PropertyLayout(hidden=Where.PARENTED_TABLES)
@MemberOrder(name = "Permission", sequence = "1")
public ApplicationUser getUser() {
    return applicationUserRepository.findOrCreateUserByUsername(getUsername());
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:9,代码来源:UserPermissionViewModel.java

示例14: getVerb

import org.apache.isis.applib.annotation.PropertyLayout; //导入依赖的package包/类
@Property(
        domainEvent = VerbDomainEvent.class
)
@PropertyLayout(typicalLength=UserPermissionViewModel.TYPICAL_LENGTH_VERB)
@MemberOrder(name="Permission", sequence = "2")
public String getVerb() {
    return changingGranted
            ? "Can change"
            : viewingGranted
            ? "Can view"
            : "No access to";
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:13,代码来源:UserPermissionViewModel.java

示例15: getFeature

import org.apache.isis.applib.annotation.PropertyLayout; //导入依赖的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


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