本文整理汇总了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();
}
示例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;
}
示例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());
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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));
}
示例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());
}
示例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());
}
示例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;
}
示例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;
}
示例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);
}