|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides an abstraction that specifies and promotes server-side functionality
as a service that's remotely available for use by a client. The intent
is that this interface defines all the necessary server-side functionality
for locking.
Supported API: true
Extendable: false
Method Summary | |
Lockable |
lock(Lockable object)
Defaults the note to be null, the principal to be null, which makes the principal the session's user, and invokes the main lock method. |
Lockable |
lock(Lockable object,
String note)
Defaults the principal to be null, which makes the principal the session's user, and invokes the main lock method. |
Lockable |
lock(Lockable object,
WTPrincipalReference locker)
Defaults the note to be null and invokes the main lock method. |
Lockable |
lock(Lockable object,
WTPrincipalReference locker,
String note)
Provides server-side functionality for the locking of business objects. |
Lockable |
unlock(Lockable object)
Defaults the principal to be null, which makes the principal the session's user, and invokes the main unlock method. |
Lockable |
unlock(Lockable object,
WTPrincipalReference locker)
Provides server-side functionality for releasing a business object's lock. |
Method Detail |
public Lockable lock(Lockable object, WTPrincipalReference locker, String note) throws WTException, LockException, WTPropertyVetoException, PersistenceException
However, if an object is lockable but has not yet been locked, then any agency has unrestricted access to the object until it has been locked.
object
- locker
- note
-
WTException
LockException
WTPropertyVetoException
PersistenceException
public Lockable lock(Lockable object, WTPrincipalReference locker) throws WTException, LockException, WTPropertyVetoException, PersistenceException
object
- locker
-
WTException
LockException
WTPropertyVetoException
PersistenceException
lock(Lockable,WTPrincipalReference,String)
public Lockable lock(Lockable object, String note) throws WTException, LockException, WTPropertyVetoException, PersistenceException
object
- note
-
WTException
LockException
WTPropertyVetoException
PersistenceException
lock(Lockable,WTPrincipalReference,String)
public Lockable lock(Lockable object) throws WTException, LockException, WTPropertyVetoException, PersistenceException
object
-
WTException
LockException
WTPropertyVetoException
PersistenceException
lock(Lockable,WTPrincipalReference,String)
public Lockable unlock(Lockable object, WTPrincipalReference locker) throws WTException, LockException, WTPropertyVetoException, PersistenceException
object
- locker
-
WTException
LockException
WTPropertyVetoException
PersistenceException
public Lockable unlock(Lockable object) throws WTException, LockException, WTPropertyVetoException, PersistenceException
object
-
WTException
LockException
WTPropertyVetoException
PersistenceException
unlock(Lockable,WTPrincipalReference)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |