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


Java CollectionLayout类代码示例

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


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


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