| java.lang.Object com.flexive.shared.tree.FxTreeNode
All known Subclasses: com.flexive.shared.tree.FxTreeNodeEdit,
Constructor Summary | |
protected | FxTreeNode() | public | FxTreeNode(FxTreeMode mode, long id, long parentNodeId, FxPK reference, long ACLId, String name, String path, FxString label, int position, List<FxTreeNode> children, List<Long> childIds, int depth, int totalChildCount, int directChildCount, boolean leaf, boolean dirty, long modifiedAt, String template, boolean mayEdit, boolean mayCreate, boolean mayDelete, boolean mayRelate, boolean mayExport) |
PARTIAL_LOADED_POS | final public static int PARTIAL_LOADED_POS(Code) | | |
PATH_NOT_LOADED | final public static String PATH_NOT_LOADED(Code) | | |
ROOT_NODE | final public static long ROOT_NODE(Code) | | Constant id of the root node
|
activate | protected boolean activate(Code) | | |
parentNodeId | protected long parentNodeId(Code) | | |
position | protected int position(Code) | | |
FxTreeNode | protected FxTreeNode()(Code) | | Protected constructor to avoid construction
|
FxTreeNode | public FxTreeNode(FxTreeMode mode, long id, long parentNodeId, FxPK reference, long ACLId, String name, String path, FxString label, int position, List<FxTreeNode> children, List<Long> childIds, int depth, int totalChildCount, int directChildCount, boolean leaf, boolean dirty, long modifiedAt, String template, boolean mayEdit, boolean mayCreate, boolean mayDelete, boolean mayRelate, boolean mayExport)(Code) | | Ctor
Parameters: mode - FxTreeMode Parameters: id - node id Parameters: parentNodeId - id of the parent node Parameters: reference - pk of the referenced content Parameters: ACLId - acl of the referenced content Parameters: name - name (part of the path) Parameters: path - complete path from the root node Parameters: label - label Parameters: position - position Parameters: children - child nodes (only available if loaded with #getTree ) Parameters: childIds - ids of the child nodes (only available if loaded with #getTree ) Parameters: depth - depth of this node relative to the root node Parameters: totalChildCount - total number of children Parameters: directChildCount - number of children attached to this node directly Parameters: leaf - is this node a leaf? Parameters: dirty - dirty flag Parameters: modifiedAt - timestamp of last modification Parameters: template - template Parameters: mayEdit - edit permission for the calling user Parameters: mayCreate - create permission for the calling user Parameters: mayDelete - delete permission for the calling user Parameters: mayRelate - relate permission for the calling user Parameters: mayExport - export permission for the calling user |
_addChild | public synchronized void _addChild(FxTreeNode node)(Code) | | Internal method only used during loading phase of a tree
Parameters: node - child node to add |
_applyPath | public void _applyPath(String path)(Code) | | Internal method to recursively apply a path from the root to all children
Parameters: path - path to apply (includes name already!) |
_applyPosition | public void _applyPosition(int position)(Code) | | Internal method to recursively apply positions
Parameters: position - position to apply to this node |
createErrorNode | public static FxTreeNode createErrorNode(long nodeId, String message)(Code) | | Create a temporary error node to be used in UI
Parameters: nodeId - desired node id Parameters: message - error message FxTreeNode |
createNewTemporaryChildNode | public static FxTreeNode createNewTemporaryChildNode(FxTreeNode parentNode)(Code) | | Create a temporary node below the given parent node
Parameters: parentNode - the parent node temporary node |
getACLId | public long getACLId()(Code) | | Get the id of the ACL assigned to the referenced content
id of the ACL assigned to the referenced content |
getChildIds | public synchronized List<Long> getChildIds()(Code) | | Returns the child Id's of this node, but only if they are a part of the resultset.
the child Id's of this node, but only if they are a part of the resultset |
getChildren | public List<FxTreeNode> getChildren()(Code) | | Returns the children of this node, but only if they are a part of the resultset - use
isLeaf(), getDirectChildCount() and getTotalChildCount() to find out if the node has
children.
This function never returns null, but a empty List when no children are available
the children of this node, but only if they are a part of the resultset |
getDepth | public int getDepth()(Code) | | Returns the depth of the node within the complete tree
The root node has depth 1
the depth of the node |
getDirectChildCount | public int getDirectChildCount()(Code) | | Get the number of child nodes directly attached to this node
the number of child nodes directly attached to this node |
getId | public long getId()(Code) | | |
getMode | public FxTreeMode getMode()(Code) | | Get the tree mode (live or edit)
tree mode |
getModifiedAt | public long getModifiedAt()(Code) | | Get the timestamp of the last modification
timestamp of the last modification |
getName | public String getName()(Code) | | Get the name of this node
name of this node |
getParentNodeId | public long getParentNodeId()(Code) | | Get the id of the parent node
id of the parent node |
getPath | public String getPath()(Code) | | Get the path of this node
path |
getPosition | public int getPosition()(Code) | | Get the position of this node
position of this node |
getReference | public FxPK getReference()(Code) | | Get the referenced content
referenced content |
getTemplate | public String getTemplate()(Code) | | Get the template assigned to this node, can be null
template assigned to this node, can be null |
getTotalChildCount | public int getTotalChildCount()(Code) | | Get the number of child nodes attached to this node and all subchildren
the number of child nodes attached to this node and all subchildren |
hasReference | public boolean hasReference()(Code) | | Is a reference set for this node (Description)
if a reference is set |
hasTemplate | public boolean hasTemplate()(Code) | | Is a template assigned to this node?
if a template is assigned to this node |
hashCode | public int hashCode()(Code) | | |
isActivate | public boolean isActivate()(Code) | | Is the node marked as active? (only used in GUI, not persisted!)
active status |
isDirty | public boolean isDirty()(Code) | | Is this node flagged as dirty?
node flagged as dirty? |
isLeaf | public boolean isLeaf()(Code) | | Is this a leaf node?
if this node is a leaf node |
isLive | public boolean isLive()(Code) | | Is this node "live"?
if the node is "live" |
isMarkForDelete | public boolean isMarkForDelete()(Code) | | Is this node marked to be deleted? (only used in GUI, not persisted!)
marked for delete |
isMayCreate | public boolean isMayCreate()(Code) | | ACL: Create permission for the calling user
ACL: Create permission for the calling user |
isMayDelete | public boolean isMayDelete()(Code) | | ACL: Delete permission for the calling user
ACL: Delete permission for the calling user |
isMayEdit | public boolean isMayEdit()(Code) | | ACL: Edit permission for the calling user
ACL: Edit permission for the calling user |
isMayExport | public boolean isMayExport()(Code) | | ACL: Export permission for the calling user
ACL: Export permission for the calling user |
isMayRelate | public boolean isMayRelate()(Code) | | ACL: Relate permission for the calling user
ACL: Relate permission for the calling user |
isPartialLoaded | public boolean isPartialLoaded()(Code) | | Is this FxTreeNode only partially loaded?
Loading a (sub)tree is usually performed with partial loading enabled (only the calling
users current language filled in the label)
if this FxTreeNode is only partially loaded |
isTemporary | public boolean isTemporary()(Code) | | Is this node temporary only? (only used in GUI, not persisted!)
if this node is temporary only |
setActivate | public void setActivate(boolean activate)(Code) | | Set the active flag of this tree node (only used in GUI, not persisted!)
Parameters: activate - activate flag |
setMarkForDelete | public FxTreeNode setMarkForDelete(boolean markForDelete)(Code) | | Mark to be deleted for UI (only used in GUI, not persisted!)
Parameters: markForDelete - delete? this |
|
|