public class StaticZoneItem extends Object implements ZoneItem
ZoneItem.ZoneType
Modifier and Type | Field and Description |
---|---|
protected ZoneItem |
_zoneItem
The wrapped zone.
|
SERVICE_PARAMETERS_DATA_NAME
Constructor and Description |
---|
StaticZoneItem(ZoneItem zoneItem)
Construct a static zone, wrapping a given zone.
|
Modifier and Type | Method and Description |
---|---|
<C extends Content> |
getContent()
Retrieves the content reference.
|
ModelLessDataHolder |
getDataHolder()
Returns the
DataHolder of this AmetysObject . |
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 |
getMetadataSetName()
Get the name of the metadata set to render the Content with.
|
String |
getName()
Retrieves the name of the current object.
|
<A extends AmetysObject> |
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.
|
String |
getServiceId()
Retrieves the service id.
|
ModelAwareDataHolder |
getServiceParameters()
Get the service parameters
|
ZoneItem.ZoneType |
getType()
Retrieves the type.
|
String |
getViewName()
Get the name of the view to render the Content with.
|
Zone |
getZone()
Get the parent zone.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComposite, getRepeater, getType, getValue, getValue, getValueOfType, getValueOfType, hasValue, isMultiple
copyTo, getDataNames
equals, hashCode
toSAX, toSAX
dataToSAX, dataToSAX, dataToSAX, dataToSAX
public StaticZoneItem(ZoneItem zoneItem)
zoneItem
- the zone to wrap.public ModelLessDataHolder getDataHolder()
DataAwareAmetysObject
DataHolder
of this AmetysObject
.getDataHolder
in interface DataAwareAmetysObject
getDataHolder
in interface ModelLessDataAwareAmetysObject
DataHolder
of this AmetysObject
public String getName() throws AmetysRepositoryException
AmetysObject
getName
in interface AmetysObject
AmetysRepositoryException
- if an error occurs.public String getPath() throws AmetysRepositoryException
AmetysObject
getPath
in interface AmetysObject
AmetysRepositoryException
- if an error occurs.public String getId() throws AmetysRepositoryException
AmetysObject
<protocol>://<protocol-specific-part>
getId
in interface AmetysObject
AmetysRepositoryException
- if an error occurs.public <A extends AmetysObject> A getParent() throws AmetysRepositoryException
AmetysObject
getParent
in interface AmetysObject
A
- the type of the parent AmetysObject
.null
if current object
is the root.AmetysRepositoryException
- if an error occurs.public String getParentPath() throws AmetysRepositoryException
AmetysObject
getParentPath
in interface AmetysObject
AmetysRepositoryException
- if an error occurs.public ZoneItem.ZoneType getType() throws AmetysRepositoryException
ZoneItem
getType
in interface ZoneItem
AmetysRepositoryException
- if an error occurs.ZoneItem.ZoneType
public <C extends Content> C getContent() throws AmetysRepositoryException
ZoneItem
getContent
in interface ZoneItem
C
- the actual type of Content
.AmetysRepositoryException
- if an error occurs.public String getMetadataSetName() throws AmetysRepositoryException
ZoneItem
getMetadataSetName
in interface ZoneItem
AmetysRepositoryException
- if an error occurs.public String getViewName() throws AmetysRepositoryException
ZoneItem
getViewName
in interface ZoneItem
AmetysRepositoryException
- if an error occurs.
TODO NEWATTRIBUTEAPI_SERVICE: remove the default implementation when all zone items implement the methodpublic String getServiceId() throws AmetysRepositoryException
ZoneItem
getServiceId
in interface ZoneItem
AmetysRepositoryException
- if an error occurs.public ModelAwareDataHolder getServiceParameters() throws AmetysRepositoryException
ZoneItem
getServiceParameters
in interface ZoneItem
AmetysRepositoryException
- if an error occurs.