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
ConstructorsConstructorDescriptionResourceNodeImpl(Entity entity, ContentTreeService contentTreeService, NodeServicePointHolder nodeServicePointHolder) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddecorateCopy(ContentTreeNode original) Post process this created copy of theoriginal.protected EntityTreeNodedecorateTreeNode(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.booleanprotected booleanvoidmoveAbove(ContentTreeNode referenceNode) move the currentContentTreeNodeto the position beforereferenceNodevoidmoveBelow(ContentTreeNode referenceNode) move the currentContentTreeNodeto the position afterreferenceNodevoidsetResourceContent(Entity entity) voidsetSorting(Integer sorting) booleanverifyChecksum(String checksum) Also accept the field name if it is a detail document (for performance reasons - see TOCDEV-229)booleanverifyName(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, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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: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
-
getLabel
Description copied from interface:ContentTreeNodeReturns the human readable label for this node.- Specified by:
getLabelin interfaceContentTreeNode- Overrides:
getLabelin classAbstractContentTreeNode
-
hasAliases
public boolean hasAliases()- Specified by:
hasAliasesin interfaceContentTreeNode- Overrides:
hasAliasesin classAbstractContentTreeNode
-
setSorting
- Specified by:
setSortingin interfaceContentTreeNode- Overrides:
setSortingin classAbstractContentTreeNode
-
getSorting
- Specified by:
getSortingin interfaceContentTreeNode- Overrides:
getSortingin classAbstractContentTreeNode
-
decorateCopy
Description copied from class:AbstractContentTreeNodePost process this created copy of theoriginal.- Overrides:
decorateCopyin classAbstractContentTreeNode- Parameters:
original-ContentTreeNodethat was just copied
-
getContent
Description copied from interface:ContentTreeNodeReturns the over "relContent" related entity.- Specified by:
getContentin interfaceContentTreeNode- Overrides:
getContentin classAbstractContentTreeNode
-
getContentPublished
Description copied from interface:ContentTreeNodeReturns the over "relContent_published" related entity.- Specified by:
getContentPublishedin interfaceContentTreeNode- Overrides:
getContentPublishedin classAbstractContentTreeNode
-
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
-
setResourceContent
- Specified by:
setResourceContentin interfaceResourceNode- Throws:
ContentException
-
decorateTreeNode
- Overrides:
decorateTreeNodein classAbstractContentTreeNode- Throws:
ContentException
-
verifyChecksum
Also accept the field name if it is a detail document (for performance reasons - see TOCDEV-229)- Specified by:
verifyChecksumin interfaceContentTreeNode- Overrides:
verifyChecksumin 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:
verifyNamein interfaceContentTreeNode- Overrides:
verifyNamein classAbstractContentTreeNode
-
isEntityDocsNode
protected boolean isEntityDocsNode()- Specified by:
isEntityDocsNodein classAbstractContentTreeNode
-