|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.orchestranetworks.service.extensions.LockSpec
Handles a lock over a branch. When locked, a branch can be modified only by the owner of the lock.
The methods to call for locking and unlocking a branch are
lock(AdaptationHome, Session) and unlock(AdaptationHome, Session).
| Constructor Summary | |
LockSpec()
|
|
| Method Summary | |
UserMessage |
getDescription()
|
boolean |
isOwnerPrivileges()
|
void |
lock(AdaptationHome aBranch,
Session aSession)
Locks the branch specified. |
void |
setDescription(UserMessage description)
Specifies a message describing the purpose or the context of the lock. |
void |
setOwnerPrivileges(boolean allPrivileges)
If true, assumes the current user is either the owner of the branch or the owner of the lock (when unlocking). |
void |
unlock(AdaptationHome aBranch,
Session aSession)
Unlocks the branch specified. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LockSpec()
| Method Detail |
public void lock(AdaptationHome aBranch,
Session aSession)
throws OperationException
If branch is already locked, it throws an exception.
Note: this method cannot be called inside a procedure execution (because of transaction management restrictions).
A user can lock a branch if :
LockSpec instance is in a
setOwnerPrivileges(boolean) mode.
OperationExceptionSessionPermissions.getHomeActionPermissionToLockHome(LockSpec, AdaptationHome)
public void unlock(AdaptationHome aBranch,
Session aSession)
throws OperationException
If branch is already unlocked, it throws an exception.
When branch is locked, a user can unlock it if:
LockSpec instance is in a setOwnerPrivileges(boolean) mode.Note: this method cannot be called inside a procedure execution (because of transaction management restrictions).
OperationExceptionSessionPermissions.getHomeActionPermissionToUnlockHome(LockSpec, AdaptationHome)public UserMessage getDescription()
setDescription(UserMessage)public void setDescription(UserMessage description)
This possibly internationalized message is displayed in EBX.Manager when the user accesses to a branch that is locked.
public boolean isOwnerPrivileges()
setOwnerPrivileges(boolean)public void setOwnerPrivileges(boolean allPrivileges)
true, assumes the current user is either the owner of the branch or the owner of the lock (when unlocking).
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
(report a bug)
EBX.Platform 4.5.3 [0607:0001]
Copyright Orchestra Networks 2000-2008. All rights reserved.