public interface ModifiablePage extends Page, ModifiableMetadataAwareAmetysObject, ModifiableTraversableAmetysObject, RemovableAmetysObject, TaggableAmetysObject
AmetysObject
for storing page informations. <p>Page.LinkType, Page.PageType
Modifier and Type | Method and Description |
---|---|
void |
addReferer(String ametysObjectId)
Add a new
AmetysObject referencing this page. |
ModifiableZone |
createZone(String name)
Creates a given zone.
|
ModifiableZone |
getZone(String name)
Retrieves a given zone.
|
AmetysObjectIterable<ModifiableZone> |
getZones()
Retrieves the zones.
|
void |
removeReferer(String ametysObjectId)
Removes an
AmetysObject referencing this page. |
void |
setLongTitle(String title)
Set the long title.
|
void |
setSitemapName(String sitemapName)
Set the sitemap name.
|
void |
setSiteName(String siteName)
Set the site name.
|
void |
setTemplate(String template)
Set the template name.
|
void |
setTitle(String title)
Set the title.
|
void |
setType(Page.PageType type)
Set the type.
|
void |
setURL(Page.LinkType type,
String url)
Set the linked URL.
|
void |
setVisible(boolean isVisible)
Set the visibility of the page
|
getDepth, getLongTitle, getReferers, getRootAttachments, getTemplate, getTitle, getType, getURL, getURLType, hasZone, isVisible
getMetadataHolder
getChildPageAt, getChildrenPages, getChildrenPages, getPathInSitemap, getSitemap, getSitemapName
getChild, getChildAt, getChildPosition, getChildren, hasChild
getSite, getSiteName
equals, getId, getName, getParent, getParentPath, getPath, hashCode
getMetadataHolder
createChild
needsSave, rename, revertChanges, saveChanges
remove
tag, untag
getTags
void setTitle(String title) throws AmetysRepositoryException
title
- the title.AmetysRepositoryException
- if an error occurs.void setLongTitle(String title) throws AmetysRepositoryException
title
- the title.AmetysRepositoryException
- if an error occurs.void setSitemapName(String sitemapName) throws AmetysRepositoryException
sitemapName
- the sitemap name.AmetysRepositoryException
- if an error occurs.void setSiteName(String siteName) throws AmetysRepositoryException
siteName
- the site name.AmetysRepositoryException
- if an error occurs.void setType(Page.PageType type) throws AmetysRepositoryException
type
- the type.AmetysRepositoryException
- if an error occurs.Page.PageType
void setURL(Page.LinkType type, String url) throws AmetysRepositoryException
type
- the type of linkurl
- the linked URL (depending on the type)AmetysRepositoryException
- if an error occurs.void setTemplate(String template) throws AmetysRepositoryException
template
- the template name.AmetysRepositoryException
- if an error occurs.AmetysObjectIterable<ModifiableZone> getZones() throws AmetysRepositoryException
getZones
in interface Page
AmetysRepositoryException
- if an error occurs.ModifiableZone getZone(String name) throws UnknownZoneException, AmetysRepositoryException
getZone
in interface Page
name
- the name of the zone.UnknownZoneException
- if there is no zone for the given name.AmetysRepositoryException
- if an error occurs.ModifiableZone createZone(String name) throws AmetysRepositoryException
name
- the name of the zone.AmetysRepositoryException
- if an error occurs.void addReferer(String ametysObjectId) throws AmetysRepositoryException
AmetysObject
referencing this page.ametysObjectId
- the AmetysObject
ids referencing this page.AmetysRepositoryException
- if an error occurs.void removeReferer(String ametysObjectId) throws AmetysRepositoryException
AmetysObject
referencing this page.ametysObjectId
- the AmetysObject
ids referencing this page.AmetysRepositoryException
- if an error occurs.void setVisible(boolean isVisible) throws AmetysRepositoryException
isVisible
- the page visibility.AmetysRepositoryException
- if an error occurs.