Class ConfigurableVirtualZone
java.lang.Object
org.ametys.web.repository.page.virtual.ConfigurableVirtualZone
- All Implemented Interfaces:
AmetysObject
,DataAwareAmetysObject
,ModelLessDataAwareAmetysObject
,DataHolder
,ModelLessDataHolder
,Zone
A zone which is configurable
-
Field Summary
Modifier and TypeFieldDescriptionprotected VirtualZoneConfiguration
The VirtualPageZoneConfigurationprotected ConfigurableVirtualZoneFactory
The factoryprotected String
The idprotected AbstractConfigurableVirtualPage
The Pageprotected String
The schemeFields inherited from interface org.ametys.web.repository.page.Zone
ZONEITEM_DATA_NAME
-
Constructor Summary
ConstructorDescriptionConfigurableVirtualZone
(AbstractConfigurableVirtualPage page, VirtualZoneConfiguration configuration, String scheme, ConfigurableVirtualZoneFactory factory) Constructor to create a configurable zone item -
Method Summary
Modifier and TypeMethodDescriptionReturns theDataHolder
of thisAmetysObject
.getId()
Retrieves the unique identifier of this AmetysObject.
It must be unique in the whole repository and must never be null.
It must conform to the URI syntax:
<protocol>://<protocol-specific-part>
getName()
Retrieves the name of the current object.Returns the parent object in the Ametys hierarchy.Returns the path of the parent object in the Ametys hierarchy.getPath()
Retrieves the path of the current object.Get the parent page of the zonegetZoneItemConfiguration
(String zoneItemId) Get a zone item configuration by its nameAmetysObjectIterable<? extends ZoneItem>
Retrieve the list of used zone itemsGet the view parametersMethods 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, 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, 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
-
Field Details
-
_page
The Page -
_configuration
The VirtualPageZoneConfiguration -
_id
The id -
_scheme
The scheme -
_factory
The factory
-
-
Constructor Details
-
ConfigurableVirtualZone
public ConfigurableVirtualZone(AbstractConfigurableVirtualPage page, VirtualZoneConfiguration configuration, String scheme, ConfigurableVirtualZoneFactory factory) Constructor to create a configurable zone item- Parameters:
page
- The abstract virtual configurable pageconfiguration
- The virtual page's zone configurationscheme
- The schemefactory
- The zone's factory
-
-
Method Details
-
getName
Description copied from interface:AmetysObject
Retrieves the name of the current object.- Specified by:
getName
in interfaceAmetysObject
- Returns:
- the name.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getParent
Description copied from interface:AmetysObject
Returns the parent object in the Ametys hierarchy.- Specified by:
getParent
in interfaceAmetysObject
- Returns:
- the parent object or
null
if current object is the root. - Throws:
AmetysRepositoryException
- if an error occurs.
-
getParentPath
Description copied from interface:AmetysObject
Returns the path of the parent object in the Ametys hierarchy.- Specified by:
getParentPath
in interfaceAmetysObject
- Returns:
- the path of the parent object.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getSitemapElement
Description copied from interface:Zone
Get the parent page of the zone- Specified by:
getSitemapElement
in interfaceZone
- Returns:
- The parent page. Cannot be null.
-
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.
-
getZoneItemConfiguration
Get a zone item configuration by its name- Parameters:
zoneItemId
- The zone item identifier- Returns:
- La virtual page zone item configuration
-
getDataHolder
Description copied from interface:DataAwareAmetysObject
Returns theDataHolder
of thisAmetysObject
.- Specified by:
getDataHolder
in interfaceDataAwareAmetysObject
- Specified by:
getDataHolder
in interfaceModelLessDataAwareAmetysObject
- Returns:
- the
DataHolder
of thisAmetysObject
-
getId
Description copied from interface:AmetysObject
Retrieves the unique identifier of this AmetysObject.
It must be unique in the whole repository and must never be null.
It must conform to the URI syntax:
<protocol>://<protocol-specific-part>
- Specified by:
getId
in interfaceAmetysObject
- Returns:
- the unique identifier of this AmetysObject
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getZoneItems
Description copied from interface:Zone
Retrieve the list of used zone items- Specified by:
getZoneItems
in interfaceZone
- Returns:
- The list of zone items. Cannot be null.
- Throws:
AmetysRepositoryException
- if an error occured
-
getZoneParametersHolder
Description copied from interface:Zone
Get the view parameters- Specified by:
getZoneParametersHolder
in interfaceZone
- Returns:
- the view parameters
- Throws:
AmetysRepositoryException
- if an error occurs.
-