public final class Sitemap extends DefaultTraversableAmetysObject<SitemapFactory> implements MetadataAwarePagesContainer
Pages 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, saveChangesequals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetChild, getChildAt, getChildPosition, getChildren, hasChildgetComposite, getRepeater, getType, getValue, getValue, getValueOfType, getValueOfType, hasValue, isMultiplecopyTo, getDataNamesequals, getId, getName, getParent, getParentPath, getPath, hashCodetoSAX, toSAXdataToSAX, dataToSAX, dataToSAX, dataToSAXgetNodeneedsSave, rename, revertChanges, saveChangesremovepublic 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
PagesContainergetPathInSitemap in interface PagesContainerAmetysRepositoryException - if an error occurs.public AmetysObjectIterable<? extends Page> getChildrenPages() throws AmetysRepositoryException
PagesContainergetChildrenPages in interface PagesContainerAmetysRepositoryException - if an error occurs.public AmetysObjectIterable<? extends Page> getChildrenPages(boolean includeInvisiblePage) throws AmetysRepositoryException
PagesContainergetChildrenPages in interface PagesContainerincludeInvisiblePage - true to include invisible pagesAmetysRepositoryException - if an error occurs.public Page getChildPageAt(int index) throws UnknownAmetysObjectException, AmetysRepositoryException
PagesContainerPage at the given positiongetChildPageAt in interface PagesContainerindex - 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
SiteAwareAmetysObjectgetSite in interface SiteAwareAmetysObjectAmetysRepositoryException - if an error occurs.public String getSiteName() throws AmetysRepositoryException
SiteAwareAmetysObjectgetSiteName in interface SiteAwareAmetysObjectAmetysRepositoryException - if an error occurs.public Sitemap getSitemap() throws AmetysRepositoryException
PagesContainergetSitemap in interface PagesContainerAmetysRepositoryException - if an error occurs.public String getSitemapName() throws AmetysRepositoryException
PagesContainergetSitemapName in interface PagesContainerAmetysRepositoryException - if an error occurs.public ModifiableModelLessDataHolder getDataHolder()
DataAwareAmetysObjectDataHolder of this AmetysObject.getDataHolder in interface DataAwareAmetysObjectgetDataHolder in interface ModelLessDataAwareAmetysObjectDataHolder of this AmetysObjectpublic ModifiableCompositeMetadata getMetadataHolder()
SimpleAmetysObjectCompositeMetadata of this AmetysObject.getMetadataHolder in interface MetadataAwareAmetysObjectgetMetadataHolder in interface ModifiableMetadataAwareAmetysObjectgetMetadataHolder in class SimpleAmetysObject<SitemapFactory>CompositeMetadata of this AmetysObject