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
Modifier and TypeFieldDescriptionprotected VirtualPageConfiguration
The AbstractVirtualPageConfigurationprotected T
The factoryprotected Page
The root pageprotected String
The page's schemeFields inherited from interface org.ametys.web.repository.SiteAwareAmetysObject
METADATA_SITE
-
Constructor Summary
ConstructorDescriptionAbstractConfigurableVirtualPage
(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 allAmetysObject
ids 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.boolean
Determine if a zone existsboolean
Determine if the page is visible into navigation elementsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, hashCode
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.DataAwareAmetysObject
copyTo, copyTo, dataToJSON, dataToJSON, dataToSAX, dataToSAX, getDataNames, getRepositoryData
Methods 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, isMultiple
Methods inherited from interface org.ametys.plugins.repository.data.holder.ModelLessDataHolder
dataToJSON, dataToSAX
Methods inherited from interface org.ametys.web.repository.page.Page
getDepth, getLongTitle
Methods inherited from interface org.ametys.web.repository.page.SitemapElement
getChildPageAt, getChildrenPages, getChildrenPages, getPathInSitemap, getTitle
Methods 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:Page
Retrieves the attachments root node- Specified by:
getRootAttachments
in 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:SitemapElement
Retrieves the template name.- Specified by:
getTemplate
in interfaceSitemapElement
- Returns:
- the template name or
null
if none has been set or if the type is not container. - Throws:
AmetysRepositoryException
- if an error occurs.
-
hasZone
Description copied from interface:SitemapElement
Determine if a zone exists- Specified by:
hasZone
in 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:Page
Retrieves the type.- Specified by:
getType
in interfacePage
- Returns:
- the type.
- Throws:
AmetysRepositoryException
- if an error occurs.- See Also:
-
getURL
Description copied from interface:Page
Retrieves the linked URL.- Specified by:
getURL
in interfacePage
- Returns:
- the linked URL.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getURLType
Description copied from interface:Page
Retrieves the linked URL type.- Specified by:
getURLType
in interfacePage
- Returns:
- the linked URL type.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getReferers
Description copied from interface:Page
Retrieves allAmetysObject
ids referencing this page.- Specified by:
getReferers
in interfacePage
- Returns:
- the
AmetysObject
ids referencing this page. - Throws:
AmetysRepositoryException
- if an error occurs.
-
getSite
Description copied from interface:SiteAwareAmetysObject
Returns this object's site.- Specified by:
getSite
in interfaceSiteAwareAmetysObject
- Returns:
- this object's site
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getSiteName
Description copied from interface:SiteAwareAmetysObject
Returns this object's site name.- Specified by:
getSiteName
in interfaceSiteAwareAmetysObject
- Returns:
- this object's site name.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getSitemap
Description copied from interface:SitemapElement
Retrieves the sitemap containing the current sitemap.- Specified by:
getSitemap
in interfaceSitemapElement
- Returns:
- the sitemap containing the current sitemap.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getSitemapName
Description copied from interface:SitemapElement
Returns this page's sitemap name- Specified by:
getSitemapName
in interfaceSitemapElement
- Returns:
- this page's sitemap name
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getPath
Description copied from interface:AmetysObject
Retrieves the path of the current object.- Specified by:
getPath
in interfaceAmetysObject
- Returns:
- the path.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getTags
Description copied from interface:TagAwareAmetysObject
Retrieves current tags.- Specified by:
getTags
in interfaceTagAwareAmetysObject
- Returns:
- the current tags.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
isVisible
Description copied from interface:Page
Determine if the page is visible into navigation elements- Specified by:
isVisible
in interfacePage
- Returns:
- true if 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:SitemapElement
Retrieves a given zone.- Specified by:
getZone
in 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:SitemapElement
Retrieves the zones.- Specified by:
getZones
in interfaceSitemapElement
- Returns:
- the zones.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getTemplateParametersHolder
Description copied from interface:SitemapElement
Get the view parameters- Specified by:
getTemplateParametersHolder
in 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
-