Package | Description |
---|---|
de.innovationgate.webgate.api |
Basic functionality of the WGAPI including most of the database-independent functionality.
|
de.innovationgate.webgate.api.locking |
This base contains classes for enabling the WGAPI locking functionality, which is used to get exclusive access to documents and databases.
|
Modifier and Type | Class and Description |
---|---|
class |
WGSessionContext
Contains all information about the current database session.
|
Modifier and Type | Method and Description |
---|---|
int |
WGDocument.getLockStatus(LockOwner owner) |
int |
WGDatabase.getLockStatus(LockOwner owner) |
void |
WGDocument.lock(LockOwner owner) |
void |
WGDatabase.lock(LockOwner owner) |
void |
WGDocument.unlock(LockOwner owner) |
void |
WGDatabase.unlock(LockOwner owner) |
Modifier and Type | Method and Description |
---|---|
boolean |
LockManager.foreignChildLocksExists(Lockable lockable,
LockOwner owner)
checks if foreign locks exists on decendant objects of the given lockable
|
int |
LockManager.getLockStatus(Lockable lockable,
LockOwner owner)
returns the lockstatus of the given lockable for the given owner
if the given lockable is not locked, the lockstatus is retrieved
hierarchically by the parent-lockable
|
int |
Lock.getLockStatus(LockOwner owner)
returns the current lockStatus
|
int |
Lockable.getLockStatus(LockOwner caller)
returns the current lockstatus of the lockable - if parent is set and locked the lockstatus is inherited
|
boolean |
Lock.isOwnedBy(LockOwner owner)
checks if this lock is owned by the given owner
|
void |
Lockable.lock(LockOwner owner)
locks the object for the given owner
|
void |
LockManager.obtainLock(Lockable lockable,
LockOwner owner)
obtains a lock on the given lockable for the given owner
|
void |
LockManager.releaseAllLocks(LockOwner owner)
releases all locks obtained from the given owner
|
void |
LockManager.releaseLock(Lockable lockable,
LockOwner owner)
releases the lock obtained on the given lockable by the given owner
|
void |
Lockable.unlock(LockOwner owner)
unlock the object if it is locked by the given owner
this method only delegates to LockOwner.releaseLock()
|
Constructor and Description |
---|
Lock(Lockable lockable,
LockOwner owner) |