Class DomainNodeImpl
java.lang.Object
ch.tocco.nice2.dms.spi.tree.AbstractContentTreeNode
ch.tocco.nice2.dms.spi.tree.DomainNodeImpl
- All Implemented Interfaces:
ContentTreeNode, DomainNode
- Direct Known Subclasses:
CmsDomainNodeImpl
-
Field Summary
Fields inherited from class AbstractContentTreeNode
ALIAS_FIELD_NAME, ALIAS_SPLITTER, contentTreeContext, contentTreeService, delegate, HASH_FUNCTION, LABEL_FIELD_NAME, log, mode, model, NAME_FIELD_NAME, nodeServicePointHolder, URL_FIELD_NAME -
Constructor Summary
ConstructorsConstructorDescriptionDomainNodeImpl(Entity entity, ContentTreeService contentTreeService, NodeServicePointHolder nodeServicePointHolder) -
Method Summary
Modifier and TypeMethodDescriptionbooleanIs true, if an alias applies to the child nodes, else false.protected EntityTreeNodedecorateTreeNode(EntityTreeNode treeNode) getName()Returns this node's name.Get the old path part of this node.getOptimalPathForRequest(String requestUrl) getPath()Get the path part of this node.getUrl()booleanprotected booleanbooleanDetermine if path part has changed (in current transaction).booleanisRoot()Determine if the node is a root node.voidmoveAbove(ContentTreeNode referenceNode) move the currentContentTreeNodeto the position beforereferenceNodevoidmoveBelow(ContentTreeNode referenceNode) move the currentContentTreeNodeto the position afterreferenceNodeprotected StringnormalizeAliases(String aliases) protected StringnormalizeName(String name) protected StringnormalizeUrl(String url) voidMethods inherited from class AbstractContentTreeNode
addAlias, areAliasesChanged, copy, copyChild, copyChildren, copyRelation, decorateCopy, delete, equals, getAdminUrl, getAliases, getAliasesSet, getAvailablePermissions, getBusinessUnit, getBusinessUnitInvoker, getChecksum, getChild, getChildCopyParams, getChildren, getChildren, getChildren, getChildrenCount, getContent, getContentEntity, getContentPublished, getContentRelation, getContentTreeContext, getCopySource, getDefaultPublicContentTreeContext, getDelegate, getLabel, getModel, getNodeRight, getNodeRights, getOldPath, getOldPaths, getOptimalPath, getOrCreateNodeRight, getParent, getPaths, getPermissionsForChildren, getPublishStatus, getRoot, getRoot, getSorting, getTreeNode, hasChild, hasChildren, hasContentReadPermission, hashCode, hasPermissionEditPermission, invokePrivileged, isChildOf, isChildRelationChanged, isCurrentlyPublished, isParentRelationChanged, isPrivileged, isSystemNode, isVisibleInNavigation, moveInto, perform, readString, readStringPrivileged, removeNodeRight, requireParent, resetChildren, setAliases, setContentTreeContext, setLabel, setName, setParent, setPublishStatus, setSorting, setValue, setValue, toString, verifyChecksum, verifyNameMethods inherited from interface ContentTreeNode
addAlias, areAliasesChanged, copy, delete, getAdminUrl, getAliases, getAliasesSet, getAvailablePermissions, getBusinessUnit, getBusinessUnitInvoker, getChecksum, getChild, getChildren, getChildren, getChildren, getChildrenCount, getContent, getContentEntity, getContentPublished, getContentTreeContext, getCopySource, getDefaultPublicContentTreeContext, getDelegate, getLabel, getModel, getNodeRight, getNodeRights, getOldPath, getOldPaths, getOptimalPath, getOrCreateNodeRight, getParent, getPaths, getPermissionsForChildren, getPublishStatus, getRoot, getRoot, getSorting, getTreeNode, hasChild, hasChildren, hasContentReadPermission, hasContentReadPermission, hasPermissionEditPermission, isChildOf, isChildRelationChanged, isCurrentlyPublished, isParentRelationChanged, isSystemNode, isVisibleInNavigation, moveInto, removeNodeRight, requireParent, resetChildren, setAliases, setContentTreeContext, setLabel, setName, setParent, setSorting, verifyChecksum, verifyName
-
Constructor Details
-
DomainNodeImpl
public DomainNodeImpl(Entity entity, ContentTreeService contentTreeService, NodeServicePointHolder nodeServicePointHolder)
-
-
Method Details
-
getName
Description copied from interface:ContentTreeNodeReturns this node's name. The name is a normalized string used in URLs to identify this node.- Specified by:
getNamein interfaceContentTreeNode- Overrides:
getNamein classAbstractContentTreeNode
-
getUrl
- Specified by:
getUrlin interfaceDomainNode
-
setUrl
- Specified by:
setUrlin interfaceDomainNode
-
hasAliases
public boolean hasAliases()- Specified by:
hasAliasesin interfaceContentTreeNode- Overrides:
hasAliasesin classAbstractContentTreeNode
-
aliasesApplyRecursive
public boolean aliasesApplyRecursive()Description copied from interface:ContentTreeNodeIs true, if an alias applies to the child nodes, else false. This means: If aliases of this node apply recursive and this node has an alias "http://www.example.com" and there is a child node named "child", then "http://www.example.com/child" would resolve the child node.- Specified by:
aliasesApplyRecursivein interfaceContentTreeNode- Overrides:
aliasesApplyRecursivein classAbstractContentTreeNode
-
isRoot
public boolean isRoot()Description copied from interface:ContentTreeNodeDetermine if the node is a root node.- Specified by:
isRootin interfaceContentTreeNode- Overrides:
isRootin classAbstractContentTreeNode- Returns:
- true, if the node is a root node, else false.
-
getPath
- Specified by:
getPathin interfaceContentTreeNode- Overrides:
getPathin classAbstractContentTreeNode- Returns:
- the full path of the current ContentTreeNode
- Throws:
ContentException
-
getOptimalPathForRequest
- Specified by:
getOptimalPathForRequestin interfaceContentTreeNode- Overrides:
getOptimalPathForRequestin classAbstractContentTreeNode- Returns:
- the optimal path of the current ContentTreeNode which does not contain authority if possible and uses same alias as request if possible
- Throws:
ContentException
-
getPathPart
Description copied from interface:ContentTreeNodeGet the path part of this node. The full path of a node is put together from the path parts of the node and of all parent nodes.- Specified by:
getPathPartin interfaceContentTreeNode- Overrides:
getPathPartin classAbstractContentTreeNode- Returns:
- the path part of this node.
- Throws:
ContentException
-
getOldPathPart
Description copied from interface:ContentTreeNodeGet the old path part of this node. This is different fromContentTreeNode.getPathPart()if the path part of this node or of a parent node has changed in the current transaction.- Specified by:
getOldPathPartin interfaceContentTreeNode- Overrides:
getOldPathPartin classAbstractContentTreeNode- Returns:
- the old path part.
- See Also:
-
decorateTreeNode
- Overrides:
decorateTreeNodein classAbstractContentTreeNode- Throws:
ContentException
-
moveBelow
Description copied from interface:ContentTreeNodemove the currentContentTreeNodeto the position afterreferenceNode- Specified by:
moveBelowin interfaceContentTreeNode- Parameters:
referenceNode- becomes the new left neighbour of thisContentTreeNode- Throws:
ContentException
-
moveAbove
Description copied from interface:ContentTreeNodemove the currentContentTreeNodeto the position beforereferenceNode- Specified by:
moveAbovein interfaceContentTreeNode- Parameters:
referenceNode- becomes the new right neighbour of thisContentTreeNode- Throws:
ContentException
-
isPathPartChanged
public boolean isPathPartChanged()Description copied from interface:ContentTreeNodeDetermine if path part has changed (in current transaction).- Specified by:
isPathPartChangedin interfaceContentTreeNode- Overrides:
isPathPartChangedin classAbstractContentTreeNode- Returns:
- true, if the path part has changed, else false.
- See Also:
-
normalizeName
- Overrides:
normalizeNamein classAbstractContentTreeNode
-
normalizeAliases
- Overrides:
normalizeAliasesin classAbstractContentTreeNode
-
normalizeUrl
-
isEntityDocsNode
protected boolean isEntityDocsNode()- Specified by:
isEntityDocsNodein classAbstractContentTreeNode
-