Package ch.tocco.nice2.dms.spi.tree
Class ResourceNodeImpl
java.lang.Object
ch.tocco.nice2.dms.spi.tree.AbstractContentTreeNode
ch.tocco.nice2.dms.spi.tree.ResourceNodeImpl
- All Implemented Interfaces:
ContentTreeNode
,ResourceNode
-
Field Summary
Fields inherited from class ch.tocco.nice2.dms.spi.tree.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
ConstructorDescriptionResourceNodeImpl
(Entity entity, ContentTreeService contentTreeService, NodeServicePointHolder nodeServicePointHolder) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
decorateCopy
(ContentTreeNode original) Post process this created copy of theoriginal
.protected EntityTreeNode
decorateTreeNode
(EntityTreeNode treeNode) Returns the over "relContent" related entity.Returns the over "relContent_published" related entity.getLabel()
Returns the human readable label for this node.getName()
Returns this node's name.boolean
protected boolean
void
moveAbove
(ContentTreeNode referenceNode) move the currentContentTreeNode
to the position beforereferenceNode
void
moveBelow
(ContentTreeNode referenceNode) move the currentContentTreeNode
to the position afterreferenceNode
void
setResourceContent
(Entity entity) void
setSorting
(Integer sorting) boolean
verifyChecksum
(String checksum) Also accept the field name if it is a detail document (for performance reasons - see TOCDEV-229)boolean
verifyName
(String name) Also accept the field name if it is a detail document (for performance reasons - see TOCDEV-229)Methods inherited from class ch.tocco.nice2.dms.spi.tree.AbstractContentTreeNode
addAlias, aliasesApplyRecursive, areAliasesChanged, copy, copyChild, copyChildren, copyRelation, delete, equals, getAdminUrl, getAliases, getAliasesSet, getAvailablePermissions, getBusinessUnit, getBusinessUnitInvoker, getChecksum, getChild, getChildCopyParams, getChildren, getChildren, getChildren, getChildrenCount, getContentEntity, getContentRelation, getContentTreeContext, getCopySource, getDefaultPublicContentTreeContext, getDelegate, getModel, getNodeRight, getNodeRights, getOldPath, getOldPathPart, getOldPaths, getOptimalPath, getOptimalPathForRequest, getOrCreateNodeRight, getParent, getPath, getPathPart, getPaths, getPermissionsForChildren, getPublishStatus, getRoot, getRoot, getTreeNode, hasChild, hasChildren, hasContentReadPermission, hashCode, hasPermissionEditPermission, invokePrivileged, isChildOf, isChildRelationChanged, isCurrentlyPublished, isParentRelationChanged, isPathPartChanged, isPrivileged, isRoot, isSystemNode, isVisibleInNavigation, moveInto, normalizeAliases, normalizeName, perform, readString, readStringPrivileged, removeNodeRight, requireParent, resetChildren, setAliases, setContentTreeContext, setLabel, setName, setParent, setPublishStatus, setValue, setValue, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.dms.api.tree.ContentTreeNode
addAlias, aliasesApplyRecursive, areAliasesChanged, copy, delete, getAdminUrl, getAliases, getAliasesSet, getAvailablePermissions, getBusinessUnit, getBusinessUnitInvoker, getChecksum, getChild, getChildren, getChildren, getChildren, getChildrenCount, getContentEntity, getContentTreeContext, getCopySource, getDefaultPublicContentTreeContext, getDelegate, getModel, getNodeRight, getNodeRights, getOldPath, getOldPathPart, getOldPaths, getOptimalPath, getOptimalPathForRequest, getOrCreateNodeRight, getParent, getPath, getPathPart, getPaths, getPermissionsForChildren, getPublishStatus, getRoot, getRoot, getTreeNode, hasChild, hasChildren, hasContentReadPermission, hasContentReadPermission, hasPermissionEditPermission, isChildOf, isChildRelationChanged, isCurrentlyPublished, isParentRelationChanged, isPathPartChanged, isRoot, isSystemNode, isVisibleInNavigation, moveInto, removeNodeRight, requireParent, resetChildren, setAliases, setContentTreeContext, setLabel, setName, setParent
-
Constructor Details
-
ResourceNodeImpl
public ResourceNodeImpl(Entity entity, ContentTreeService contentTreeService, NodeServicePointHolder nodeServicePointHolder)
-
-
Method Details
-
getName
Description copied from interface:ContentTreeNode
Returns this node's name. The name is a normalized string used in URLs to identify this node.- Specified by:
getName
in interfaceContentTreeNode
- Overrides:
getName
in classAbstractContentTreeNode
-
getLabel
Description copied from interface:ContentTreeNode
Returns the human readable label for this node.- Specified by:
getLabel
in interfaceContentTreeNode
- Overrides:
getLabel
in classAbstractContentTreeNode
-
hasAliases
public boolean hasAliases()- Specified by:
hasAliases
in interfaceContentTreeNode
- Overrides:
hasAliases
in classAbstractContentTreeNode
-
setSorting
- Specified by:
setSorting
in interfaceContentTreeNode
- Overrides:
setSorting
in classAbstractContentTreeNode
-
getSorting
- Specified by:
getSorting
in interfaceContentTreeNode
- Overrides:
getSorting
in classAbstractContentTreeNode
-
decorateCopy
Description copied from class:AbstractContentTreeNode
Post process this created copy of theoriginal
.- Overrides:
decorateCopy
in classAbstractContentTreeNode
- Parameters:
original
-ContentTreeNode
that was just copied
-
getContent
Description copied from interface:ContentTreeNode
Returns the over "relContent" related entity.- Specified by:
getContent
in interfaceContentTreeNode
- Overrides:
getContent
in classAbstractContentTreeNode
-
getContentPublished
Description copied from interface:ContentTreeNode
Returns the over "relContent_published" related entity.- Specified by:
getContentPublished
in interfaceContentTreeNode
- Overrides:
getContentPublished
in classAbstractContentTreeNode
-
moveBelow
Description copied from interface:ContentTreeNode
move the currentContentTreeNode
to the position afterreferenceNode
- Specified by:
moveBelow
in interfaceContentTreeNode
- Parameters:
referenceNode
- becomes the new left neighbour of thisContentTreeNode
- Throws:
ContentException
-
moveAbove
Description copied from interface:ContentTreeNode
move the currentContentTreeNode
to the position beforereferenceNode
- Specified by:
moveAbove
in interfaceContentTreeNode
- Parameters:
referenceNode
- becomes the new right neighbour of thisContentTreeNode
- Throws:
ContentException
-
setResourceContent
- Specified by:
setResourceContent
in interfaceResourceNode
- Throws:
ContentException
-
decorateTreeNode
- Overrides:
decorateTreeNode
in classAbstractContentTreeNode
- Throws:
ContentException
-
verifyChecksum
Also accept the field name if it is a detail document (for performance reasons - see TOCDEV-229)- Specified by:
verifyChecksum
in interfaceContentTreeNode
- Overrides:
verifyChecksum
in classAbstractContentTreeNode
- Parameters:
checksum
- The checksum to check.- Returns:
- true, if the checksum matches, else false.
-
verifyName
Also accept the field name if it is a detail document (for performance reasons - see TOCDEV-229)- Specified by:
verifyName
in interfaceContentTreeNode
- Overrides:
verifyName
in classAbstractContentTreeNode
-
isEntityDocsNode
protected boolean isEntityDocsNode()- Specified by:
isEntityDocsNode
in classAbstractContentTreeNode
-