Package org.ametys.web.repository.page
Interface ZoneItem
-
- All Superinterfaces:
AmetysObject
,DataAwareAmetysObject
,DataHolder
,ModelLessDataAwareAmetysObject
,ModelLessDataHolder
- All Known Subinterfaces:
ModifiableZoneItem
- All Known Implementing Classes:
CourseZoneItem
,DefaultZoneItem
,FirstLevelZoneItem
,OrgUnitZoneItem
,PostListZoneItem
,PostZoneItem
,ProgramZoneItem
,SecondLevelZoneItem
,StaticZoneItem
,TransitionalZoneItem
,UGCTransitionalZoneItem
,UGCZoneItem
,UserZoneItem
public interface ZoneItem extends ModelLessDataAwareAmetysObject
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ZoneItem.ZoneType
Type of an zone.
-
Field Summary
Fields Modifier and Type Field Description static String
SERVICE_PARAMETERS_DATA_NAME
Constant for the name of the data containing the service parameters.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <C extends Content>
CgetContent()
Retrieves the content reference.ModelAwareDataHolder
getContentViewParametersHolder(String contentViewName)
Get the content view parameters for a given viewString
getServiceId()
Retrieves the service id.ModelAwareDataHolder
getServiceParameters()
Get the service parametersModelAwareDataHolder
getServiceViewParametersHolder(String serviceViewName)
Get the service view parameters for a given viewZoneItem.ZoneType
getType()
Retrieves the type.default String
getViewName()
Get the name of the view to render the Content with.Zone
getZone()
Get the parent zone.ModelAwareDataHolder
getZoneItemParametersHolder()
Get the view parameters-
Methods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCode
-
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.DataAwareAmetysObject
copyTo, dataToSAX, dataToSAX, getDataNames, getRepositoryData
-
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModelLessDataAwareAmetysObject
dataToSAX, getComposite, getDataHolder, getParentDataHolder, getRootDataHolder, getType, getValue, getValue, getValueOfType, getValueOfType, hasValue, hasValueOrEmpty, isMultiple
-
Methods inherited from interface org.ametys.plugins.repository.data.holder.ModelLessDataHolder
dataToSAX
-
-
-
-
Field Detail
-
SERVICE_PARAMETERS_DATA_NAME
static final String SERVICE_PARAMETERS_DATA_NAME
Constant for the name of the data containing the service parameters.- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
ZoneItem.ZoneType getType() throws AmetysRepositoryException
Retrieves the type.- Returns:
- the type.
- Throws:
AmetysRepositoryException
- if an error occurs.- See Also:
ZoneItem.ZoneType
-
getContent
<C extends Content> C getContent() throws AmetysRepositoryException
Retrieves the content reference.- Type Parameters:
C
- the actual type ofContent
.- Returns:
- the service id.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getViewName
default String getViewName() throws AmetysRepositoryException
Get the name of the view to render the Content with. It only makes sense if the ZoneItem is a Content reference.
If null is returned, in most cases, "main" should be assumed.- Returns:
- the view name, or null if not set.
- Throws:
AmetysRepositoryException
- if an error occurs. TODO NEWATTRIBUTEAPI_SERVICE: remove the default implementation when all zone items implement the method
-
getServiceId
String getServiceId() throws AmetysRepositoryException
Retrieves the service id.- Returns:
- the service id.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getServiceParameters
ModelAwareDataHolder getServiceParameters() throws AmetysRepositoryException
Get the service parameters- Returns:
- the service parameters
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getZoneItemParametersHolder
ModelAwareDataHolder getZoneItemParametersHolder() throws AmetysRepositoryException
Get the view parameters- Returns:
- the view parameters
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getZone
Zone getZone()
Get the parent zone.- Returns:
- the parent zone of the zone item. cannot be null
-
getContentViewParametersHolder
ModelAwareDataHolder getContentViewParametersHolder(String contentViewName) throws AmetysRepositoryException
Get the content view parameters for a given view- Parameters:
contentViewName
- the view name- Returns:
- the content view parameters
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getServiceViewParametersHolder
ModelAwareDataHolder getServiceViewParametersHolder(String serviceViewName) throws AmetysRepositoryException
Get the service view parameters for a given view- Parameters:
serviceViewName
- the view name- Returns:
- the service view parameters
- Throws:
AmetysRepositoryException
- if an error occurs.
-
-