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

Java CollectionLayout类代码示例

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

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



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

示例1: asViewModels

import org.apache.isis.applib.annotation.CollectionLayout; //导入依赖的package包/类
@Action(
    semantics = SemanticsOf.SAFE,
    domainEvent = ActionDomainEvent.class
)
@ActionLayout(
        contributed = Contributed.AS_ASSOCIATION
)
@CollectionLayout(
        paged=50,
        defaultView = "table"
)
@MemberOrder(sequence = "30")
public List<UserPermissionViewModel> $$() {
    final java.util.Collection<ApplicationFeature> allMembers = applicationFeatureRepository.allMembers();
    return asViewModels(allMembers);
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:17,代码来源:ApplicationUser_permissions.java


示例2: coll

import org.apache.isis.applib.annotation.CollectionLayout; //导入依赖的package包/类
@Action(
        semantics = SemanticsOf.SAFE,
        domainEvent = ActionDomainEvent.class
)
@ActionLayout(
        contributed = Contributed.AS_ASSOCIATION
)
@CollectionLayout(
        defaultView = "table"
)
public List<Communication> coll() {

    final List<CommunicationChannelOwnerLink> channelLinks =
            communicationChannelRepository.findByOwner(communicationChannelOwner);

    final List<Communication> communications = Lists.newArrayList();
    for (final CommunicationChannelOwnerLink link : channelLinks) {
        final List<Communication> comms = provider.findFor(link.getCommunicationChannel(), MONTHS_PREVIOUS);
        communications.addAll(comms);
    }
    communications.sort(Communication.Orderings.createdAtDescending);

    return communications;
}
 
开发者ID:estatio,项目名称:estatio,代码行数:25,代码来源:CommunicationChannelOwner_recentCommunications.java


示例3: getClass

import org.apache.isis.applib.annotation.CollectionLayout; //导入依赖的package包/类
@Action(
        domainEvent = ActionDomainEvent.class,
        semantics = SemanticsOf.SAFE
)
@ActionLayout(
        contributed = Contributed.AS_ASSOCIATION
)
@CollectionLayout(defaultView = "table")
public List<Paperclip> $$() {
    return queryResultsCache.execute(
            (Callable<List<Paperclip>>) () -> {
                final List<Paperclip> paperclips = paperclipRepository.findByAttachedTo(attachedTo);
                return Lists.newArrayList(FluentIterable.from(paperclips).filter(filter()).toList());
            },
            getClass(), "$$", attachedTo);
}
 
开发者ID:estatio,项目名称:estatio,代码行数:17,代码来源:T_documents.java


示例4: userSettingsFor

import org.apache.isis.applib.annotation.CollectionLayout; //导入依赖的package包/类
@Action(
        semantics = SemanticsOf.SAFE
)
@ActionLayout(
        named = "User Settings",
        contributed = Contributed.AS_ASSOCIATION
)
@CollectionLayout(
        named = "Settings",
        render = RenderType.EAGERLY
)
public List<UserSettingJdo> userSettingsFor(final ApplicationUser applicationUser) {
    return settingsService.listAllSettings(applicationUser.getUsername());
}
 
开发者ID:incodehq,项目名称:ecpcrm,代码行数:15,代码来源:EcpCrmUserSettingContributions.java


示例5: getNotYetComplete

import org.apache.isis.applib.annotation.CollectionLayout; //导入依赖的package包/类
@Collection(
        editing = Editing.DISABLED
)
@CollectionLayout(
        sortedBy = RelativePriorityService.Comparator.class
)
public List<ToDoItem> getNotYetComplete() {
    return toDoItems.notYetCompleteNoUi();
}
 
开发者ID:isisaddons,项目名称:isis-app-todoapp,代码行数:10,代码来源:ToDoAppDashboard.java


示例6: getItemsNotYetComplete

import org.apache.isis.applib.annotation.CollectionLayout; //导入依赖的package包/类
/**
 * All those items {@link ToDoItems#notYetComplete() not yet complete}, for this {@link #getDateRange() date range}.
 */
@CollectionLayout(
        render = RenderType.EAGERLY
)
public List<ToDoItem> getItemsNotYetComplete() {
    final List<ToDoItem> notYetComplete = toDoItems.notYetCompleteNoUi();
    return Lists.newArrayList(Iterables.filter(notYetComplete, thoseInDateRange()));
}
 
开发者ID:isisaddons,项目名称:isis-app-todoapp,代码行数:11,代码来源:ToDoItemsByDateRangeViewModel.java


示例7: getItemsNotYetComplete

import org.apache.isis.applib.annotation.CollectionLayout; //导入依赖的package包/类
/**
 * All those items {@link ToDoItems#notYetComplete() not yet complete}, for this {@link #getCategory() category}.
 */
@CollectionLayout(
        render = RenderType.EAGERLY
)
public List<ToDoItem> getItemsNotYetComplete() {
    final List<ToDoItem> notYetComplete = toDoItems.notYetCompleteNoUi();
    return Lists.newArrayList(Iterables.filter(notYetComplete, ToDoItem.Predicates.thoseCategorised(getCategory())));
}
 
开发者ID:isisaddons,项目名称:isis-app-todoapp,代码行数:11,代码来源:ToDoItemsByCategoryViewModel.java


示例8: getItemsComplete

import org.apache.isis.applib.annotation.CollectionLayout; //导入依赖的package包/类
/**
 * All those items {@link ToDoItems#complete() complete}, for this {@link #getCategory() category}.
 */
@CollectionLayout(
        render = RenderType.EAGERLY
)
public List<ToDoItem> getItemsComplete() {
    final List<ToDoItem> complete = toDoItems.completeNoUi();
    return Lists.newArrayList(Iterables.filter(complete, ToDoItem.Predicates.thoseCategorised(getCategory())));
}
 
开发者ID:isisaddons,项目名称:isis-app-todoapp,代码行数:11,代码来源:ToDoItemsByCategoryViewModel.java


示例9: auditEntries

import org.apache.isis.applib.annotation.CollectionLayout; //导入依赖的package包/类
@Action(
        semantics = SemanticsOf.SAFE,
        domainEvent = AuditEntriesDomainEvent.class
)
@ActionLayout(
        contributed = Contributed.AS_ASSOCIATION
)
@CollectionLayout(
        defaultView = "table"
)
@MemberOrder(sequence = "50.100")
public List<AuditEntry> auditEntries() {
    final Bookmark bookmark = bookmarkService.bookmarkFor(object);
    return auditingServiceRepository.findByTargetAndFromAndTo(bookmark, null, null);
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-audit,代码行数:16,代码来源:Object_auditEntries.java


示例10:

import org.apache.isis.applib.annotation.CollectionLayout; //导入依赖的package包/类
@Action(
        semantics = SemanticsOf.SAFE,
        domainEvent = ActionDomainEvent.class
)
@ActionLayout(
        contributed = Contributed.AS_ASSOCIATION
)
@CollectionLayout(
        defaultView = "table"
)
@MemberOrder(sequence = "50.100")
public List<AuditEntry> $$() {
    return auditEntryRepository.findByTransactionId(hasTransactionId.getTransactionId());
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-audit,代码行数:15,代码来源:HasTransactionId_auditEntriesInTransaction.java


示例11: getPermissions

import org.apache.isis.applib.annotation.CollectionLayout; //导入依赖的package包/类
@Collection(
        domainEvent = PermissionsDomainEvent.class
)
@CollectionLayout(
        render = RenderType.EAGERLY
)
@MemberOrder(sequence = "10")
public List<ApplicationPermission> getPermissions() {
    return applicationPermissionRepository.findByFeatureCached(getFeatureId());
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:11,代码来源:ApplicationFeatureViewModel.java


示例12: getContents

import org.apache.isis.applib.annotation.CollectionLayout; //导入依赖的package包/类
@Collection(
        domainEvent = ContentsDomainEvent.class
)
@CollectionLayout(
        render = RenderType.EAGERLY
)
@MemberOrder(sequence = "4")
public List<ApplicationFeatureViewModel> getContents() {
    final SortedSet<ApplicationFeatureId> contents = getFeature().getContents();
    return asViewModels(contents);
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:12,代码来源:ApplicationPackage.java


示例13: getActions

import org.apache.isis.applib.annotation.CollectionLayout; //导入依赖的package包/类
@Collection(
    domainEvent = ActionsDomainEvent.class
)
@CollectionLayout(
        render = RenderType.EAGERLY
)
@MemberOrder(sequence = "20.1")
public List<ApplicationClassAction> getActions() {
    final SortedSet<ApplicationFeatureId> members = getFeature().getActions();
    return asViewModels(members);
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:12,代码来源:ApplicationClass.java


示例14: getProperties

import org.apache.isis.applib.annotation.CollectionLayout; //导入依赖的package包/类
@Collection(
        domainEvent = PropertiesCollectionDomainEvent.class
)
@CollectionLayout(
        render = RenderType.EAGERLY
)
@MemberOrder(sequence = "20.2")
public List<ApplicationClassProperty> getProperties() {
    final SortedSet<ApplicationFeatureId> members = getFeature().getProperties();
    return asViewModels(members);
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:12,代码来源:ApplicationClass.java


示例15: getCollections

import org.apache.isis.applib.annotation.CollectionLayout; //导入依赖的package包/类
@Collection(
        domainEvent = CollectionsCollectionDomainEvent.class
)
@CollectionLayout(
        render = RenderType.EAGERLY
)
@MemberOrder(sequence = "20.3")
public List<ApplicationClassCollection> getCollections() {
    final SortedSet<ApplicationFeatureId> members = getFeature().getCollections();
    return asViewModels(members);
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:12,代码来源:ApplicationClass.java


示例16: getPermissions

import org.apache.isis.applib.annotation.CollectionLayout; //导入依赖的package包/类
@Collection(
        domainEvent = PermissionsCollectionDomainEvent.class
)
@CollectionLayout(
        render = RenderType.EAGERLY,
        sortedBy = ApplicationPermission.DefaultComparator.class
)
@MemberOrder(sequence = "10")
public List<ApplicationPermission> getPermissions() {
    return applicationPermissionRepository.findByRole(this);
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:12,代码来源:ApplicationRole.java


示例17: getUsers

import org.apache.isis.applib.annotation.CollectionLayout; //导入依赖的package包/类
@Collection(
        domainEvent = UsersDomainEvent.class,
        editing = Editing.DISABLED
)
@CollectionLayout(
        render = RenderType.EAGERLY
)
@MemberOrder(sequence = "10")
public List<ApplicationUser> getUsers() {
    return applicationUserRepository.findByAtPath(getPath());
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:12,代码来源:ApplicationTenancy.java


示例18: importBlob

import org.apache.isis.applib.annotation.CollectionLayout; //导入依赖的package包/类
@Action(publishing = Publishing.DISABLED, semantics = SemanticsOf.IDEMPOTENT)
@CollectionLayout(paged = -1)
public List<ChargeImport> importBlob(
        @Parameter(fileAccept = ".xlsx")
        @ParameterLayout(named = "Excel spreadsheet") final Blob spreadsheet) {
    List<ChargeImport> lineItems =
            excelService.fromExcel(spreadsheet, ChargeImport.class, ChargeImport.class.getSimpleName());
    ChargeImport previous = null;
    for (ChargeImport lineItem : lineItems){
        lineItem.importData(previous);
        previous = lineItem;
    }
    return lineItems;
}
 
开发者ID:estatio,项目名称:estatio,代码行数:15,代码来源:ChargeImportManager.java


示例19: findBudget

import org.apache.isis.applib.annotation.CollectionLayout; //导入依赖的package包/类
@Action(semantics = SemanticsOf.SAFE)
@CollectionLayout(render = RenderType.EAGERLY)
public Budget findBudget(
        final Property property,
        final Budget budget) {
    return budget;
}
 
开发者ID:estatio,项目名称:estatio,代码行数:8,代码来源:BudgetMenu.java


示例20: occupancies

import org.apache.isis.applib.annotation.CollectionLayout; //导入依赖的package包/类
@Action(semantics = SemanticsOf.SAFE)
@ActionLayout(contributed = Contributed.AS_ASSOCIATION)
@CollectionLayout(render = RenderType.EAGERLY)
public List<Occupancy> occupancies(final KeyItem keyItem) {

    return occupancyRepository.occupanciesByUnitAndInterval(keyItem.getUnit(), keyItem.getKeyTable().getBudget().getInterval());

}
 
开发者ID:estatio,项目名称:estatio,代码行数:9,代码来源:KeyItem_occupancies.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
Java StorageMetrics类代码示例发布时间:2022-05-22
下一篇:
Java XmlSchemaParticle类代码示例发布时间: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