|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ActivityLockingFacility
Provides change activity locking facilities. A new activity lock is created when an element is edited in a change activity. This prevents editing the same element in another change activity until the lock is released. These methods expect the working baseline to be a release or a change activity.
Method Summary | |
---|---|
IlrActivityLock |
eltNameLockVisible(IlrChangeAct ca,
IlrElementDetails eltDtls)
Returns an activity lock valid in the context of a given change activity for the same element fully qualified name. |
String |
getActivityLockOwner(IlrElementHandle element)
Returns the name of the change activity that owns this element lock. |
boolean |
isActivityElementBusy(IlrElementHandle element)
Returns true if the working branch is a change activity and there is an activity lock set on this element by a different change activity. |
IlrActivityLock |
lockActivityElement(IlrElementDetails eltDtls)
Attempts to acquire a new activity lock on a given element for a given change activity. |
boolean |
ownsActivityLock(IlrElementHandle element)
Returns true if the working branch is a change activity that owns an activity lock on a given element. |
void |
releaseActivityLock(IlrElementHandle element)
Deletes the activity lock set on a given element, even if there are still justifying activities for this element in the release. |
void |
unlockActivityElements(IlrRelease release)
Should be called when an activity is closed. |
Method Detail |
---|
IlrActivityLock lockActivityElement(IlrElementDetails eltDtls) throws IlrInvalidElementException, IlrApplicationException, ilog.rules.teamserver.model.IlrAPIException
IlrInvalidElementException
IlrApplicationException
ilog.rules.teamserver.model.IlrAPIException
- if the element is not a project element.eltDtls
- The element to lock.void unlockActivityElements(IlrRelease release) throws IlrApplicationException
IlrApplicationException
release
- The release.boolean ownsActivityLock(IlrElementHandle element) throws IlrApplicationException, ilog.rules.teamserver.model.IlrAPIException
IlrApplicationException
ilog.rules.teamserver.model.IlrAPIException
- if the element is not a project element.element
- The element.
boolean isActivityElementBusy(IlrElementHandle element) throws IlrApplicationException, ilog.rules.teamserver.model.IlrAPIException
IlrApplicationException
ilog.rules.teamserver.model.IlrAPIException
- if the element is not a project element.element
- The element.
String getActivityLockOwner(IlrElementHandle element) throws IlrApplicationException
IlrApplicationException
element
- The element.
IlrActivityLock eltNameLockVisible(IlrChangeAct ca, IlrElementDetails eltDtls) throws IlrApplicationException
IlrApplicationException
ca
- The change activity.eltDtls
- The element details.
void releaseActivityLock(IlrElementHandle element) throws IlrApplicationException
IlrApplicationException
element
- The element.
|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |