public interface IOObject extends IOAtom
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 |
---|---|
IOTransaction |
breakAndLock(IOLockKeeper keeper)
Brutally aquire lock on this object, even if it is locked by someone else
|
IOTransaction |
createTransaction()
Deprecated.
lock the object using
LockManager instead |
String |
getChecksum()
Get the version for this object.
|
IOHashKey |
getHashKey()
Get a hash key for this object.
|
int |
getId()
Get the id of this object
|
IOLockKeeper |
getLockKeeper()
Get a reference to the IOLockKeeper that is currently locking this
object.
|
int |
getObjectType()
Get the object type.
|
int |
getOwnerPublicationId()
This method returns the id of the owner publication
|
ProtectionDomain |
getProtectionDomain()
Retrieves the
ProtectionDomain of this object. |
Set<ProtectionDomain> |
getProtectionDomains()
Retrieves all
ProtectionDomain s of this object |
boolean |
isLocked()
Check if this object is locked
|
boolean |
isPreview()
Deprecated.
|
boolean |
isValid()
Deprecated.
no replacement
|
IOTransaction |
lock()
Lock this object, and disregard any notifications with regard to the state of the lock.
|
IOTransaction |
lock(boolean pReloadIfNeeded)
Lock this object.
|
IOTransaction |
lock(boolean pReloadIfNeeded,
IOLockKeeper keeper)
Lock this object.
|
IOTransaction |
lock(IOLockKeeper keeper)
Lock this object, specifying the object that is to be designated the "owner".
|
void |
refresh()
Deprecated.
Reload from
ObjectLoader instead |
String getChecksum()
IOLockKeeper getLockKeeper()
IOTransaction lock(IOLockKeeper keeper) throws IllegalArgumentException, IllegalOperationException, IllegalStateException
keeper
- Register this lock keeper with the lock.IllegalArgumentException
- if locking the object failsIllegalOperationException
- if locking the object failsIllegalStateException
- if the object is stale. This is the same as invoking lock(boolean, IOLockKeeper)
with false
.IOTransaction lock() throws IllegalArgumentException, IllegalOperationException, IllegalStateException
IllegalArgumentException
- if locking the object failsIllegalOperationException
- if locking the object failsIllegalStateException
- if the object is stale. This is the same as invoking lock(boolean)
with false
.IOTransaction lock(boolean pReloadIfNeeded) throws IllegalArgumentException, IllegalOperationException, IllegalStateException
pReloadIfNeeded
- if true, stale objects will be reloaded from the database. If false, the method will throw an IllegalStateException
if the object is stale. Non-stale objects will remain unchangedIllegalArgumentException
- if locking the object failsIllegalOperationException
- if locking the object failsIllegalStateException
- if the object is stale and pReloadIfNeeded==falseIOTransaction lock(boolean pReloadIfNeeded, IOLockKeeper keeper) throws IllegalArgumentException, IllegalOperationException, IllegalStateException
pReloadIfNeeded
- if true, stale objects will be reloaded from the database. If false, the method will throw an IllegalStateException
if the object is stale. Non-stale objects will remain unchangedkeeper
- the lock keeperIllegalArgumentException
- if locking the object failsIllegalOperationException
- if locking the object failsIllegalStateException
- if the object is stale and pReloadIfNeeded==falseboolean isLocked()
IOTransaction breakAndLock(IOLockKeeper keeper) throws IllegalArgumentException, IllegalOperationException
keeper
- Register this lock keeper with the lock.IllegalArgumentException
IllegalOperationException
int getId()
int getObjectType()
IOHashKey getHashKey()
boolean isValid()
int getOwnerPublicationId()
IOTransaction createTransaction()
LockManager
insteadlock()
or
lock(neo.xredsys.api.IOLockKeeper)
.void refresh() throws PersistentStoreException, NoSuchObjectException
ObjectLoader
insteadboolean isPreview()
ProtectionDomain getProtectionDomain()
ProtectionDomain
of this object.PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existSet<ProtectionDomain> getProtectionDomains()
ProtectionDomain
s of this objectPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not exist© 1998- 2021 Escenic AS