public final class Sitemap extends DefaultTraversableAmetysObject<SitemapFactory> implements MetadataAwarePagesContainer
Page
s A single web site may have many sitemaps.Modifier and Type | Field and Description |
---|---|
private static Logger |
__LOGGER |
static String |
NODE_TYPE
Sitemap node type name.
|
Constructor and Description |
---|
Sitemap(Node node,
String parentPath,
SitemapFactory factory)
Creates a
Sitemap . |
Modifier and Type | Method and Description |
---|---|
Page |
getChildPageAt(int index)
Gets the child
Page at the given position |
AmetysObjectIterable<? extends Page> |
getChildrenPages()
Retrieves child pages.
|
AmetysObjectIterable<? extends Page> |
getChildrenPages(boolean includeInvisiblePage)
Retrieves child pages.
|
ModifiableModelLessDataHolder |
getDataHolder()
Returns the
DataHolder of this AmetysObject . |
ModifiableCompositeMetadata |
getMetadataHolder()
Returns the root
CompositeMetadata of this AmetysObject . |
String |
getPathInSitemap()
Computes the path relative to the current sitemap.
|
Site |
getSite()
Returns this object's site.
|
Sitemap |
getSitemap()
Retrieves the sitemap containing the current sitemap.
|
String |
getSitemapName()
Returns this page's sitemap name
|
String |
getSiteName()
Returns this object's site name.
|
addAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, createChild, getAllowedGroups, getAllowedProfilesForAnonymous, getAllowedProfilesForAnyConnectedUser, getAllowedProfilesForGroups, getAllowedProfilesForUser, getAllowedProfilesForUsers, getAllowedUsers, getChild, getChildren, getDeniedGroups, getDeniedProfilesForAnonymous, getDeniedProfilesForAnyConnectedUser, getDeniedProfilesForGroups, getDeniedProfilesForUser, getDeniedProfilesForUsers, getDeniedUsers, hasChild, removeAllowedGroups, removeAllowedGroups, removeAllowedProfilesForAnonymous, removeAllowedProfilesForAnyConnectedUser, removeAllowedUsers, removeAllowedUsers, removeDeniedGroups, removeDeniedGroups, removeDeniedProfilesForAnonymous, removeDeniedProfilesForAnyConnectedUser, removeDeniedUsers, removeDeniedUsers
_getFactory, _invalidateName, _invalidateParentPath, getId, getName, getNode, getParent, getParentPath, getPath, needsSave, remove, rename, revertChanges, saveChanges
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getChild, getChildAt, getChildPosition, getChildren, hasChild
getComposite, getRepeater, getType, getValue, getValue, getValueOfType, getValueOfType, hasValue, isMultiple
copyTo, getDataNames
equals, getId, getName, getParent, getParentPath, getPath, hashCode
toSAX, toSAX
dataToSAX, dataToSAX, dataToSAX, dataToSAX
getNode
needsSave, rename, revertChanges, saveChanges
remove
public static final String NODE_TYPE
public Sitemap(Node node, String parentPath, SitemapFactory factory)
Sitemap
.node
- the node backing this AmetysObject
.parentPath
- the parent path in the Ametys hierarchy.factory
- the SitemapFactory
which creates the AmetysObject.public String getPathInSitemap() throws AmetysRepositoryException
PagesContainer
getPathInSitemap
in interface PagesContainer
AmetysRepositoryException
- if an error occurs.public AmetysObjectIterable<? extends Page> getChildrenPages() throws AmetysRepositoryException
PagesContainer
getChildrenPages
in interface PagesContainer
AmetysRepositoryException
- if an error occurs.public AmetysObjectIterable<? extends Page> getChildrenPages(boolean includeInvisiblePage) throws AmetysRepositoryException
PagesContainer
getChildrenPages
in interface PagesContainer
includeInvisiblePage
- true to include invisible pagesAmetysRepositoryException
- if an error occurs.public Page getChildPageAt(int index) throws UnknownAmetysObjectException, AmetysRepositoryException
PagesContainer
Page
at the given positiongetChildPageAt
in interface PagesContainer
index
- the position of the Page
within the ordered set of its sibling objects.Page
if foundUnknownAmetysObjectException
- if no child page was found at this positionAmetysRepositoryException
- if an error occurspublic Site getSite() throws AmetysRepositoryException
SiteAwareAmetysObject
getSite
in interface SiteAwareAmetysObject
AmetysRepositoryException
- if an error occurs.public String getSiteName() throws AmetysRepositoryException
SiteAwareAmetysObject
getSiteName
in interface SiteAwareAmetysObject
AmetysRepositoryException
- if an error occurs.public Sitemap getSitemap() throws AmetysRepositoryException
PagesContainer
getSitemap
in interface PagesContainer
AmetysRepositoryException
- if an error occurs.public String getSitemapName() throws AmetysRepositoryException
PagesContainer
getSitemapName
in interface PagesContainer
AmetysRepositoryException
- if an error occurs.public ModifiableModelLessDataHolder getDataHolder()
DataAwareAmetysObject
DataHolder
of this AmetysObject
.getDataHolder
in interface DataAwareAmetysObject
getDataHolder
in interface ModelLessDataAwareAmetysObject
DataHolder
of this AmetysObject
public ModifiableCompositeMetadata getMetadataHolder()
SimpleAmetysObject
CompositeMetadata
of this AmetysObject
.getMetadataHolder
in interface MetadataAwareAmetysObject
getMetadataHolder
in interface ModifiableMetadataAwareAmetysObject
getMetadataHolder
in class SimpleAmetysObject<SitemapFactory>
CompositeMetadata
of this AmetysObject