| java.lang.Object com.flexive.war.javascript.tree.ContentTreeEditor
ContentTreeEditor | public class ContentTreeEditor implements Serializable(Code) | | Content tree edit actions invoked via JSON/RPC.
author: Daniel Lichtenberger (daniel.lichtenberger@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) version: $Rev: 1 $ |
Method Summary | |
public String | activate(long nodeId, boolean includeChildren) | public String | addReferences(long nodeId, long[] referenceIds) | public String | copy(long nodeId, long newParentId, int index, boolean live) | public String | createFolder(long parentNodeId, String folderName) | public String | move(long nodeId, long newParentId, int index, boolean live) | public String | remove(long nodeId, boolean removeContent, boolean live, boolean deleteChildren) Remove a tree node and (depending on the removeContent parameter) the attached
content instance. | public String | saveLabel(long nodeId, String label, boolean liveTree, boolean pathMode) Update the tree node's label. |
move | public String move(long nodeId, long newParentId, int index, boolean live) throws Exception(Code) | | Move the given node to the new parent at position index
Parameters: nodeId - the tree node to be moved Parameters: newParentId - the the parent node Parameters: index - the new position nothing throws: Exception - if an error occured |
remove | public String remove(long nodeId, boolean removeContent, boolean live, boolean deleteChildren) throws Exception(Code) | | Remove a tree node and (depending on the removeContent parameter) the attached
content instance.
Parameters: nodeId - the tree node ID Parameters: removeContent - if true, the attached content instance will also be removed Parameters: live - if the tree is in live mode Parameters: deleteChildren - if the node children should also be deleted nothing throws: Exception - if an error occured |
saveLabel | public String saveLabel(long nodeId, String label, boolean liveTree, boolean pathMode) throws IOException(Code) | | Update the tree node's label.
Parameters: nodeId - the node id Parameters: label - the new label Parameters: liveTree - true if the live tree should be rendered, false for the edit tree Parameters: pathMode - true if node labels should be paths instead of content captions nothing throws: java.io.IOException - if the response could not be created |
|
|