|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@StableMinor(version="4.1", sinceVersion="4.0") public interface ILockManager
Manager interface for lock-related operations
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. |
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 |
Method Detail |
---|
void addLockType(SessionConfig sessionConfig, LockTypeConfig lockTypeConfig, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- lockTypeConfig
- transaction
-
ManagerException
PortalException
void deleteLockType(SessionConfig sessionConfig, String lockTypeId, boolean force, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- lockTypeId
- force
- transaction
-
ManagerException
PortalException
Collection<String> getLockTypeIdsByServiceId(SessionConfig sessionConfig, String serviceId, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- serviceId
- transaction
-
ManagerException
PortalException
String lock(SessionConfig sessionConfig, LockConfig lockConfig) throws ManagerException, PortalException
sessionConfig
- lockConfig
-
ManagerException
PortalException
boolean unlock(SessionConfig sessionConfig, String lockId) throws ManagerException, PortalException
sessionConfig
- lockId
-
ManagerException
PortalException
void addOrUpdateLockType(SessionConfig sessionConfig, LockTypeConfig lockTypeConfig, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- lockTypeConfig
- transaction
-
ManagerException
PortalException
void updateLockType(SessionConfig sessionConfig, LockTypeConfig lockTypeConfig, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- lockTypeConfig
- transaction
-
ManagerException
PortalException
void unlockExpiredLocks(SessionConfig sessionConfig) throws ManagerException, PortalException
sessionConfig
-
ManagerException
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |