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


Java Collection类代码示例

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


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

示例1: getNotYetComplete

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

示例2: getOther

import org.apache.isis.applib.annotation.Collection; //导入依赖的package包/类
@Collection(
        notPersisted = true
)
public List<BusRulesObject> getOther() {
    final List<BusRulesObject> other = Lists.newArrayList();
    other.addAll(busRulesObjectMenu.listAllBusRulesObject());
    other.remove(this);
    return other;
}
 
开发者ID:isisaddons,项目名称:isis-app-kitchensink,代码行数:10,代码来源:BusRulesObject.java

示例3: getPermissions

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

示例4: getContents

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

示例5: getActions

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

示例6: getProperties

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

示例7: getCollections

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

示例8: getPermissions

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

示例9: choices2RemovePermission

import org.apache.isis.applib.annotation.Collection; //导入依赖的package包/类
public java.util.Collection<String> choices2RemovePermission(
        final ApplicationPermissionRule rule,
        final ApplicationFeatureType type) {
    final List<ApplicationPermission> permissions = applicationPermissionRepository.findByRoleAndRuleAndFeatureTypeCached(
            this, rule, type);
    return Lists.newArrayList(
            Iterables.transform(
                    permissions,
                    ApplicationPermission.Functions.GET_FQN));
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:11,代码来源:ApplicationRole.java

示例10: getUsers

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

示例11: getToDoItems

import org.apache.isis.applib.annotation.Collection; //导入依赖的package包/类
@SuppressWarnings("unchecked")
@Collection
public List<ExcelModuleDemoToDoItem> getToDoItems() {
    return container.allMatches(ExcelModuleDemoToDoItem.class,
            Predicates.and(
                ExcelModuleDemoToDoItem.Predicates.thoseOwnedBy(currentUserName()),
                ExcelModuleDemoToDoItem.Predicates.thoseCompleted(isComplete()),
                ExcelModuleDemoToDoItem.Predicates.thoseCategorised(getCategory(), getSubcategory())));
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-excel,代码行数:10,代码来源:ExcelModuleDemoToDoItemBulkUpdateManager.java

示例12: getApplicationSettings

import org.apache.isis.applib.annotation.Collection; //导入依赖的package包/类
@Collection()
@MemberOrder(sequence = "2")
public List<ApplicationSettingForEstatio> getApplicationSettings() {
    return applicationSettingsServiceRW.listAll()
            .stream()
            .filter(ApplicationSettingForEstatio.class::isInstance)
            .map(ApplicationSettingForEstatio.class::cast)
            .collect(Collectors.toList());
}
 
开发者ID:estatio,项目名称:estatio,代码行数:10,代码来源:AdminDashboard.java

示例13: getTasksForMe

import org.apache.isis.applib.annotation.Collection; //导入依赖的package包/类
@Collection(notPersisted = true)
public List<Task> getTasksForMe() {

    List<Task> tasksForMe =
            queryResultsCache.execute(
                    this::doGetTasksForMe, EstatioAppHomePage.class, "getTasksForMe");

    return tasksForMe;
}
 
开发者ID:estatio,项目名称:estatio,代码行数:10,代码来源:EstatioAppHomePage.java

示例14: getIncomingInvoicesPayableByOther

import org.apache.isis.applib.annotation.Collection; //导入依赖的package包/类
@Collection(notPersisted = true)
public List<IncomingInvoice> getIncomingInvoicesPayableByOther() {
    final List<IncomingInvoice> invoices = Lists.newArrayList(
            incomingInvoiceRepository.findByApprovalState(IncomingInvoiceApprovalState.PAYABLE) );

    final List<IncomingInvoice> byDirectDebit = getIncomingInvoicesPayableByDirectDebit();
    final List<IncomingInvoice> byTransfer = getIncomingInvoicesPayableAndBankTransfer();
    final List<IncomingInvoice> byManualProcess = getIncomingInvoicesPayableByManualProcess();

    invoices.removeAll(byDirectDebit);
    invoices.removeAll(byTransfer);
    invoices.removeAll(byManualProcess);

    return invoices;
}
 
开发者ID:estatio,项目名称:estatio,代码行数:16,代码来源:EstatioAppHomePage.java

示例15: getLines

import org.apache.isis.applib.annotation.Collection; //导入依赖的package包/类
@SuppressWarnings("unchecked")
@Collection()
@CollectionLayout(
        render = RenderType.EAGERLY
)
public List<BudgetImportExport> getLines() {
    return budgetImportExportService.lines(this);
}
 
开发者ID:estatio,项目名称:estatio,代码行数:9,代码来源:BudgetImportExportManager.java


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