Class AbstractConfigurableVirtualPage<T extends AbstractConfigurableVirtualPageFactory>
java.lang.Object
org.ametys.web.repository.page.virtual.AbstractConfigurableVirtualPage<T>
- Type Parameters:
T- The type of page factory to use
- All Implemented Interfaces:
AmetysObject,DataAwareAmetysObject,ModelLessDataAwareAmetysObject,DataHolder,ModelLessDataHolder,TagAwareAmetysObject,TraversableAmetysObject,MetadataAwareSitemapElement,Page,SitemapElement,SiteAwareAmetysObject
- Direct Known Subclasses:
AbstractOdfPage,OrgUnitPage,TransitionalPage,UGCPage,UGCTransitionalPage,UserPage
public abstract class AbstractConfigurableVirtualPage<T extends AbstractConfigurableVirtualPageFactory>
extends Object
implements Page
An abstract configurable virtual page.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.web.repository.page.Page
Page.LinkType, Page.PageType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected VirtualPageConfigurationThe AbstractVirtualPageConfigurationprotected TThe factoryprotected PageThe root pageprotected StringThe page's schemeFields inherited from interface org.ametys.web.repository.SiteAwareAmetysObject
METADATA_SITE -
Constructor Summary
ConstructorsConstructorDescriptionAbstractConfigurableVirtualPage(Page root, VirtualPageConfiguration configuration, String scheme, T factory) The constructor for an abstract configurable virtual page -
Method Summary
Modifier and TypeMethodDescription<C extends Content>
CGet the page's contentgetPath()Retrieves the path of the current object.Retrieves allAmetysObjectids referencing this page.Retrieves the attachments root nodeGet the page's schemegetSite()Returns this object's site.Retrieves the sitemap containing the current sitemap.Returns this page's sitemap nameReturns this object's site name.getTags()Retrieves current tags.Retrieves the template name.Get the view parametersgetType()Retrieves the type.getURL()Retrieves the linked URL.Retrieves the linked URL type.Retrieves a given zone.getZoneConfiguration(String name) Get a zone configuration by its nameAmetysObjectIterable<? extends Zone> getZones()Retrieves the zones.booleanDetermine if a zone existsbooleanDetermine if the page is visible into navigation elementsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, 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, getDataHolder, 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, dataToSAXMethods inherited from interface org.ametys.web.repository.page.Page
getDepth, getLongTitle, isIndexableMethods inherited from interface org.ametys.web.repository.page.SitemapElement
getChildPageAt, getChildrenPages, getChildrenPages, getPathInSitemap, getTitleMethods inherited from interface org.ametys.plugins.repository.TraversableAmetysObject
getChild, getChildAt, getChildPosition, getChildren, hasChild
-
Field Details
-
_root
The root page -
_configuration
The AbstractVirtualPageConfiguration -
_scheme
The page's scheme -
_factory
The factory
-
-
Constructor Details
-
AbstractConfigurableVirtualPage
public AbstractConfigurableVirtualPage(Page root, VirtualPageConfiguration configuration, String scheme, T factory) The constructor for an abstract configurable virtual page- Parameters:
root- The root pageconfiguration- The abstract virtual page configurationscheme- The page's schemefactory- The page's factory
-
-
Method Details
-
getRootAttachments
Description copied from interface:PageRetrieves the attachments root node- Specified by:
getRootAttachmentsin interfacePage- Returns:
- The the attachments root node. Can be null if the page does not supports attachments
- Throws:
AmetysRepositoryException- if an error occurs.
-
getZoneConfiguration
Get a zone configuration by its name- Parameters:
name- The zone name- Returns:
- the VirtualPageZoneConfiguration
-
getTemplate
Description copied from interface:SitemapElementRetrieves the template name.- Specified by:
getTemplatein interfaceSitemapElement- Returns:
- the template name or
nullif none has been set or if the type is not container. - Throws:
AmetysRepositoryException- if an error occurs.
-
hasZone
Description copied from interface:SitemapElementDetermine if a zone exists- Specified by:
hasZonein interfaceSitemapElement- Parameters:
name- The name of the zone- Returns:
- true if the zone exists
- Throws:
AmetysRepositoryException- If an error occured
-
getType
Description copied from interface:PageRetrieves the type.- Specified by:
getTypein interfacePage- Returns:
- the type.
- Throws:
AmetysRepositoryException- if an error occurs.- See Also:
-
getURL
Description copied from interface:PageRetrieves the linked URL.- Specified by:
getURLin interfacePage- Returns:
- the linked URL.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getURLType
Description copied from interface:PageRetrieves the linked URL type.- Specified by:
getURLTypein interfacePage- Returns:
- the linked URL type.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getReferers
Description copied from interface:PageRetrieves allAmetysObjectids referencing this page.- Specified by:
getReferersin interfacePage- Returns:
- the
AmetysObjectids referencing this page. - Throws:
AmetysRepositoryException- if an error occurs.
-
getSite
Description copied from interface:SiteAwareAmetysObjectReturns this object's site.- Specified by:
getSitein interfaceSiteAwareAmetysObject- Returns:
- this object's site
- Throws:
AmetysRepositoryException- if an error occurs.
-
getSiteName
Description copied from interface:SiteAwareAmetysObjectReturns this object's site name.- Specified by:
getSiteNamein interfaceSiteAwareAmetysObject- Returns:
- this object's site name.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getSitemap
Description copied from interface:SitemapElementRetrieves the sitemap containing the current sitemap.- Specified by:
getSitemapin interfaceSitemapElement- Returns:
- the sitemap containing the current sitemap.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getSitemapName
Description copied from interface:SitemapElementReturns this page's sitemap name- Specified by:
getSitemapNamein interfaceSitemapElement- Returns:
- this page's sitemap name
- Throws:
AmetysRepositoryException- if an error occurs.
-
getPath
Description copied from interface:AmetysObjectRetrieves the path of the current object.- Specified by:
getPathin interfaceAmetysObject- Returns:
- the path.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getTags
Description copied from interface:TagAwareAmetysObjectRetrieves current tags.- Specified by:
getTagsin interfaceTagAwareAmetysObject- Returns:
- the current tags.
- Throws:
AmetysRepositoryException- if an error occurs.
-
isVisible
Description copied from interface:PageDetermine if the page is visible into navigation elements- Specified by:
isVisiblein interfacePage- Returns:
trueif the page is visible.- Throws:
AmetysRepositoryException- if an error occurs.
-
getContent
Get the page's content- Type Parameters:
C- The content's type- Returns:
- The content
-
getZone
Description copied from interface:SitemapElementRetrieves a given zone.- Specified by:
getZonein interfaceSitemapElement- Parameters:
name- the name of the zone.- Returns:
- the given zone.
- Throws:
UnknownZoneException- if there is no zone for the given name.AmetysRepositoryException- if an error occurs.
-
getZones
Description copied from interface:SitemapElementRetrieves the zones.- Specified by:
getZonesin interfaceSitemapElement- Returns:
- the zones.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getTemplateParametersHolder
Description copied from interface:SitemapElementGet the view parameters- Specified by:
getTemplateParametersHolderin interfaceSitemapElement- Returns:
- the view parameters. Can be null.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getScheme
Get the page's scheme- Returns:
- The scheme of the page
-