Class PermissionsSaveActionServiceImpl
java.lang.Object
ch.tocco.nice2.dms.api.util.AbstractContentTreeContextDependentService
ch.tocco.nice2.dms.impl.security.permissionsaving.PermissionsSaveActionServiceImpl
- All Implemented Interfaces:
PermissionsSaveActionService
public class PermissionsSaveActionServiceImpl
extends AbstractContentTreeContextDependentService
implements PermissionsSaveActionService
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.dms.impl.security.permissionsaving.PermissionsSaveActionService
PermissionsSaveActionService.DmsContentTreeContextHolder, PermissionsSaveActionService.PermissionValue
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPermissionsSaveActionServiceImpl
(CommandExecutor commandExecutor, ContentTreeService contentTreeService, EntityExplorerActionSelectionService selectionService, ContentNodePermissionService contentNodePermissionService, TaskSchedulingService taskSchedulingService, BusinessUnitManager businessUnitManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
save
(String mode, EntityExplorerActionSelection selection, PermissionsSaveActionService.PermissionValue[] values, String moduleName, Boolean runInBackground) Save Node_rights for an individual nodevoid
saveRecursive
(String mode, EntityExplorerActionSelection selection, PermissionsSaveActionService.PermissionValue[] values, String moduleName, Boolean runInBackground) Recursively save Node_rights for a node and its childrenMethods inherited from class ch.tocco.nice2.dms.api.util.AbstractContentTreeContextDependentService
getContentTreeContext, setContentTreeContexts
-
Field Details
-
contentTreeService
-
-
Constructor Details
-
PermissionsSaveActionServiceImpl
public PermissionsSaveActionServiceImpl(CommandExecutor commandExecutor, ContentTreeService contentTreeService, EntityExplorerActionSelectionService selectionService, ContentNodePermissionService contentNodePermissionService, TaskSchedulingService taskSchedulingService, BusinessUnitManager businessUnitManager)
-
-
Method Details
-
save
public void save(String mode, EntityExplorerActionSelection selection, PermissionsSaveActionService.PermissionValue[] values, String moduleName, Boolean runInBackground) Description copied from interface:PermissionsSaveActionService
Save Node_rights for an individual node- Specified by:
save
in interfacePermissionsSaveActionService
- Parameters:
mode
- the save mode (i.e. SET)selection
- selected entityvalues
- permission values to be savedmoduleName
- name of the entity explorer module (e.g. Resource, Page)runInBackground
- whether to run this via the task queue
-
saveRecursive
public void saveRecursive(String mode, EntityExplorerActionSelection selection, PermissionsSaveActionService.PermissionValue[] values, String moduleName, Boolean runInBackground) Description copied from interface:PermissionsSaveActionService
Recursively save Node_rights for a node and its children- Specified by:
saveRecursive
in interfacePermissionsSaveActionService
- Parameters:
mode
- the save mode (i.e. SET, ADD, REMOVE)selection
- selected entityvalues
- permission values to be savedmoduleName
- name of the entity explorer module (e.g. Resource, Page)runInBackground
- whether to run this via the task queue
-