|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.lock.LockManager
public class LockManager
Manager implementation for lock-related operations
Constructor Summary | |
---|---|
LockManager()
|
Method Summary | |
---|---|
void |
addLockType(SessionConfig sessionConfig,
LockTypeConfig lockTypeConfig,
ITransaction transaction)
Add a type of lock. |
void |
addOrUpdateLockType(SessionConfig sessionConfig,
LockTypeConfig lockTypeConfig,
ITransaction transaction)
Adds or updates a lockType entry |
void |
deleteLockType(SessionConfig sessionConfig,
String lockTypeId,
boolean force,
ITransaction transaction)
Remove a type of lock. |
LockTypeConfig |
getLockType(SessionConfig sessionConfig,
String lockTypeId,
ITransaction transaction)
|
Collection<String> |
getLockTypeIdsByServiceId(SessionConfig sessionConfig,
String serviceId,
ITransaction transaction)
Returns the ids of the types of locks given the serviceId. |
String |
lock(SessionConfig sessionConfig,
LockConfig lockConfig)
Set lock on. |
boolean |
unlock(SessionConfig sessionConfig,
String lockId)
Set lock off. |
void |
unlockExpiredLocks(SessionConfig sessionConfig)
Delete all the locks that have expired. |
void |
updateLockType(SessionConfig sessionConfig,
LockTypeConfig lockTypeConfig,
ITransaction transaction)
Updates a lockType entry |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LockManager()
Method Detail |
---|
public void addLockType(SessionConfig sessionConfig, LockTypeConfig lockTypeConfig, ITransaction transaction) throws ManagerException, PortalException
ILockManager
addLockType
in interface ILockManager
ManagerException
PortalException
public void deleteLockType(SessionConfig sessionConfig, String lockTypeId, boolean force, ITransaction transaction) throws ManagerException, PortalException
ILockManager
deleteLockType
in interface ILockManager
ManagerException
PortalException
public Collection<String> getLockTypeIdsByServiceId(SessionConfig sessionConfig, String serviceId, ITransaction transaction) throws ManagerException, PortalException
ILockManager
getLockTypeIdsByServiceId
in interface ILockManager
ManagerException
PortalException
public LockTypeConfig getLockType(SessionConfig sessionConfig, String lockTypeId, ITransaction transaction) throws ManagerException, PortalException
ManagerException
PortalException
public String lock(SessionConfig sessionConfig, LockConfig lockConfig) throws ManagerException, PortalException
ILockManager
lock
in interface ILockManager
ManagerException
PortalException
public boolean unlock(SessionConfig sessionConfig, String lockId) throws ManagerException, PortalException
ILockManager
unlock
in interface ILockManager
ManagerException
PortalException
public void unlockExpiredLocks(SessionConfig sessionConfig) throws ManagerException, PortalException
ILockManager
unlockExpiredLocks
in interface ILockManager
ManagerException
PortalException
public void addOrUpdateLockType(SessionConfig sessionConfig, LockTypeConfig lockTypeConfig, ITransaction transaction) throws ManagerException, PortalException
ILockManager
addOrUpdateLockType
in interface ILockManager
ManagerException
PortalException
public void updateLockType(SessionConfig sessionConfig, LockTypeConfig lockTypeConfig, ITransaction transaction) throws ManagerException, PortalException
ILockManager
updateLockType
in interface ILockManager
ManagerException
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |