@ApplicationScoped public class OrganizationTreeOperationManager extends CheckTreeOperationManager
CheckTreeOperationManager.ActionResponse
Constructor and Description |
---|
OrganizationTreeOperationManager() |
Modifier and Type | Method and Description |
---|---|
CheckTreeOperationManager.ActionResponse |
checkNodeMovement(Map<String,String> parameters,
String nodeId,
String newParentId,
String prevNodeId,
String nextNodeId)
Only allows to move a node if it belong to a organization that is not set as ready
|
public CheckTreeOperationManager.ActionResponse checkNodeMovement(Map<String,String> parameters, String nodeId, String newParentId, String prevNodeId, String nextNodeId)
checkNodeMovement
in class CheckTreeOperationManager
parameters
- Map of the parameters sent to the client to the datasourcenodeId
- id of the node being movednewParentId
- id of the new parent of the node (ROOT_NODE_CLIENT if the node is being moved to the
root)prevNodeId
- id of the sibling node that would be placed just before the node being moved. Can be
null if the node is being placed in the first position of its siblings. Irrelevant if
the tree is not orderednextNodeId
- id of the sibling node that would be placed just after the node being moved. Can be
null if the node is being placed in the last position of its siblings. Irrelevant if
the tree is not ordered