Package org.ametys.plugins.ugc.page
Class UGCZone
java.lang.Object
org.ametys.plugins.ugc.page.UGCZone
- All Implemented Interfaces:
AmetysObject,DataAwareAmetysObject,ModelLessDataAwareAmetysObject,DataHolder,ModelLessDataHolder,Zone
Zone holding a content.-
Field Summary
Fields inherited from interface org.ametys.web.repository.page.Zone
ZONEITEM_DATA_NAME -
Constructor Summary
ConstructorsConstructorDescriptionUGCZone(UGCPage page, ModelItemTypeExtensionPoint zoneDataTypeExtensionPoint, ModelItemTypeExtensionPoint zoneItemDataTypeExtensionPoint) Constructor -
Method Summary
Modifier and TypeMethodDescriptionReturns theDataHolderof 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 zoneAmetysObjectIterable<? 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, waitMethods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, hashCodeMethods inherited from interface org.ametys.plugins.repository.data.ametysobject.DataAwareAmetysObject
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, hasValue, hasValue, hasValueOrEmpty, isMultiple, isMultipleMethods inherited from interface org.ametys.plugins.repository.data.holder.ModelLessDataHolder
dataToJSON, dataToSAX
-
Constructor Details
-
UGCZone
public UGCZone(UGCPage page, ModelItemTypeExtensionPoint zoneDataTypeExtensionPoint, ModelItemTypeExtensionPoint zoneItemDataTypeExtensionPoint) Constructor- Parameters:
page- the parentUGCPage.zoneDataTypeExtensionPoint- the extension point with available data types for zoneszoneItemDataTypeExtensionPoint- the extension point with available data types for zone items
-
-
Method Details
-
getSitemapElement
Description copied from interface:ZoneGet the parent page of the zone- Specified by:
getSitemapElementin interfaceZone- Returns:
- The parent page. Cannot be null.
-
getZoneItems
Description copied from interface:ZoneRetrieve the list of used zone items- Specified by:
getZoneItemsin interfaceZone- Returns:
- The list of zone items. Cannot be null.
- Throws:
AmetysRepositoryException- if an error occured
-
getDataHolder
Description copied from interface:DataAwareAmetysObjectReturns theDataHolderof thisAmetysObject.- Specified by:
getDataHolderin interfaceDataAwareAmetysObject- Specified by:
getDataHolderin interfaceModelLessDataAwareAmetysObject- Returns:
- the
DataHolderof thisAmetysObject
-
getId
Description copied from interface:AmetysObjectRetrieves 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:
getIdin interfaceAmetysObject- Returns:
- the unique identifier of this AmetysObject
- Throws:
AmetysRepositoryException- if an error occurs.
-
getName
Description copied from interface:AmetysObjectRetrieves the name of the current object.- Specified by:
getNamein interfaceAmetysObject- Returns:
- the name.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getParent
Description copied from interface:AmetysObjectReturns the parent object in the Ametys hierarchy.- Specified by:
getParentin interfaceAmetysObject- Returns:
- the parent object or
nullif current object is the root. - Throws:
AmetysRepositoryException- if an error occurs.
-
getParentPath
Description copied from interface:AmetysObjectReturns the path of the parent object in the Ametys hierarchy.- Specified by:
getParentPathin interfaceAmetysObject- Returns:
- the path of the parent object.
- 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.
-
getZoneParametersHolder
Description copied from interface:ZoneGet the view parameters- Specified by:
getZoneParametersHolderin interfaceZone- Returns:
- the view parameters
- Throws:
AmetysRepositoryException- if an error occurs.
-