public interface PoolTransaction extends Pool, IOTransaction
Pool
object.
This will ensure that only one pool can modify this section at a time. A new transaction object can be retrieved when this object is released.
See LockManager
for further details on locking.
Make sure that all manditory attributes are set before invoking IOTransaction.create()
.
Manditory attributes:
Pool
IOAtom.ObjectType
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
Modifier and Type | Method and Description |
---|---|
void |
setActivateDate(Timestamp t)
Sets the time when this pool will be activated on the web.
|
void |
setCreationDate(Timestamp t)
Sets the time when this pool was created.
|
void |
setExpireDate(Timestamp t)
Sets the time when this pool will expire from the web.
|
void |
setName(String name)
Sets the name of this pool
|
void |
setRuleType(Type rt)
Deprecated.
no replacement
|
void |
setSectionId(int t)
Sets the id of the section that this pool belongs to.
|
void |
setType(Type t)
Sets the type of pool.
|
getActivateDate, getAPIArticle, getAPIArticles, getArticleRelation, getArticleRelations, getArticles, getArticles, getArticles, getCreationDate, getExpireDate, getLastModifiedDate, getName, getPoolEntry, getPreviewUrl, getPreviewUrl, getRuleType, getSection, getSectionId, getType, getVariantId, hasVariant, isActivePool, isPreviewPool
create, delete, getObject, release, setId, setOwnerPublicationId, update
breakAndLock, createTransaction, getChecksum, getHashKey, getId, getLockKeeper, getObjectType, getOwnerPublicationId, getProtectionDomain, getProtectionDomains, isLocked, isPreview, isValid, lock, lock, lock, lock, refresh
void setType(Type t) throws PersistentStoreException, NoSuchObjectException
TypeManager
for details on types.t
- the type of pool this will becomePersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existvoid setRuleType(Type rt) throws PersistentStoreException, NoSuchObjectException
rt
- the rule type of this poolPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existvoid setCreationDate(Timestamp t) throws PersistentStoreException, NoSuchObjectException
t
- the time when this pool was createdPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existTimestamp
void setActivateDate(Timestamp t) throws PersistentStoreException, NoSuchObjectException
t
- the time when this pool will be activated on the webPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existTimestamp
void setExpireDate(Timestamp t) throws PersistentStoreException, NoSuchObjectException
t
- the time when this pool will expire from the webPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existvoid setSectionId(int t) throws PersistentStoreException, NoSuchObjectException
t
- the id of the section that this pool belongs toPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existvoid setName(String name)
name
- the name of this pool© 1998- 2021 Escenic AS