Class AbstractSaveNodeRightsTask
java.lang.Object
ch.tocco.nice2.dms.impl.security.persist.AbstractSaveNodeRightsTask
- All Implemented Interfaces:
PersistTask<Tuple2<ContentTreeNode,
PermissionsSaveActionService.PermissionValue[]>, Void>
- Direct Known Subclasses:
AddNodeRightsTask
,RemoveNodeRightsTask
,SetNodeRightsTask
public abstract class AbstractSaveNodeRightsTask
extends Object
implements PersistTask<Tuple2<ContentTreeNode,PermissionsSaveActionService.PermissionValue[]>,Void>
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractSaveNodeRightsTask
(ContentNodePermissionService contentNodePermissionService) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addNodeRights
(PermissionsSaveActionService.PermissionValue[] values, ContentTreeNode node) add all values in args to the Nodeprotected void
remove all Node_rights from a nodeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.PersistTask
andThenDo, compose, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, run, skipErrors, unwrap
-
Field Details
-
contentNodePermissionService
-
-
Constructor Details
-
AbstractSaveNodeRightsTask
-
-
Method Details
-
removeNodeRights
remove all Node_rights from a node- Parameters:
node
- the node- Throws:
InterruptedException
-
addNodeRights
protected void addNodeRights(PermissionsSaveActionService.PermissionValue[] values, ContentTreeNode node) add all values in args to the Node- Parameters:
values
- permission valuesnode
- the node
-