public class PostListZone extends Object implements Zone
Zone
holding a post list service.Modifier and Type | Field and Description |
---|---|
private int |
_maxCount |
private Page |
_page |
private String |
_serviceTitle |
Constructor and Description |
---|
PostListZone(Page page,
String serviceTitle,
int maxCount)
Constructor
|
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
|
Page |
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, wait
equals, hashCode
private String _serviceTitle
private int _maxCount
public PostListZone(Page page, String serviceTitle, int maxCount)
page
- the parent Page
.serviceTitle
- The service's titlemaxCount
- The max number of postspublic Page getPage()
Zone
public AmetysObjectIterable<? extends ZoneItem> getZoneItems() throws AmetysRepositoryException
Zone
getZoneItems
in interface Zone
AmetysRepositoryException
- if an error occuredpublic CompositeMetadata getMetadataHolder()
MetadataAwareAmetysObject
CompositeMetadata
of this AmetysObject
.getMetadataHolder
in interface MetadataAwareAmetysObject
CompositeMetadata
of this AmetysObject
public String getId() throws AmetysRepositoryException
AmetysObject
<protocol>://<protocol-specific-part>
getId
in interface AmetysObject
AmetysRepositoryException
- if an error occurs.public String getName() throws AmetysRepositoryException
AmetysObject
getName
in interface AmetysObject
AmetysRepositoryException
- if an error occurs.public Page getParent() throws AmetysRepositoryException
AmetysObject
getParent
in interface 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 String getPath() throws AmetysRepositoryException
AmetysObject
getPath
in interface AmetysObject
AmetysRepositoryException
- if an error occurs.