/** * 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())); }
@Collection( editing = Editing.DISABLED ) @CollectionLayout( sortedBy = RelativePriorityService.Comparator.class ) public List<ToDoItem> getNotYetComplete() { return toDoItems.notYetCompleteNoUi(); } //endregion
/** * 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()))); }
/** * 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()))); }
@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); }
@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); }
@Action( domainEvent = ActionDomainEvent.class, semantics = SemanticsOf.SAFE ) @ActionLayout( contributed = Contributed.AS_ASSOCIATION ) @CollectionLayout(defaultView = "table") public List<Paperclip> coll() { return queryResultsCache.execute( () -> paperclipRepository.findByDocument(document) , getClass(), "$$", document); }
@Action( domainEvent = ActionDomainEvent.class, semantics = SemanticsOf.SAFE ) @ActionLayout( contributed = Contributed.AS_ASSOCIATION ) @CollectionLayout(defaultView = "table") public List<Paperclip> coll() { return queryResultsCache.execute( () -> paperclipRepository.findByDocument(document) , getClass(), "$$", document); }
@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()); } //endregion