public class StaticZone extends Object implements Zone
| Modifier and Type | Class and Description |
|---|---|
protected class |
StaticZone.StaticZoneItemIterable
Static zone item iterable.
|
(package private) class |
StaticZone.StaticZoneItemIterator |
| Constructor and Description |
|---|
StaticZone(Zone zone)
Construct a static zone, wrapping a given zone.
|
| Modifier and Type | Method and Description |
|---|---|
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> |
CompositeMetadata |
getMetadataHolder()
Returns the root
CompositeMetadata of this AmetysObject. |
String |
getName()
Retrieves the name of the current object.
|
Page |
getPage()
Get the parent page of the zone
|
<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.
|
AmetysObjectIterable<? extends ZoneItem> |
getZoneItems()
Retrieve the list of used zone items
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCodepublic StaticZone(Zone zone)
zone - the zone to wrap.public CompositeMetadata getMetadataHolder()
MetadataAwareAmetysObjectCompositeMetadata of this AmetysObject.getMetadataHolder in interface MetadataAwareAmetysObjectCompositeMetadata of this AmetysObjectpublic String getName() throws AmetysRepositoryException
AmetysObjectgetName in interface AmetysObjectAmetysRepositoryException - if an error occurs.public String getPath() throws AmetysRepositoryException
AmetysObjectgetPath in interface AmetysObjectAmetysRepositoryException - if an error occurs.public String getId() throws AmetysRepositoryException
AmetysObject<protocol>://<protocol-specific-part>getId in interface AmetysObjectAmetysRepositoryException - if an error occurs.public <A extends AmetysObject> A getParent() throws AmetysRepositoryException
AmetysObjectgetParent in interface AmetysObjectA - the type of the parent AmetysObject.null if current object
is the root.AmetysRepositoryException - if an error occurs.public String getParentPath() throws AmetysRepositoryException
AmetysObjectgetParentPath in interface AmetysObjectAmetysRepositoryException - if an error occurs.public AmetysObjectIterable<? extends ZoneItem> getZoneItems() throws AmetysRepositoryException
ZonegetZoneItems in interface ZoneAmetysRepositoryException - if an error occured