Class MarkActionServiceImpl
java.lang.Object
ch.tocco.nice2.marking.impl.action.MarkActionServiceImpl
- All Implemented Interfaces:
MarkActionService
ActionService for marking entity
-
Constructor Summary
ConstructorDescriptionMarkActionServiceImpl
(EntityMarkService markService, Context ctx, QueryBuilderFactory queryBuilderFactory, EntityExplorerActionSelectionService selectionService, PrincipalService principalService) -
Method Summary
Modifier and TypeMethodDescriptionareAllMarked
(EntityExplorerActionSelection selection) Are all entities in selection markedboolean
isMarked
(EntityExplorerActionSelection selection) Is the selection marked or notvoid
Mark or unmark a single entity from actionvoid
markMultiple
(EntityExplorerActionSelection entities, String entityName, boolean mark) Mark or unmark multipe entities from actionboolean
toggleMark
(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:MarkActionService
Mark or unmark a single entity from action- Specified by:
mark
in 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:MarkActionService
Mark or unmark multipe entities from action- Specified by:
markMultiple
in interfaceMarkActionService
- Parameters:
entities
- the selection of entitiesentityName
- the name of the entity modelmark
- if the entities should be marked or unmarked- Throws:
InterruptedException
RpcExecutionException
-
toggleMark
public boolean toggleMark(EntityExplorerActionSelection selection, String entityName) throws RpcExecutionException, InterruptedException Description copied from interface:MarkActionService
Mark an unmarked entity, unmark a marked entity- Specified by:
toggleMark
in interfaceMarkActionService
- Parameters:
selection
- the entity in questionentityName
- name of the entity- Returns:
- true when marked, false when unmarked
- Throws:
RpcExecutionException
InterruptedException
-
isMarked
Description copied from interface:MarkActionService
Is the selection marked or not- Specified by:
isMarked
in interfaceMarkActionService
- Parameters:
selection
- the selection of entities- Returns:
- true when marked, false when unmarked
- Throws:
RpcExecutionException
-
areAllMarked
Description copied from interface:MarkActionService
Are all entities in selection marked- Specified by:
areAllMarked
in interfaceMarkActionService
- Parameters:
selection
- the selection of entities- Returns:
- true when marked, false when unmarked
- Throws:
RpcExecutionException
-