| java.lang.Object com.flexive.ejb.beans.TreeEngineBean
TreeEngineBean | public class TreeEngineBean implements TreeEngine,TreeEngineLocal(Code) | | Flexive Tree implementation
author: Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) |
Method Summary | |
public void | activate(FxTreeMode mode, long nodeId, boolean includeChildren) | public void | clear(FxTreeMode mode) | public long | copy(FxTreeMode mode, long source, long destination, int destinationPosition) | public long | createNode(long parentNodeId, String name, FxString label, int position, FxPK reference, String template, FxTreeMode mode) | public long[] | createNodes(FxTreeMode mode, long parentNodeId, int position, String path) | public boolean | exist(FxTreeMode mode, long id) | public FxTreeNode | findChild(FxTreeMode mode, long nodeId, String name) | public FxTreeNode | findChild(FxTreeMode mode, long nodeId, long referenceId) | public FxTreeNode | findChild(FxTreeMode mode, long nodeId, FxPK pk) | public FxTreeNode | findChild(FxTreeMode mode, long nodeId, FxReference reference) | public long | getIdByFQNPath(FxTreeMode mode, long startNode, String path) | public long | getIdByLabelPath(FxTreeMode mode, long startNode, String path) | public long | getIdByPath(FxTreeMode mode, String path) | public long[] | getIdChain(FxTreeMode mode, long nodeId) | public List<String> | getLabels(FxTreeMode mode, long... ids) | public List<String> | getLabels(FxTreeMode mode, FxLanguage language, long... ids) | public FxTreeNode | getNode(FxTreeMode mode, long id) | public List<FxTreeNode> | getNodesWithReference(FxTreeMode mode, long reference) | public String | getPathById(FxTreeMode mode, long nodeId) | public List<String> | getPaths(FxTreeMode mode, long... ids) | public long[] | getReverseIdChain(FxTreeMode mode, long id) | public String[] | getTemplates(FxTreeMode mode, long id) | public FxTreeNode | getTree(FxTreeMode mode, long nodeId, int depth) | public void | move(FxTreeMode mode, long nodeId, long destinationId, int newPosition) | public void | populate(FxTreeMode mode) | public void | remove(FxTreeNode node, boolean removeReferencedContent, boolean removeChildren) | public void | removeNode(FxTreeMode mode, long nodeId, boolean deleteReferencedContent, boolean deleteChildren) Deletes the given node. | public void | renameNode(long nodeId, FxTreeMode mode, String name, FxString label) | public long | save(FxTreeNodeEdit node) | public void | setTemplate(FxTreeMode mode, long nodeId, String template) |
PARTIAL_LOADING | final static boolean PARTIAL_LOADING(Code) | | |
ctx | javax.ejb.SessionContext ctx(Code) | | |
TreeEngineBean | public TreeEngineBean()(Code) | | |
createNode | public long createNode(long parentNodeId, String name, FxString label, int position, FxPK reference, String template, FxTreeMode mode) throws FxApplicationException(Code) | | Create a new node
Parameters: mode - tree mode Parameters: parentNodeId - id of the parent node Parameters: name - name (will only be used if no FQN property is available in the reference) Parameters: label - label for Caption property (only used if new reference is created) Parameters: position - position Parameters: reference - referenced content id Parameters: template - optional template to assign @return id of the created node id of the node created throws: FxApplicationException - on errors |
getReverseIdChain | public long[] getReverseIdChain(FxTreeMode mode, long id)(Code) | | |
removeNode | public void removeNode(FxTreeMode mode, long nodeId, boolean deleteReferencedContent, boolean deleteChildren) throws FxApplicationException(Code) | | Deletes the given node.
Parameters: mode - tree mode to use (Live or Edit tree) Parameters: nodeId - the node to delete Parameters: deleteReferencedContent - delete referenced content Parameters: deleteChildren - if true all nodes that are inside the subtree of the given node aredeleted as well, if false the subtree is moved one level up (to the parent of the specifiednode) throws: FxApplicationException - on errors |
|
|