Package org.ametys.web.repository.page
Interface ModifiablePage
- All Superinterfaces:
AmetysObject,DataAwareAmetysObject,DataHolder,MetadataAwareSitemapElement,ModelLessDataAwareAmetysObject,ModelLessDataHolder,ModifiableAmetysObject,ModifiableDataHolder,ModifiableModelLessDataAwareAmetysObject,ModifiableModelLessDataHolder,ModifiableSitemapElement,ModifiableTraversableAmetysObject,Page,RemovableAmetysObject,SiteAwareAmetysObject,SitemapElement,TagAwareAmetysObject,TaggableAmetysObject,TraversableAmetysObject
- All Known Subinterfaces:
LockablePage
- All Known Implementing Classes:
DefaultPage
public interface ModifiablePage
extends Page, ModifiableSitemapElement, ModifiableModelLessDataAwareAmetysObject, RemovableAmetysObject, TaggableAmetysObject
AmetysObject for storing page informations. <p>-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.web.repository.page.Page
Page.LinkType, Page.PageType -
Field Summary
Fields inherited from interface org.ametys.web.repository.SiteAwareAmetysObject
METADATA_SITE -
Method Summary
Modifier and TypeMethodDescriptionvoidaddReferer(String ametysObjectId) Add a newAmetysObjectreferencing this page.voidremoveReferer(String ametysObjectId) Removes anAmetysObjectreferencing this page.voidsetLongTitle(String title) Set the long title.voidsetSitemapName(String sitemapName) Set the sitemap name.voidsetSiteName(String siteName) Set the site name.voidsetTemplate(String template) Set the template name.voidSet the title.voidsetType(Page.PageType type) Set the type.voidsetURL(Page.LinkType type, String url) Set the linked URL.voidsetVisible(boolean isVisible) Set the visibility of the pageMethods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCodeMethods inherited from interface org.ametys.plugins.repository.data.ametysobject.DataAwareAmetysObject
copyTo, copyTo, dataToJSON, dataToJSON, dataToSAX, dataToSAX, getDataNames, getRepositoryDataMethods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModelLessDataAwareAmetysObject
dataToJSON, dataToSAX, getComposite, getModelItemTypeExtensionPoint, getParentDataHolder, getRootDataHolder, getType, getValue, getValue, getValueOfType, getValueOfType, hasDifferences, hasValue, hasValue, hasValueOrEmpty, isMultiple, isMultipleMethods inherited from interface org.ametys.plugins.repository.data.holder.ModelLessDataHolder
dataToJSON, dataToSAX, hasValue, hasValueOrEmptyMethods inherited from interface org.ametys.plugins.repository.ModifiableAmetysObject
needsSave, rename, revertChanges, saveChangesMethods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModifiableModelLessDataAwareAmetysObject
getComposite, getComposite, getDataHolder, getParentDataHolder, getRepositoryData, getRootDataHolder, removeValue, setValue, setValue, synchronizeValuesMethods inherited from interface org.ametys.web.repository.page.ModifiableSitemapElement
createZone, getTemplateParametersHolder, getZone, getZonesMethods inherited from interface org.ametys.plugins.repository.ModifiableTraversableAmetysObject
createChildMethods inherited from interface org.ametys.web.repository.page.Page
getDepth, getLongTitle, getReferers, getRootAttachments, getType, getURL, getURLType, isIndexable, isVisibleMethods inherited from interface org.ametys.plugins.repository.RemovableAmetysObject
removeMethods inherited from interface org.ametys.web.repository.SiteAwareAmetysObject
getSite, getSiteNameMethods inherited from interface org.ametys.web.repository.page.SitemapElement
getChildPageAt, getChildrenPages, getChildrenPages, getPathInSitemap, getSitemap, getSitemapName, getTemplate, getTitle, hasZoneMethods inherited from interface org.ametys.plugins.repository.tag.TagAwareAmetysObject
getTagsMethods inherited from interface org.ametys.plugins.repository.tag.TaggableAmetysObject
tag, untagMethods inherited from interface org.ametys.plugins.repository.TraversableAmetysObject
getChild, getChildAt, getChildPosition, getChildren, hasChild
-
Method Details
-
setTemplate
Set the template name.- Parameters:
template- the template name.- Throws:
AmetysRepositoryException- if an error occurs.
-
setTitle
Set the title.- Parameters:
title- the title.- Throws:
AmetysRepositoryException- if an error occurs.
-
setLongTitle
Set the long title.- Parameters:
title- the title.- Throws:
AmetysRepositoryException- if an error occurs.
-
setSitemapName
Set the sitemap name.- Parameters:
sitemapName- the sitemap name.- Throws:
AmetysRepositoryException- if an error occurs.
-
setSiteName
Set the site name.- Parameters:
siteName- the site name.- Throws:
AmetysRepositoryException- if an error occurs.
-
setType
Set the type.- Parameters:
type- the type.- Throws:
AmetysRepositoryException- if an error occurs.- See Also:
-
setURL
Set the linked URL.- Parameters:
type- the type of linkurl- the linked URL (depending on the type)- Throws:
AmetysRepositoryException- if an error occurs.
-
addReferer
Add a newAmetysObjectreferencing this page.- Parameters:
ametysObjectId- theAmetysObjectids referencing this page.- Throws:
AmetysRepositoryException- if an error occurs.
-
removeReferer
Removes anAmetysObjectreferencing this page.- Parameters:
ametysObjectId- theAmetysObjectids referencing this page.- Throws:
AmetysRepositoryException- if an error occurs.
-
setVisible
Set the visibility of the page- Parameters:
isVisible- the page visibility.- Throws:
AmetysRepositoryException- if an error occurs.
-