Package ch.tocco.nice2.dms.spi.tree
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 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
ConstructorDescriptionBinaryContentImpl
(Entity entity, ContentTreeService contentTreeService, NodeServicePointHolder nodeServicePointHolder) -
Method Summary
Modifier and TypeMethodDescriptionGet the checksum of this node.int
getKey()
getName()
Returns this node's name.getPath()
int
getWidth()
protected boolean
void
moveAbove
(ContentTreeNode referenceNode) move the currentContentTreeNode
to the position beforereferenceNode
void
moveBelow
(ContentTreeNode referenceNode) move the currentContentTreeNode
to the position afterreferenceNode
setFileName
(String fileName) int
setHeight
(int height) int
setWidth
(int width) Methods inherited from class ch.tocco.nice2.dms.spi.tree.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, verifyName
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, 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:
getKey
in interfaceBinaryContent
-
getWidth
public int getWidth()- Specified by:
getWidth
in interfaceBinaryContent
-
setWidth
public int setWidth(int width) - Specified by:
setWidth
in interfaceBinaryContent
-
getHeight
public int getHeight()- Specified by:
getHeight
in interfaceBinaryContent
-
setHeight
public int setHeight(int height) - Specified by:
setHeight
in interfaceBinaryContent
-
getFormat
- Specified by:
getFormat
in interfaceBinaryContent
-
setFormat
- Specified by:
setFormat
in interfaceBinaryContent
-
getChecksum
Description copied from interface:ContentTreeNode
Get the checksum of this node.- Specified by:
getChecksum
in interfaceContentTreeNode
- Overrides:
getChecksum
in classAbstractContentTreeNode
- Returns:
- the checksum of this node.
-
getFileName
- Specified by:
getFileName
in interfaceBinaryContent
-
setFileName
- Specified by:
setFileName
in interfaceBinaryContent
-
getResource
- Specified by:
getResource
in interfaceBinaryContent
-
getPath
- Specified by:
getPath
in interfaceContentTreeNode
- Overrides:
getPath
in classAbstractContentTreeNode
- Returns:
- the full path of the current ContentTreeNode
-
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
-
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
-
getBusinessUnit
- Specified by:
getBusinessUnit
in interfaceContentTreeNode
- Overrides:
getBusinessUnit
in classAbstractContentTreeNode
- Returns:
- the business unit of the current node element
-
isEntityDocsNode
protected boolean isEntityDocsNode()- Specified by:
isEntityDocsNode
in classAbstractContentTreeNode
-