Class ProgramZone
- java.lang.Object
-
- org.ametys.plugins.odfweb.repository.ProgramZone
-
- All Implemented Interfaces:
AmetysObject
,DataAwareAmetysObject
,ModelLessDataAwareAmetysObject
,DataHolder
,ModelLessDataHolder
,Zone
public class ProgramZone extends Object implements Zone
-
-
Field Summary
Fields Modifier and Type Field Description private ProgramPage
_page
private AbstractThreadSafeComponentExtensionPoint<RepositoryModelItemType>
_zoneDataTypeExtensionPoint
private AbstractThreadSafeComponentExtensionPoint<RepositoryModelItemType>
_zoneItemDataTypeExtensionPoint
-
Fields inherited from interface org.ametys.web.repository.page.Zone
ZONEITEM_DATA_NAME
-
-
Constructor Summary
Constructors Constructor Description ProgramZone(ProgramPage page, AbstractThreadSafeComponentExtensionPoint<RepositoryModelItemType> zoneDataTypeExtensionPoint, AbstractThreadSafeComponentExtensionPoint<RepositoryModelItemType> zoneItemDataTypeExtensionPoint)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelLessDataHolder
getDataHolder()
Returns theDataHolder
of thisAmetysObject
.String
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>
String
getName()
Retrieves the name of the current object.Page
getPage()
Get the parent page of the zonePage
getParent()
Returns the parent object in the Ametys hierarchy.String
getParentPath()
Returns the path of the parent object in the Ametys hierarchy.String
getPath()
Retrieves the path of the current object.AmetysObjectIterable<? extends ZoneItem>
getZoneItems()
Retrieve the list of used zone itemsModelAwareDataHolder
getZoneParametersHolder()
Get the view parameters-
Methods 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, dataToSAX, getDataNames, getRepositoryData
-
Methods inherited from interface org.ametys.plugins.repository.data.holder.DataHolder
dataToSAX
-
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModelLessDataAwareAmetysObject
dataToSAX, getComposite, getType, getValue, getValue, getValueOfType, getValueOfType, hasValue, isMultiple
-
Methods inherited from interface org.ametys.plugins.repository.data.holder.ModelLessDataHolder
dataToSAX
-
-
-
-
Field Detail
-
_page
private ProgramPage _page
-
_zoneDataTypeExtensionPoint
private AbstractThreadSafeComponentExtensionPoint<RepositoryModelItemType> _zoneDataTypeExtensionPoint
-
_zoneItemDataTypeExtensionPoint
private AbstractThreadSafeComponentExtensionPoint<RepositoryModelItemType> _zoneItemDataTypeExtensionPoint
-
-
Constructor Detail
-
ProgramZone
public ProgramZone(ProgramPage page, AbstractThreadSafeComponentExtensionPoint<RepositoryModelItemType> zoneDataTypeExtensionPoint, AbstractThreadSafeComponentExtensionPoint<RepositoryModelItemType> zoneItemDataTypeExtensionPoint)
Constructor- Parameters:
page
- the parentProgramPage
.zoneDataTypeExtensionPoint
- the extension point with available data types for zoneszoneItemDataTypeExtensionPoint
- the extension point with available data types for zone items
-
-
Method Detail
-
getPage
public Page getPage()
Description copied from interface:Zone
Get the parent page of the zone
-
getZoneItems
public AmetysObjectIterable<? extends ZoneItem> getZoneItems() throws AmetysRepositoryException
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
-
getDataHolder
public ModelLessDataHolder 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
public String getId() throws AmetysRepositoryException
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.
-
getName
public String getName() throws AmetysRepositoryException
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
public Page getParent() throws AmetysRepositoryException
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
public String getParentPath() throws AmetysRepositoryException
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.
-
getPath
public String getPath() throws AmetysRepositoryException
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.
-
getZoneParametersHolder
public ModelAwareDataHolder getZoneParametersHolder() throws AmetysRepositoryException
Description copied from interface:Zone
Get the view parameters- Specified by:
getZoneParametersHolder
in interfaceZone
- Returns:
- the view parameters
- Throws:
AmetysRepositoryException
- if an error occurs.
-
-