public interface ActivityLockingFacility
| Modifier and Type | Method and Description |
|---|---|
IlrActivityLock |
eltNameLockVisible(IlrActivity act,
IlrElementDetails eltDtls)
Returns an activity lock valid in the context of a given change activity for the same element fully qualified name.
|
java.lang.String |
getActivityLockOwner(IlrActivity activity,
IlrElementHandle element)
Returns the name of the change activity that owns this element lock.
|
java.lang.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.
|
boolean |
isActivityElementBusy(IlrManagedBranch cmgBranch,
IlrElementHandle element)
Returns true if there is an activity lock set on this element by a different change activity.
|
boolean |
isTakeOwnershipAvailable(IlrActivity newOwner,
IlrElementHandle element)
Checks if an activity-lock is already allocated for this element and if the given activity
may become the new owner of this lock.
|
boolean |
isTakeOwnershipAvailable(IlrElementHandle element)
Checks if an activity-lock is already allocated for this element and if the working baseline
may become the new owner of this lock.
|
IlrActivityLock |
lockActivityElement(IlrActivity activity,
IlrElementDetails eltDtls)
Attempts to acquire a new activity lock on a given element for a given activity branch.
|
IlrActivityLock |
lockActivityElement(IlrElementDetails eltDtls)
Attempts to acquire a new activity lock on a given element for a given change activity.
|
boolean |
ownsActivityLock(IlrActivity activity,
IlrElementHandle element)
Returns true if the given activity owns an activity lock on a given element.
|
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 |
releaseActivityLock(IlrManagedBranch cmgBranch,
IlrElementHandle element)
Deletes the activity lock set on a given element, even if there are still justifying activities for this element in the release.
|
boolean |
takeOwnership(IlrActivity newOwner,
IlrElementHandle element)
Takes ownership of a justified activity lock already allocated for the given element.
|
boolean |
takeOwnership(IlrElementHandle element)
Takes ownership of a justified activity lock already allocated for the given element.
|
void |
unlockActivityElements(IlrRelease release)
Should be called when an activity is closed.
|
IlrActivityLock lockActivityElement(IlrElementDetails eltDtls) throws IlrInvalidElementException, IlrApplicationException, ilog.rules.teamserver.model.IlrAPIException
IlrInvalidElementExceptionIlrApplicationExceptionilog.rules.teamserver.model.IlrAPIException - if the element is not a project element.eltDtls - The element to lock.IlrActivityLock lockActivityElement(IlrActivity activity, IlrElementDetails eltDtls) throws IlrInvalidElementException, IlrApplicationException, ilog.rules.teamserver.model.IlrAPIException
IlrInvalidElementExceptionIlrApplicationExceptionilog.rules.teamserver.model.IlrAPIException - if the element is not a project element.activity - The activity branch that becomes the owner of the new lock.eltDtls - The element to lock.void unlockActivityElements(IlrRelease release) throws IlrApplicationException
IlrApplicationExceptionrelease - The release.boolean ownsActivityLock(IlrElementHandle element) throws IlrApplicationException, ilog.rules.teamserver.model.IlrAPIException
IlrApplicationExceptionilog.rules.teamserver.model.IlrAPIException - if the element is not a project element.element - The element.boolean ownsActivityLock(IlrActivity activity, IlrElementHandle element) throws IlrApplicationException, ilog.rules.teamserver.model.IlrAPIException
IlrApplicationExceptionilog.rules.teamserver.model.IlrAPIException - if the element is not a project element.activity - The activity to be checked for whether it is the owner of an activity lock for this element.element - The element.boolean isActivityElementBusy(IlrElementHandle element) throws IlrApplicationException, ilog.rules.teamserver.model.IlrAPIException
IlrApplicationExceptionilog.rules.teamserver.model.IlrAPIException - if the element is not a project element.element - The element.boolean isActivityElementBusy(IlrManagedBranch cmgBranch, IlrElementHandle element) throws IlrApplicationException, ilog.rules.teamserver.model.IlrAPIException
IlrApplicationExceptionilog.rules.teamserver.model.IlrAPIException - if the element is not a project element.cmgBranch - The branch for which we need to check if the element is busy.element - The element.java.lang.String getActivityLockOwner(IlrElementHandle element) throws IlrApplicationException
IlrApplicationExceptionelement - The element.java.lang.String getActivityLockOwner(IlrActivity activity, IlrElementHandle element) throws IlrApplicationException
IlrApplicationExceptionactivity - The activity in which the query will be run. The owner will be a brother activity of this one.element - The element.IlrActivityLock eltNameLockVisible(IlrActivity act, IlrElementDetails eltDtls) throws IlrApplicationException
IlrApplicationExceptionact - The change activity.eltDtls - The element details.void releaseActivityLock(IlrElementHandle element) throws IlrApplicationException
IlrApplicationExceptionelement - The element.void releaseActivityLock(IlrManagedBranch cmgBranch, IlrElementHandle element) throws IlrApplicationException
IlrApplicationExceptioncmgBranch - The managed branch in which the lock to delete is defined.element - The element.boolean isTakeOwnershipAvailable(IlrElementHandle element) throws IlrApplicationException
IlrApplicationExceptionelement - The element for which we need to check if activity lock ownership can be acquired.boolean isTakeOwnershipAvailable(IlrActivity newOwner, IlrElementHandle element) throws IlrApplicationException
IlrApplicationExceptionnewOwner - The activity to be checked for whether it may become the new owner
of the activity-lock allocated for this element.element - The element to be checked for whether activity lock ownership can be acquired.boolean takeOwnership(IlrElementHandle element) throws IlrApplicationException
isTakeOwnershipAvailable() must be true for this action to apply.
When the operation is applied, the element details are merged to the working branch
so that it gets the latest details of this element.IlrApplicationExceptionelement - The element for which the activity lock owner should get changed.boolean takeOwnership(IlrActivity newOwner, IlrElementHandle element) throws IlrApplicationException
isTakeOwnershipAvailable() must be true for this action to apply.
When the operation is applied, the element details are merged to the given activity.
so that it gets the latest details of this element.IlrApplicationExceptionnewOwner - The activity that should become the new owner of the activity-lock for this element.element - The element for which the activity lock owner should get changed.© Copyright IBM Corp. 1987, 2017