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
,ProgramZoneItem
,SecondLevelZoneItem
,StaticZoneItem
,TransitionalZoneItem
,UGCTransitionalZoneItem
,UGCZoneItem
,UserZoneItem
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Constant for the name of the data containing the service parameters. -
Method Summary
Modifier and TypeMethodDescription<C extends Content>
CRetrieves the content reference.getContentViewParametersHolder
(String contentViewName) Get the content view parameters for a given viewRetrieves the service id.Get the service parametersgetServiceViewParametersHolder
(String serviceViewName) Get the service view parameters for a given viewgetType()
Retrieves the type.default String
Get the name of the view to render the Content with.getZone()
Get the parent zone.Get the view parametersMethods 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, 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, hasValue, hasValue, hasValueOrEmpty, isMultiple, isMultiple
Methods inherited from interface org.ametys.plugins.repository.data.holder.ModelLessDataHolder
dataToJSON, dataToSAX
-
Field Details
-
SERVICE_PARAMETERS_DATA_NAME
Constant for the name of the data containing the service parameters.- See Also:
-
-
Method Details
-
getType
Retrieves the type.- Returns:
- the type.
- Throws:
AmetysRepositoryException
- if an error occurs.- See Also:
-
getContent
Retrieves the content reference.- Type Parameters:
C
- the actual type ofContent
.- Returns:
- the service id.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getViewName
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
Retrieves the service id.- Returns:
- the service id.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getServiceParameters
Get the service parameters- Returns:
- the service parameters
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getZoneItemParametersHolder
Get the view parameters- Returns:
- the view parameters
- Throws:
AmetysRepositoryException
- if an error occurs.
-
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.
-