Package org.ametys.web.repository.dom
Class AbstractSitemapElementElement<A extends SitemapElement>
java.lang.Object
org.ametys.core.util.dom.AbstractAmetysNode
org.ametys.core.util.dom.AbstractAmetysElement
org.ametys.core.util.dom.AbstractWrappingAmetysElement<A>
org.ametys.plugins.repository.dom.AmetysObjectElement<A>
org.ametys.web.repository.dom.AbstractSitemapElementElement<A>
- Type Parameters:
A
- the actual type of the wrappedSitemapElement
.
- Direct Known Subclasses:
PageElement
,SitemapElement
public abstract class AbstractSitemapElementElement<A extends SitemapElement>
extends AmetysObjectElement<A>
DOM
Element
wrapping a SitemapElement
.-
Field Summary
Modifier and TypeFieldDescriptionprotected String
The path of the wrapped page.protected long
The depth of childs to displayprotected boolean
should child pages displays invisible pageprotected RestrictedPagePolicy
theRestrictedPagePolicy
of the current site.protected RenderingContextHandler
The rendering context handler.protected RightManager
The right managerprotected TagProviderExtensionPoint
The tag provider extension pointprotected UserIdentity
The identity of the current user.static final String
Prefix for sitemap namespace.static final String
URI for sitemap namespace.Fields inherited from class org.ametys.core.util.dom.AbstractWrappingAmetysElement
_object
Fields inherited from class org.ametys.core.util.dom.AbstractAmetysElement
_parent
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
-
Constructor Summary
ConstructorDescriptionAbstractSitemapElementElement
(A sitemapElement, RightManager rightManager, RenderingContextHandler renderingContextHandler, String currentPagePath, UserIdentity userIdentity, long depth, boolean includeInvisiblePages, TagProviderExtensionPoint tagProviderExtensionPoint) Constructor.AbstractSitemapElementElement
(A sitemapElement, AbstractSitemapElementElement<SitemapElement> parent, RightManager rightManager, RenderingContextHandler renderingContextHandler, String currentPagePath, UserIdentity userIdentity, long depth, boolean includeInvisiblePages, TagProviderExtensionPoint tagProviderExtensionPoint) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Methods inherited from class org.ametys.plugins.repository.dom.AmetysObjectElement
_lookupAttributes, getTagName
Methods inherited from class org.ametys.core.util.dom.AbstractWrappingAmetysElement
getWrappedObject
Methods inherited from class org.ametys.core.util.dom.AbstractAmetysElement
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getElementsByTagName, getElementsByTagNameNS, getLocalName, getNodeName, getNodeType, getParentNode, getSchemaTypeInfo, getTextContent, hasAttribute, hasAttributeNS, hasAttributes, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS
Methods inherited from class org.ametys.core.util.dom.AbstractAmetysNode
_getChildNodes, appendChild, cloneNode, compareDocumentPosition, getBaseURI, getChildNodes, getFeature, getLastChild, getNodeValue, getOwnerDocument, getPrefix, getPreviousSibling, getUserData, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getBaseURI, getChildNodes, getFeature, getLastChild, getNodeValue, getOwnerDocument, getPrefix, getPreviousSibling, getUserData, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
-
Field Details
-
NAMESPACE_PREFIX
Prefix for sitemap namespace.- See Also:
-
NAMESPACE_URI
URI for sitemap namespace.- See Also:
-
_rightManager
The right manager -
_renderingContextHandler
The rendering context handler. -
_currentPagePath
The path of the wrapped page. -
_userIdentity
The identity of the current user. -
_policy
theRestrictedPagePolicy
of the current site. -
_includeInvisiblePages
should child pages displays invisible page -
_depth
The depth of childs to display -
_tagProviderExtensionPoint
The tag provider extension point
-
-
Constructor Details
-
AbstractSitemapElementElement
public AbstractSitemapElementElement(A sitemapElement, RightManager rightManager, RenderingContextHandler renderingContextHandler, String currentPagePath, UserIdentity userIdentity, long depth, boolean includeInvisiblePages, TagProviderExtensionPoint tagProviderExtensionPoint) Constructor.- Parameters:
sitemapElement
- the wrappedSitemapElement
.rightManager
- the right managercurrentPagePath
- the path of the current page, or null if none.renderingContextHandler
- theRenderingContextHandler
.userIdentity
- the identity of the current user, or null if none.depth
- The depth to get. 1 for root pages, 0 for this node only, -1 for infinite.includeInvisiblePages
- Should return child invisible pagestagProviderExtensionPoint
- the tag provider extension point
-
AbstractSitemapElementElement
public AbstractSitemapElementElement(A sitemapElement, AbstractSitemapElementElement<SitemapElement> parent, RightManager rightManager, RenderingContextHandler renderingContextHandler, String currentPagePath, UserIdentity userIdentity, long depth, boolean includeInvisiblePages, TagProviderExtensionPoint tagProviderExtensionPoint) Constructor.- Parameters:
sitemapElement
- the wrappedSitemapElement
.parent
- the parent container.rightManager
- the right managercurrentPagePath
- the path of the current page, or null if none.renderingContextHandler
- theRenderingContextHandler
.userIdentity
- the identity of the current user, or null if none.depth
- The depth to get. 1 for root pages, 0 for this node only, -1 for infinite.includeInvisiblePages
- Should return child invisible pagestagProviderExtensionPoint
- the tag provider extension point
-
-
Method Details
-
getNamespaceURI
- Specified by:
getNamespaceURI
in interfaceNode
- Overrides:
getNamespaceURI
in classAbstractAmetysNode
-
hasChildNodes
- Specified by:
hasChildNodes
in interfaceNode
- Overrides:
hasChildNodes
in classAmetysObjectElement<A extends SitemapElement>
-
getFirstChild
- Specified by:
getFirstChild
in interfaceNode
- Overrides:
getFirstChild
in classAmetysObjectElement<A extends SitemapElement>
-
getNextSibling
- Specified by:
getNextSibling
in interfaceNode
- Overrides:
getNextSibling
in classAmetysObjectElement<A extends SitemapElement>
-