Class PageNodeImpl
java.lang.Object
ch.tocco.nice2.dms.spi.tree.AbstractContentTreeNode
ch.tocco.nice2.optional.cms.impl.tree.PageNodeImpl
- All Implemented Interfaces:
ContentTreeNode
,PageNode
-
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
ConstructorDescriptionPageNodeImpl
(Entity entity, ContentTreeService contentTreeService, NodeServicePointHolder nodeServicePointHolder, CopyWidgetConfigService copyWidgetConfigService) -
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_published" related entity.Get all domains which have this page set as login page.Get the template properties stored on this page node.Get all domains which have this page set as 404 error page.int
Get all applicable template properties for this page node.boolean
protected boolean
boolean
boolean
boolean
void
moveAbove
(ContentTreeNode referenceNode) move the currentContentTreeNode
to the position beforereferenceNode
void
moveBelow
(ContentTreeNode referenceNode) move the currentContentTreeNode
to the position afterreferenceNode
void
moveInto
(ContentTreeNode parentNode) move the currentContentTreeNode
intoparentNode
void
setPosition
(int position) 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, getContent, getContentEntity, getContentRelation, getContentTreeContext, getCopySource, getDelegate, getLabel, getModel, getName, getNodeRight, getNodeRights, getOldPath, getOldPathPart, getOldPaths, getOptimalPathForRequest, getOrCreateNodeRight, getParent, getPath, getPathPart, getPaths, getPermissionsForChildren, getPublishStatus, getRoot, getRoot, getSorting, getTreeNode, hasChild, hasChildren, hasContentReadPermission, hashCode, hasPermissionEditPermission, invokePrivileged, isChildOf, isChildRelationChanged, isCurrentlyPublished, isParentRelationChanged, isPathPartChanged, isPrivileged, isRoot, isSystemNode, 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, getBusinessUnit, getBusinessUnitInvoker, getChecksum, getChild, getChildren, getChildren, getChildren, getChildrenCount, getContent, getContentTreeContext, getCopySource, getDelegate, getLabel, getModel, getName, getNodeRight, getNodeRights, getOldPath, getOldPathPart, getOldPaths, getOptimalPathForRequest, getOrCreateNodeRight, getParent, getPath, getPathPart, getPaths, getPermissionsForChildren, getPublishStatus, getRoot, getRoot, getSorting, getTreeNode, hasChild, hasChildren, hasContentReadPermission, hasContentReadPermission, hasPermissionEditPermission, isChildOf, isChildRelationChanged, isCurrentlyPublished, isParentRelationChanged, isPathPartChanged, isRoot, isSystemNode, removeNodeRight, requireParent, resetChildren, setAliases, setContentTreeContext, setLabel, setName, setParent, setSorting, verifyChecksum, verifyName
Methods inherited from interface ch.tocco.nice2.optional.cms.api.tree.PageNode
getContentEntity
-
Constructor Details
-
PageNodeImpl
public PageNodeImpl(Entity entity, ContentTreeService contentTreeService, NodeServicePointHolder nodeServicePointHolder, CopyWidgetConfigService copyWidgetConfigService)
-
-
Method Details
-
getDefaultPublicContentTreeContext
- Specified by:
getDefaultPublicContentTreeContext
in interfaceContentTreeNode
- Overrides:
getDefaultPublicContentTreeContext
in classAbstractContentTreeNode
-
getContentPublished
Description copied from interface:ContentTreeNode
Returns the over "relContent_published" related entity.- Specified by:
getContentPublished
in interfaceContentTreeNode
- Overrides:
getContentPublished
in classAbstractContentTreeNode
-
hasAliases
public boolean hasAliases()- Specified by:
hasAliases
in interfaceContentTreeNode
- Overrides:
hasAliases
in classAbstractContentTreeNode
-
getOptimalPath
- Specified by:
getOptimalPath
in interfaceContentTreeNode
- Overrides:
getOptimalPath
in classAbstractContentTreeNode
- Returns:
- the optimal full path of the current ContentTreeNode
- Throws:
ContentException
-
moveInto
Description copied from interface:ContentTreeNode
move the currentContentTreeNode
intoparentNode
- Specified by:
moveInto
in interfaceContentTreeNode
- Overrides:
moveInto
in classAbstractContentTreeNode
- Parameters:
parentNode
- becomes the new parent of thisContentTreeNode
- Throws:
ContentException
-
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
-
isHomePage
- Specified by:
isHomePage
in interfacePageNode
- Throws:
ContentException
-
getPosition
- Specified by:
getPosition
in interfacePageNode
- Throws:
PersistException
-
setPosition
public void setPosition(int position) - Specified by:
setPosition
in interfacePageNode
-
getNodeTemplateProperties
Description copied from interface:PageNode
Get the template properties stored on this page node.- Specified by:
getNodeTemplateProperties
in interfacePageNode
- Returns:
- the temlate properties stored on this page node.
- Throws:
ContentException
- See Also:
-
getTemplatePropertiesRecursive
Description copied from interface:PageNode
Get all applicable template properties for this page node. For this purpose the template properties of all parent nodes are also collected.- Specified by:
getTemplatePropertiesRecursive
in interfacePageNode
- Returns:
- all applicable template properties for this page node.
- Throws:
ContentException
- See Also:
-
getNotFoundPageDomains
Description copied from interface:PageNode
Get all domains which have this page set as 404 error page.- Specified by:
getNotFoundPageDomains
in interfacePageNode
- Returns:
- all domains which have this page set as 404 error page.
-
getLoginPageDomains
Description copied from interface:PageNode
Get all domains which have this page set as login page.- Specified by:
getLoginPageDomains
in interfacePageNode
- Returns:
- all domains which have this page set as login page.
-
isRobotsNoindex
public boolean isRobotsNoindex()- Specified by:
isRobotsNoindex
in interfacePageNode
- Returns:
- true, if boolean field "robots_noindex" is checked.
-
decorateTreeNode
- Overrides:
decorateTreeNode
in classAbstractContentTreeNode
- Throws:
ContentException
-
decorateCopy
Description copied from class:AbstractContentTreeNode
Post process this created copy of theoriginal
.- Overrides:
decorateCopy
in classAbstractContentTreeNode
- Parameters:
original
-ContentTreeNode
that was just copied
-
isEntityDocsNode
protected boolean isEntityDocsNode()- Specified by:
isEntityDocsNode
in classAbstractContentTreeNode
-