A
- the actual type of the wrapped PagesContainer
.public abstract class AbstractPagesContainerElement<A extends PagesContainer> extends AmetysObjectElement<A>
Element
wrapping a PagesContainer
.Modifier and Type | Field and Description |
---|---|
private AmetysObjectIterable<? extends Page> |
_children |
protected String |
_currentPagePath
The path of the wrapped page.
|
protected boolean |
_includeInvisiblePages
should child pages displays invisible page
|
protected RestrictedPagePolicy |
_policy
the
RestrictedPagePolicy of the current site. |
protected RenderingContextHandler |
_renderingContextHandler
The rendering context handler.
|
protected RightManager |
_rightManager
The right manager
|
protected UserIdentity |
_userIdentity
The identity of the current user.
|
static String |
NAMESPACE_PREFIX
Prefix for sitemap namespace.
|
static String |
NAMESPACE_URI
URI for sitemap namespace.
|
_object
_parent
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 and Description |
---|
AbstractPagesContainerElement(A pagesContainer,
AbstractPagesContainerElement<PagesContainer> parent,
RightManager rightManager,
RenderingContextHandler renderingContextHandler,
String currentPagePath,
UserIdentity userIdentity,
boolean includeInvisiblePages)
Constructor.
|
AbstractPagesContainerElement(A pagesContainer,
RightManager rightManager,
RenderingContextHandler renderingContextHandler,
String currentPagePath,
UserIdentity userIdentity,
boolean includeInvisiblePages)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
(package private) AmetysObjectIterable<? extends Page> |
getChildren() |
Node |
getFirstChild() |
String |
getNamespaceURI() |
Node |
getNextSibling() |
boolean |
hasChildNodes() |
_lookupAttributes, getTagName
getWrappedObject
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
_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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
public static final String NAMESPACE_PREFIX
public static final String NAMESPACE_URI
protected RightManager _rightManager
protected RenderingContextHandler _renderingContextHandler
protected String _currentPagePath
protected UserIdentity _userIdentity
protected RestrictedPagePolicy _policy
RestrictedPagePolicy
of the current site.protected boolean _includeInvisiblePages
private AmetysObjectIterable<? extends Page> _children
public AbstractPagesContainerElement(A pagesContainer, RightManager rightManager, RenderingContextHandler renderingContextHandler, String currentPagePath, UserIdentity userIdentity, boolean includeInvisiblePages)
pagesContainer
- the wrapped PagesContainer
.rightManager
- the right managercurrentPagePath
- the path of the current page, or null if none.renderingContextHandler
- the RenderingContextHandler
.userIdentity
- the identity of the current user, or null if none.includeInvisiblePages
- Should return child invisible pagespublic AbstractPagesContainerElement(A pagesContainer, AbstractPagesContainerElement<PagesContainer> parent, RightManager rightManager, RenderingContextHandler renderingContextHandler, String currentPagePath, UserIdentity userIdentity, boolean includeInvisiblePages)
pagesContainer
- the wrapped PagesContainer
.parent
- the parent container.rightManager
- the right managercurrentPagePath
- the path of the current page, or null if none.renderingContextHandler
- the RenderingContextHandler
.userIdentity
- the identity of the current user, or null if none.includeInvisiblePages
- Should return child invisible pagespublic String getNamespaceURI()
getNamespaceURI
in interface Node
getNamespaceURI
in class AbstractAmetysNode
AmetysObjectIterable<? extends Page> getChildren()
public boolean hasChildNodes()
hasChildNodes
in interface Node
hasChildNodes
in class AmetysObjectElement<A extends PagesContainer>
public Node getFirstChild()
getFirstChild
in interface Node
getFirstChild
in class AmetysObjectElement<A extends PagesContainer>
public Node getNextSibling()
getNextSibling
in interface Node
getNextSibling
in class AmetysObjectElement<A extends PagesContainer>