• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java PropertyLayout类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: getViewingPermission

import org.apache.isis.applib.annotation.PropertyLayout; //导入依赖的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());
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:14,代码来源:UserPermissionViewModel.java


示例17: getChangingPermission

import org.apache.isis.applib.annotation.PropertyLayout; //导入依赖的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());
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:14,代码来源:UserPermissionViewModel.java


示例18: getType

import org.apache.isis.applib.annotation.PropertyLayout; //导入依赖的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;
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:14,代码来源:ApplicationPermission.java


示例19: getDescription

import org.apache.isis.applib.annotation.PropertyLayout; //导入依赖的package包/类
@javax.jdo.annotations.Column(allowsNull="false", length=100)
@Property(
        regexPattern = "\\w[@&:\\-\\,\\.\\+ \\w]*"
)
@PropertyLayout(
        typicalLength = 50
)
public String getDescription() {
    return description;
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-excel,代码行数:11,代码来源:ExcelModuleDemoToDoItem.java


示例20: getValueAsBoolean

import org.apache.isis.applib.annotation.PropertyLayout; //导入依赖的package包/类
@Property(
        hidden = Where.ALL_TABLES
)
@PropertyLayout(
        named = "Value"
)
public Boolean getValueAsBoolean() {
    return parseValueAsBoolean();
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-settings,代码行数:10,代码来源:SettingAbstract.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ActionService类代码示例发布时间:2022-05-22
下一篇:
Java ReferenceTree类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap