public class PoolImpl extends IOObjectImpl implements Pool, IndexPage, ListPool
IOAtom.ObjectType
LOGGER, sRefreshObjectBeforeLock
ID_INVALID, OBJECTTYPE_AGREEMENTINFO, OBJECTTYPE_ARTICLE, OBJECTTYPE_CATALOG, OBJECTTYPE_CATEGORY, OBJECTTYPE_ENTITY, OBJECTTYPE_FORUM, OBJECTTYPE_LAYOUT, OBJECTTYPE_MAX, OBJECTTYPE_MIN, OBJECTTYPE_PERSON, OBJECTTYPE_POOL, OBJECTTYPE_POSTING, OBJECTTYPE_PRESENTATION_FORUM, OBJECTTYPE_PRESENTATION_POSTING, OBJECTTYPE_PRESENTATION_THREAD, OBJECTTYPE_PROFILE, OBJECTTYPE_PUBLICATION, OBJECTTYPE_SECTION, OBJECTTYPE_THREAD, OBJECTTYPE_TOPIC, OBJECTTYPE_UNKNOWN, OBJECTTYPE_USERGROUP
Constructor and Description |
---|
PoolImpl()
Deprecated.
|
PoolImpl(int poolId,
int pubId)
Deprecated.
|
PoolImpl(neo.xredsys.Pool value)
Deprecated.
|
PoolImpl(Pool pool)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkLoaded()
Deprecated.
|
Timestamp |
getActivateDate()
Deprecated.
Retrieves the activate date for this pool.
|
Article |
getAPIArticle(int pPosition)
Deprecated.
Retrieves article at position.
|
Article[] |
getAPIArticles()
Deprecated.
Retrieves all articles in pool.
|
IORelation |
getArticleRelation(Article article)
Deprecated.
Retrieves the relation between this pool and the specified article.
|
List |
getArticleRelations(Article article)
Deprecated.
Retrieves the relations between this pool and the specified article.
|
IORelation[] |
getArticles()
Deprecated.
Retrieves all relations between articles and this pool.
|
IORelation[] |
getArticles(boolean pOnlyLive)
Deprecated.
Retrieves all relations between articles and this pool based on whether or not articles must be live on the web.
|
IORelation[] |
getArticles(boolean pOnlyLive,
Date now)
Deprecated.
Retrieves all relations between articles and this pool based on whether or not articles must be live on the web.
|
String |
getChecksum()
Deprecated.
Get the version for this object.
|
EditableContentList |
getContentList()
Deprecated.
Retrieves the
EditableContentList for this inbox. |
Timestamp |
getCreationDate()
Deprecated.
Retrieves the creation date of this pool.
|
Group |
getElements()
Deprecated.
Returns the group instance that represents the layout for the pool.
|
Group |
getElements(boolean filterNonExistingObjects)
Deprecated.
|
Group |
getElements(List<Locale> pLocales)
Deprecated.
Returns the Group instance that represents the layout for the pool.
|
Timestamp |
getExpireDate()
Deprecated.
Retrieves the expire date for this pool.
|
protected neo.xredsys.api.transformer.ElementGroupTransformer |
getGroupTransformer()
Deprecated.
|
protected neo.xredsys.Pool |
getIOPool()
Deprecated.
|
Timestamp |
getLastModifiedDate()
Deprecated.
Retrieves the last modified date of this pool.
|
String |
getName()
Deprecated.
Retrieves the name of this pool.
|
neo.xredsys.PoolEntry |
getPoolEntry(int articleId)
Deprecated.
use IORelationLoader.getArticlePoolRelation(...) instead
|
String |
getPreviewUrl()
Deprecated.
Creates and then returns the preview url for this pool.
|
String |
getPreviewUrl(Date when)
Deprecated.
Creates and then returns the preview url to this section for a given pool.
|
ProtectionDomain |
getProtectionDomain()
Deprecated.
Retrieves the
ProtectionDomain of this object. |
Type |
getRuleType()
Deprecated.
Retrieves the rule type for this pool.
|
Section |
getSection()
Deprecated.
Retrieves the section this pool belongs to.
|
int |
getSectionId()
Deprecated.
Retrieves the id of the section this pool belongs to.
|
IOTransaction |
getTransactionObjectImpl()
Deprecated.
|
Type |
getType()
Deprecated.
Retrieves the type of this pool.
|
String |
getUUID()
Deprecated.
|
int |
getVariantId()
Deprecated.
Get the id of the variant of this pool if any.
|
boolean |
hasVariant()
Deprecated.
This will return true if the Pool has a published or staged variant.
|
boolean |
isActivePool()
Deprecated.
This will return true if the Pool is the current active pool.
|
boolean |
isPreview()
Deprecated.
Check if this is a preview object.
|
boolean |
isPreviewPool()
Deprecated.
Checks whether or not this is a preview pool.
|
void |
refresh()
Deprecated.
|
protected void |
setActivateDate(Timestamp activateDate)
Deprecated.
|
protected void |
setCreationDate(Timestamp creationDate)
Deprecated.
|
protected void |
setExpireDate(Timestamp expireDate)
Deprecated.
|
protected void |
setIOPool(neo.xredsys.Pool p)
Deprecated.
|
void |
setName(String pName)
Deprecated.
|
protected void |
setRuleType(Type ruleType)
Deprecated.
|
protected void |
setSectionId(int sectionId)
Deprecated.
|
protected void |
setType(Type type)
Deprecated.
|
breakAndLock, compareTo, createTransaction, equals, getDefaultProtectionDomain, getHashKey, getId, getLockKeeper, getObjectType, getOwnerPublicationId, getProtectionDomains, getValid, hashCode, isLocked, isStillValid, isValid, lock, lock, lock, lock, objectTypeAsString, setId, setOwnerPublicationId, setValid, stringToObjectType, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
breakAndLock, createTransaction, getHashKey, getId, getLockKeeper, getObjectType, getOwnerPublicationId, getProtectionDomains, isLocked, isValid, lock, lock, lock, lock
public PoolImpl(neo.xredsys.Pool value)
public PoolImpl(Pool pool)
public PoolImpl(int poolId, int pubId)
public PoolImpl()
protected neo.xredsys.Pool getIOPool()
protected void setIOPool(neo.xredsys.Pool p)
public IOTransaction getTransactionObjectImpl()
getTransactionObjectImpl
in class IOObjectImpl
public String getUUID()
getUUID
in class IOObjectImpl
public void refresh() throws PersistentStoreException, NoSuchObjectException
refresh
in interface IOObject
PersistentStoreException
NoSuchObjectException
protected void checkLoaded() throws PersistentStoreException, NoSuchObjectException
public Section getSection() throws PersistentStoreException, NoSuchObjectException
Pool
getSection
in interface Pool
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic Article getAPIArticle(int pPosition) throws NoSuchObjectException
Pool
Pool.getArticles()
.getAPIArticle
in interface Pool
pPosition
- the position to retrieve the article byNoSuchObjectException
- if trying to retrieve an object that does not existpublic Article[] getAPIArticles()
Pool
Pool.getArticles()
.getAPIArticles
in interface Pool
Article
public IORelation[] getArticles() throws PersistentStoreException, NoSuchObjectException
Pool
getArticles
in interface Pool
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existIORelation
public IORelation[] getArticles(boolean pOnlyLive) throws PersistentStoreException, NoSuchObjectException
Pool
true
. All relations are retrieved if this parameter has value false
.getArticles
in interface Pool
pOnlyLive
- true if only live relations should be retrieved; false otherwisePersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existIORelation
public IORelation[] getArticles(boolean pOnlyLive, Date now) throws PersistentStoreException, NoSuchObjectException
Pool
true
. All relations are retrieved if this parameter has value false
.getArticles
in interface Pool
pOnlyLive
- true if only live relations should be retrieved; false otherwisenow
- if not null, current time will be set to given time when retrieving live articlesPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existIORelation
public boolean isActivePool()
Pool
isActivePool
in interface Pool
public int getVariantId()
Pool
getVariantId
in interface Pool
public boolean hasVariant()
Pool
hasVariant
in interface Pool
public Type getType() throws PersistentStoreException, NoSuchObjectException
Pool
getType
in interface Pool
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existType
protected void setType(Type type) throws PersistentStoreException, NoSuchObjectException
public Type getRuleType() throws PersistentStoreException, NoSuchObjectException
Pool
getRuleType
in interface Pool
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existprotected void setRuleType(Type ruleType) throws PersistentStoreException, NoSuchObjectException
public Timestamp getCreationDate() throws PersistentStoreException, NoSuchObjectException
Pool
getCreationDate
in interface Pool
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existTimestamp
public Timestamp getLastModifiedDate() throws PersistentStoreException, NoSuchObjectException
Pool
getLastModifiedDate
in interface Pool
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existTimestamp
protected void setCreationDate(Timestamp creationDate) throws PersistentStoreException, NoSuchObjectException
public Timestamp getActivateDate() throws PersistentStoreException, NoSuchObjectException
Pool
getActivateDate
in interface Pool
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existprotected void setActivateDate(Timestamp activateDate) throws PersistentStoreException, NoSuchObjectException
public Timestamp getExpireDate() throws PersistentStoreException, NoSuchObjectException
Pool
getExpireDate
in interface Pool
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existTimestamp
protected void setExpireDate(Timestamp expireDate) throws PersistentStoreException, NoSuchObjectException
public int getSectionId() throws PersistentStoreException, NoSuchObjectException
Pool
getSectionId
in interface Pool
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existprotected void setSectionId(int sectionId) throws PersistentStoreException, NoSuchObjectException
public neo.xredsys.PoolEntry getPoolEntry(int articleId) throws PersistentStoreException, NoSuchObjectException
getPoolEntry
in interface Pool
PersistentStoreException
NoSuchObjectException
public IORelation getArticleRelation(Article article) throws PersistentStoreException, NoSuchObjectException
Pool
getArticleRelation
in interface Pool
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic List getArticleRelations(Article article) throws PersistentStoreException, NoSuchObjectException
Pool
getArticleRelations
in interface Pool
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic boolean isPreviewPool()
Pool
isPreviewPool
in interface Pool
public boolean isPreview()
IOObject
isPreview
in interface IOObject
isPreview
in class IOObjectImpl
public String getName()
Pool
public void setName(String pName)
public Group getElements()
IndexPage
getElements(null).
getElements
in interface IndexPage
public Group getElements(List<Locale> pLocales)
IndexPage
getElements
in interface IndexPage
pLocales
- The supplied locales, to localize the element descriptors.public Group getElements(boolean filterNonExistingObjects)
public String getChecksum()
IOObject
getChecksum
in interface IOObject
getChecksum
in class IOObjectImpl
protected neo.xredsys.api.transformer.ElementGroupTransformer getGroupTransformer()
public EditableContentList getContentList()
ListPool
EditableContentList
for this inbox.getContentList
in interface ListPool
EditableContentList
for this inboxpublic ProtectionDomain getProtectionDomain() throws PersistentStoreException, NoSuchObjectException
IOObject
ProtectionDomain
of this object.getProtectionDomain
in interface IOObject
getProtectionDomain
in class IOObjectImpl
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic String getPreviewUrl() throws PersistentStoreException
Pool
getPreviewUrl
in interface Pool
PersistentStoreException
- if an error occurs in the persistence layerpublic String getPreviewUrl(Date when) throws PersistentStoreException
Pool
getPreviewUrl
in interface Pool
PersistentStoreException
- if an error occurs in the persistence layer© 1998- 2021 Escenic AS