Class AssetsTreeOperationManager

    • Constructor Detail

      • AssetsTreeOperationManager

        public AssetsTreeOperationManager()
    • Method Detail

      • checkNodeMovement

        public CheckTreeOperationManager.ActionResponse checkNodeMovement​(Map<String,​String> parameters,
                                                                          String nodeId,
                                                                          String newParentId,
                                                                          String prevNodeId,
                                                                          String nextNodeId)
        Only allows to move an asset if it is not static
        Specified by:
        checkNodeMovement in class CheckTreeOperationManager
        Parameters:
        parameters - Map of the parameters sent to the client to the datasource
        nodeId - id of the node being moved
        newParentId - 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 ordered
        nextNodeId - 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
        Returns:
        an ActionResponse object. If the movement is valid, the success attribute must be true, false otherwise. The message and messageType attributes can be used to show a message in the client message bar