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