Class MarkActionServiceImpl
java.lang.Object
ch.tocco.nice2.marking.impl.action.MarkActionServiceImpl
- All Implemented Interfaces:
MarkActionService
ActionService for marking entity
-
Constructor Summary
ConstructorsConstructorDescriptionMarkActionServiceImpl(EntityMarkService markService, Context ctx, QueryBuilderFactory queryBuilderFactory, EntityExplorerActionSelectionService selectionService, PrincipalService principalService) -
Method Summary
Modifier and TypeMethodDescriptionareAllMarked(EntityExplorerActionSelection selection) Are all entities in selection markedbooleanisMarked(EntityExplorerActionSelection selection) Is the selection marked or notvoidMark or unmark a single entity from actionvoidmarkMultiple(EntityExplorerActionSelection entities, String entityName, boolean mark) Mark or unmark multipe entities from actionbooleantoggleMark(EntityExplorerActionSelection selection, String entityName) Mark an unmarked entity, unmark a marked entity
-
Constructor Details
-
MarkActionServiceImpl
public MarkActionServiceImpl(EntityMarkService markService, Context ctx, QueryBuilderFactory queryBuilderFactory, EntityExplorerActionSelectionService selectionService, PrincipalService principalService)
-
-
Method Details
-
mark
Description copied from interface:MarkActionServiceMark or unmark a single entity from action- Specified by:
markin interfaceMarkActionService- Parameters:
key- the primary key of the entityentityName- the name of the entity modelmark- if the entity should be marked or unmarked- Throws:
InterruptedException
-
markMultiple
public void markMultiple(EntityExplorerActionSelection entities, String entityName, boolean mark) throws InterruptedException, RpcExecutionException Description copied from interface:MarkActionServiceMark or unmark multipe entities from action- Specified by:
markMultiplein interfaceMarkActionService- Parameters:
entities- the selection of entitiesentityName- the name of the entity modelmark- if the entities should be marked or unmarked- Throws:
InterruptedExceptionRpcExecutionException
-
toggleMark
public boolean toggleMark(EntityExplorerActionSelection selection, String entityName) throws RpcExecutionException, InterruptedException Description copied from interface:MarkActionServiceMark an unmarked entity, unmark a marked entity- Specified by:
toggleMarkin interfaceMarkActionService- Parameters:
selection- the entity in questionentityName- name of the entity- Returns:
- true when marked, false when unmarked
- Throws:
RpcExecutionExceptionInterruptedException
-
isMarked
Description copied from interface:MarkActionServiceIs the selection marked or not- Specified by:
isMarkedin interfaceMarkActionService- Parameters:
selection- the selection of entities- Returns:
- true when marked, false when unmarked
- Throws:
RpcExecutionException
-
areAllMarked
Description copied from interface:MarkActionServiceAre all entities in selection marked- Specified by:
areAllMarkedin interfaceMarkActionService- Parameters:
selection- the selection of entities- Returns:
- true when marked, false when unmarked
- Throws:
RpcExecutionException
-