Class BinaryContentImpl
java.lang.Object
ch.tocco.nice2.dms.spi.tree.AbstractContentTreeNode
ch.tocco.nice2.dms.spi.tree.BinaryContentImpl
- All Implemented Interfaces:
BinaryContent, ContentTreeNode
-
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
ConstructorsConstructorDescriptionBinaryContentImpl(Entity entity, ContentTreeService contentTreeService, NodeServicePointHolder nodeServicePointHolder) -
Method Summary
Modifier and TypeMethodDescriptionGet the checksum of this node.intgetKey()getName()Returns this node's name.getPath()intgetWidth()protected booleanvoidmoveAbove(ContentTreeNode referenceNode) move the currentContentTreeNodeto the position beforereferenceNodevoidmoveBelow(ContentTreeNode referenceNode) move the currentContentTreeNodeto the position afterreferenceNodesetFileName(String fileName) intsetHeight(int height) intsetWidth(int width) Methods inherited from class AbstractContentTreeNode
addAlias, aliasesApplyRecursive, areAliasesChanged, copy, copyChild, copyChildren, copyRelation, decorateCopy, decorateTreeNode, delete, equals, getAdminUrl, getAliases, getAliasesSet, getAvailablePermissions, getBusinessUnitInvoker, getChild, getChildCopyParams, getChildren, getChildren, getChildren, getChildrenCount, getContent, getContentEntity, getContentPublished, getContentRelation, getContentTreeContext, getCopySource, getDefaultPublicContentTreeContext, getDelegate, getLabel, getModel, getNodeRight, getNodeRights, getOldPath, getOldPathPart, getOldPaths, getOptimalPath, getOptimalPathForRequest, getOrCreateNodeRight, getParent, getPathPart, getPaths, getPermissionsForChildren, getPublishStatus, getRoot, getRoot, getSorting, getTreeNode, hasAliases, 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, setSorting, setValue, setValue, toString, verifyChecksum, verifyNameMethods inherited from interface ContentTreeNode
addAlias, aliasesApplyRecursive, areAliasesChanged, copy, delete, getAdminUrl, getAliases, getAliasesSet, getAvailablePermissions, getBusinessUnitInvoker, getChild, getChildren, getChildren, getChildren, getChildrenCount, getContent, getContentEntity, getContentPublished, getContentTreeContext, getCopySource, getDefaultPublicContentTreeContext, getDelegate, getLabel, getModel, getNodeRight, getNodeRights, getOldPath, getOldPathPart, getOldPaths, getOptimalPath, getOptimalPathForRequest, getOrCreateNodeRight, getParent, getPathPart, getPaths, getPermissionsForChildren, getPublishStatus, getRoot, getRoot, getSorting, getTreeNode, hasAliases, hasChild, hasChildren, hasContentReadPermission, hasContentReadPermission, hasPermissionEditPermission, isChildOf, isChildRelationChanged, isCurrentlyPublished, isParentRelationChanged, isPathPartChanged, isRoot, isSystemNode, isVisibleInNavigation, moveInto, removeNodeRight, requireParent, resetChildren, setAliases, setContentTreeContext, setLabel, setName, setParent, setSorting, verifyChecksum, verifyName
-
Constructor Details
-
BinaryContentImpl
public BinaryContentImpl(Entity entity, ContentTreeService contentTreeService, NodeServicePointHolder nodeServicePointHolder)
-
-
Method Details
-
getKey
- Specified by:
getKeyin interfaceBinaryContent
-
getWidth
public int getWidth()- Specified by:
getWidthin interfaceBinaryContent
-
setWidth
public int setWidth(int width) - Specified by:
setWidthin interfaceBinaryContent
-
getHeight
public int getHeight()- Specified by:
getHeightin interfaceBinaryContent
-
setHeight
public int setHeight(int height) - Specified by:
setHeightin interfaceBinaryContent
-
getFormat
- Specified by:
getFormatin interfaceBinaryContent
-
setFormat
- Specified by:
setFormatin interfaceBinaryContent
-
getChecksum
Description copied from interface:ContentTreeNodeGet the checksum of this node.- Specified by:
getChecksumin interfaceContentTreeNode- Overrides:
getChecksumin classAbstractContentTreeNode- Returns:
- the checksum of this node.
-
getFileName
- Specified by:
getFileNamein interfaceBinaryContent
-
setFileName
- Specified by:
setFileNamein interfaceBinaryContent
-
getResource
- Specified by:
getResourcein interfaceBinaryContent
-
getPath
- Specified by:
getPathin interfaceContentTreeNode- Overrides:
getPathin classAbstractContentTreeNode- Returns:
- the full path of the current ContentTreeNode
-
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
-
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
-
getBusinessUnit
- Specified by:
getBusinessUnitin interfaceContentTreeNode- Overrides:
getBusinessUnitin classAbstractContentTreeNode- Returns:
- the business unit of the current node element
-
isEntityDocsNode
protected boolean isEntityDocsNode()- Specified by:
isEntityDocsNodein classAbstractContentTreeNode
-