Class SelectionServiceImpl
java.lang.Object
ch.tocco.nice2.rest.entity.impl.selection.SelectionServiceImpl
- All Implemented Interfaces:
SelectionService
-
Constructor Summary
ConstructorsConstructorDescriptionSelectionServiceImpl(Context context, CommandExecutor commandExecutor, SearchService searchService, EntityBeanFactory entityBeanFactory, DataModel dataModel) -
Method Summary
Modifier and TypeMethodDescriptionresolveEntities(EntitySelectionBean entitySelection, boolean ignoreMissingEntities) voidrestrictToSelection(EntitySelectionBean entitySelection, QueryBuilderBase<?, ?> queryBuilder) Restricts the query to the selected entities.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SelectionService
resolveEntities
-
Constructor Details
-
SelectionServiceImpl
public SelectionServiceImpl(Context context, CommandExecutor commandExecutor, SearchService searchService, EntityBeanFactory entityBeanFactory, DataModel dataModel)
-
-
Method Details
-
resolveEntities
public PrimaryKeyList resolveEntities(EntitySelectionBean entitySelection, boolean ignoreMissingEntities) - Specified by:
resolveEntitiesin interfaceSelectionService
-
restrictToSelection
public void restrictToSelection(EntitySelectionBean entitySelection, QueryBuilderBase<?, ?> queryBuilder) Description copied from interface:SelectionServiceRestricts the query to the selected entities. UnlikeSelectionService.resolveEntities(EntitySelectionBean), aSelectionType.QUERYselection (e.g. all entities of a list) is not resolved to its keys: its search conditions are added to the query instead, which is much faster for large selections. Read permissions are therefore only applied as query conditions (like for the count of a list), the selected entities are not checked one by one. A selection with a limit is resolved to its keys.- Specified by:
restrictToSelectionin interfaceSelectionService
-