public abstract class PresentationPoolDecorator extends AbstractPresentationPool implements PresentationPool
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_VERSION
The version of this class.
|
Constructor and Description |
---|
PresentationPoolDecorator(PresentationPool pPresentationPool)
Constructs a
PresentationPoolDecorator with the
PresentationPool instance to decorate. |
Modifier and Type | Method and Description |
---|---|
protected PresentationElement |
decorateRootElement(PresentationElement pRootElement)
Template method for decorating the root
PresentationElement of the decorated PresentationPool . |
Date |
getActivateDate()
Returns the date when this pool was activated or going to be activated.
|
int |
getArticleCount()
Returns the article count of this pool.
|
Date |
getChangedDate()
Returns the date when this pool was last updated.
|
Date |
getCreationDate()
Returns the date this pool was created for the first time.
|
Date |
getExpireDate()
Returns the date when this pool is due to expire (or expired).
|
IOHashKey |
getHashKey()
Returns the hash key of this object.
|
int |
getId()
Returns the id of the presentation object
|
List |
getPresentationArticles()
Returns all
PresentationArticle s in this
PresentationPool as a List . |
Publication |
getPublication()
Returns the publication that this pool belongs to.
|
int |
getPublicationId()
Returns the publication id of the publication that this pool belongs to.
|
PresentationElement |
getRootElement()
Returns the root group of this section page.
|
Section |
getSection()
Returns the section that this pool belongs to.
|
int |
getSectionId()
Returns the section id of the section this pool belongs to.
|
boolean |
inPool(int articleId)
Returns true if the specified article id can be added to this pool.
|
public static final String CLASS_VERSION
public PresentationPoolDecorator(PresentationPool pPresentationPool)
Constructs a PresentationPoolDecorator
with the
PresentationPool
instance to decorate.
IllegalArgumentException
- If invoked with 'null' as the argument.protected PresentationElement decorateRootElement(PresentationElement pRootElement)
PresentationElement
of the decorated PresentationPool
. The default
implementation returns the pRootElement
unmodified. Subclasses can override this method if they want
to decorate the root element of the PresentationPool
.pRootElement
- the root element of the decorated PresentationPool
pRootElement
unmodified.public Date getActivateDate()
PresentationPool
getActivateDate
in interface PresentationPool
public Date getExpireDate()
PresentationPool
getExpireDate
in interface PresentationPool
public Date getCreationDate()
PresentationPool
getCreationDate
in interface PresentationPool
public Date getChangedDate()
PresentationPool
getChangedDate
in interface PresentationPool
public int getSectionId()
PresentationPool
getSectionId
in interface PresentationPool
public int getPublicationId()
PresentationPool
getPublicationId
in interface PresentationPool
public Section getSection()
PresentationPool
getSection
in interface PresentationPool
public boolean inPool(int articleId)
PresentationPool
inPool
in interface PresentationPool
articleId
- id of the article we will check if are added tp this poolpublic Publication getPublication()
PresentationPool
getPublication
in interface PresentationPool
public int getArticleCount()
PresentationPool
getArticleCount
in interface PresentationPool
public List getPresentationArticles()
PresentationPool
PresentationArticle
s in this
PresentationPool as a List
.getPresentationArticles
in interface PresentationPool
List
of PresentationArticle
public IOHashKey getHashKey()
PresentationObject
getHashKey
in interface PresentationObject
public PresentationElement getRootElement()
PresentationPool
getRootElement
in interface PresentationPool
public int getId()
PresentationObject
getId
in interface PresentationObject
© 1998- 2021 Escenic AS