public interface IlrBaselineManagementFacility
IlrSession| Modifier and Type | Method and Description |
|---|---|
boolean |
addToBaseline(IlrElementHandle element,
IlrBaseline baseline)
Adds the given element to the baseline.
|
boolean |
changeVersionInBaseline(IlrElementHandle element,
IlrElementVersion version,
IlrBaseline baseline)
Deprecated.
Equivalent function no longer available.
|
IlrBaseline |
cloneToBranch(IlrBaseline baselineSource,
java.lang.String name)
Deprecated.
Use
cloneToBranch(IlrBaseline baselineSource, String name, boolean includeDependencies) (with includeDependencies = false) instead. |
IlrBranch |
cloneToBranch(IlrBaseline baselineSource,
java.lang.String name,
boolean includeDependencies)
Copies the given baseline and converts it to a branch.
|
IlrBaseline |
copyBaseline(IlrBaseline baselineSource,
java.lang.String name)
Copies the content of the given baseline to a new one.
|
IlrBaseline |
createBaseline(IlrBranch parentBranch,
java.lang.String name,
java.lang.String documentation,
boolean includeDependencies,
IlrBaselineKind baselineKind)
Creates a new baseline (snapshot) in the given branch.
|
IlrBaseline |
createBaselineFromCurrentState(java.lang.String name)
Deprecated.
Use
createBaselineFromCurrentState(String name, String documentation) instead. |
IlrBaseline |
createBaselineFromCurrentState(java.lang.String name,
boolean includeDependencies,
IlrBaselineKind baselineKind)
Deprecated.
Use
createBaselineFromCurrentState(String name, String documentation, boolean includeDependencies, IlrBaselineKind baselineKind) instead. |
IlrBaseline |
createBaselineFromCurrentState(java.lang.String name,
java.lang.String documentation)
Creates a baseline for the current baseline of the working project.
|
IlrBaseline |
createBaselineFromCurrentState(java.lang.String name,
java.lang.String documentation,
boolean includeDependencies,
IlrBaselineKind baselineKind)
Creates a baseline for the current baseline of the working project.
|
IlrBranch |
createBranchFromCurrentState(java.lang.String name,
boolean includeDependencies)
Creates a branch for the current baseline of the working project.
|
IlrBaseline |
createSnapshotFromBaselineEvent(java.lang.String snapshotName,
java.lang.String documentation,
IlrElementHandle eventHandle)
Creates a new snapshot that references all elements that were available at the time the given baseline event
was created.
|
IlrBaseline |
createSnapshotFromElement(java.lang.String snapshotName,
java.lang.String documentation,
IlrElementHandle projectEltHandle)
Deprecated.
Creates a snapshot that references all elements that were available at the time the given element handle was
updated.
New method
createSnapshotFromElementVersion() should be used instead of this one.
This new method can handle deleting of elements, which is not the case with createSnapshotFromElement(). |
IlrBaseline |
createSnapshotFromElementVersion(java.lang.String snapshotName,
java.lang.String documentation,
IlrElementVersion eltVersion)
Creates a new snapshot that references all elements that were available at the time the given element
version was created.
|
void |
deleteBaseline(IlrBaseline baseline,
boolean includeDependencies)
Deletes a baseline.
|
boolean |
deleteFromBranch(IlrElementHandle element,
IlrBaseline baseline) |
java.util.List<IlrElementHandle> |
findArtifactsCausingMergeConflicts(IlrBranch selectedBaseline)
Deprecated.
should use BranchHelper.getMergeOperations(IlrSession session, IlrBaseline lhsBranch, IlrBaseline rhsBranch) instead
Returns the list of elements from the selected baseline that are in conflict when attempting a merge with the working baseline.
If the working baseline is
null, the finder uses the current baseline of the project of the selected baseline. |
java.util.List<IlrElementHandle> |
findArtifactsDeletedReadyToMerge(IlrBranch selectedBaseline)
Deprecated.
should use BranchHelper.getMergeOperations(IlrSession session, IlrBaseline lhsBranch, IlrBaseline rhsBranch) instead
Returns the list of elements that were deleted in the selected baseline, and deleted or not modified in the working baseline.
|
java.util.List<IlrElementHandle> |
findArtifactsReadyToMerge(IlrBranch selectedBaseline)
Deprecated.
should use BranchHelper.getMergeOperations(IlrSession session, IlrBaseline lhsBranch, IlrBaseline rhsBranch) instead
Returns the list of elements from the selected baseline that can be safely merged with the working baseline without conflict.
If the working baseline is
null, the finder uses the current baseline of the project of the selected baseline.
It returns the list of elements that were modified in the selected branch, and not modified in the working baseline.
It does not return elements that were deleted in the selected or in the working baselines. |
java.util.List |
getBaselinesForVersion(IlrElementVersion version)
Gets the baselines that reference the given element version.
|
boolean |
removeFromBaseline(IlrElementHandle element,
IlrBaseline baseline)
Deprecated.
Make sure the baseline is not frozen, and then use
deleteFromBranch(). |
void |
restoreBaseline(IlrBaseline baseline)
Deprecated.
Use
restoreBaseline(String name, String comment) instead. |
void |
restoreBaseline(IlrBaseline baseline,
java.lang.String comment)
Restores the given baseline.
|
boolean addToBaseline(IlrElementHandle element, IlrBaseline baseline) throws IlrObjectNotFoundException, IlrPermissionException, IlrFrozenBaselineException
IlrSessionHelper.copyElementFromWorkingBaselineToBranch()
or IlrSessionHelper.copyElementFromSourceBaselineToTargetBranch().IlrObjectNotFoundException - If the given element cannot be found in the database.IlrPermissionException - If the user is neither a configuration manager nor an administrator.IlrFrozenBaselineException - If the baseline is frozen and thus cannot be updated.element - Handle on the element to add.baseline - The baseline to update.false If the baseline cannot be updated.java.util.List<IlrElementHandle> findArtifactsDeletedReadyToMerge(IlrBranch selectedBaseline) throws IlrObjectNotFoundException, IlrPermissionException, IlrFrozenBaselineException, IlrInvalidElementException
IlrFrozenBaselineException - If the working baseline is not frozen.IlrInvalidElementException - If a baseline with the same name already exists.IlrObjectNotFoundExceptionIlrPermissionExceptionselectedBaseline - The selected baseline.java.util.List<IlrElementHandle> findArtifactsReadyToMerge(IlrBranch selectedBaseline) throws IlrFrozenBaselineException, IlrObjectNotFoundException, IlrPermissionException, IlrInvalidElementException
null, the finder uses the current baseline of the project of the selected baseline.
It returns the list of elements that were modified in the selected branch, and not modified in the working baseline.
It does not return elements that were deleted in the selected or in the working baselines.IlrFrozenBaselineException - If the working baseline is not frozen.IlrObjectNotFoundException - If the given element cannot be found in the database.IlrPermissionException - If the user is neither a configuration manager nor an administrator.IlrInvalidElementException - If a baseline with the same name already exists.selectedBaseline - The selected baseline.java.util.List<IlrElementHandle> findArtifactsCausingMergeConflicts(IlrBranch selectedBaseline) throws IlrFrozenBaselineException, IlrObjectNotFoundException, IlrPermissionException, IlrInvalidElementException
null, the finder uses the current baseline of the project of the selected baseline.IlrFrozenBaselineException - If the working baseline is not frozen.IlrObjectNotFoundException - If the given element cannot be found in the database.IlrPermissionException - If the user is neither a configuration manager nor an administrator.IlrInvalidElementException - If a baseline with the same name already exists.selectedBaseline - The selected baseline.boolean deleteFromBranch(IlrElementHandle element, IlrBaseline baseline) throws IlrApplicationException
IlrApplicationExceptionboolean removeFromBaseline(IlrElementHandle element, IlrBaseline baseline) throws IlrObjectNotFoundException, IlrPermissionException, IlrFrozenBaselineException
deleteFromBranch().IlrObjectNotFoundException - If the given element cannot be found in the database.IlrPermissionException - If the user is neither a configuration manager nor an administrator.IlrFrozenBaselineException - If the baseline is frozen and thus cannot be updated.element - Handle on the element to remove.baseline - The baseline to update.false if the baseline cannot be updated.boolean changeVersionInBaseline(IlrElementHandle element, IlrElementVersion version, IlrBaseline baseline) throws IlrObjectNotFoundException, IlrPermissionException, IlrFrozenBaselineException
IlrObjectNotFoundException - If the given element cannot be found in the database.IlrPermissionException - If the user is neither a configuration manager nor an administrator.IlrFrozenBaselineException - If the baseline is frozen and thus cannot be updated.element - Handle on the element to remove.version - The new version of the element the baseline should refer to.baseline - The baseline to update.false if the baseline cannot be updated.IlrBaseline createBaselineFromCurrentState(java.lang.String name) throws IlrApplicationException
createBaselineFromCurrentState(String name, String documentation) instead.IlrObjectNotFoundException - If the given element cannot be found in the database.IlrPermissionException - If the user is neither a configuration manager nor an administrator.IlrBaselineNotCurrentException - If the working baseline is not the current one.IlrInvalidElementException - If a baseline with the same name already exists.IlrActivityObjectLockedExceptionIlrApplicationExceptionname - The name of the baseline to create.IlrBaseline createBaselineFromCurrentState(java.lang.String name, java.lang.String documentation) throws IlrApplicationException
IlrObjectNotFoundException - If the given element cannot be found in the database.IlrPermissionException - If the user is neither a configuration manager nor an administrator.IlrBaselineNotCurrentException - If the working baseline is not the current one.IlrInvalidElementException - If a baseline with the same name already exists.IlrActivityObjectLockedExceptionIlrApplicationExceptionname - The name of the baseline to create.documentation - Text to describe the new baseline.IlrBaseline createBaselineFromCurrentState(java.lang.String name, boolean includeDependencies, IlrBaselineKind baselineKind) throws IlrApplicationException
createBaselineFromCurrentState(String name, String documentation, boolean includeDependencies, IlrBaselineKind baselineKind) instead.IlrObjectNotFoundException - If the given element cannot be found in the database.IlrPermissionException - If the user is neither a configuration manager nor an administrator.IlrFrozenBaselineException - If the working baseline is not frozen.IlrInvalidElementException - If a baseline with the same name already exists.IlrActivityObjectLockedExceptionIlrApplicationExceptionname - The name of the baseline to create.includeDependencies - If true, a baseline with the same name will also be created for all dependent projects.IlrBaseline createBaselineFromCurrentState(java.lang.String name, java.lang.String documentation, boolean includeDependencies, IlrBaselineKind baselineKind) throws IlrApplicationException
IlrObjectNotFoundException - If the given element cannot be found in the database.IlrPermissionException - If the user is neither a configuration manager nor an administrator.IlrFrozenBaselineException - If the working baseline is not frozen.IlrInvalidElementException - If a baseline with the same name already exists.IlrActivityObjectLockedExceptionIlrApplicationExceptionname - The name of the baseline to create.documentation - Text to describe the new baseline.includeDependencies - If true, a baseline with the same name will also be created for all dependent projects.IlrBaseline createBaseline(IlrBranch parentBranch, java.lang.String name, java.lang.String documentation, boolean includeDependencies, IlrBaselineKind baselineKind) throws IlrApplicationException
IlrApplicationExceptionparentBranch - The branch in which the new baseline will get created.name - The name of the baseline to create.documentation - Text to describe the new baseline.baselineKind - The type of baseline to create.includeDependencies - If true, a baseline with the same name and same kind will also be created for all dependent branches.IlrBranch createBranchFromCurrentState(java.lang.String name, boolean includeDependencies) throws IlrApplicationException
IlrObjectNotFoundException - If the given element cannot be found in the database.IlrPermissionException - If the user is neither a configuration manager nor an administrator.IlrFrozenBaselineException - If the working baseline is not frozen.IlrInvalidElementException - If a baseline with the same name already exists.IlrActivityObjectLockedExceptionIlrApplicationExceptionname - The name of the branch to create.includeDependencies - If true, a baseline with the same name will also be created for all dependent projects.IlrBaseline createSnapshotFromElement(java.lang.String snapshotName, java.lang.String documentation, IlrElementHandle projectEltHandle) throws ilog.rules.teamserver.model.IlrAPIException, IlrApplicationException
createSnapshotFromElementVersion() should be used instead of this one.
This new method can handle deleting of elements, which is not the case with createSnapshotFromElement().IlrInvalidElementException - If a snapshot with the same name already exists or if the handle is not a project element handle.ilog.rules.teamserver.model.IlrAPIExceptionilog.rules.teamserver.model.IlrTransactionStoppedExceptionIlrKnownUUIDExceptionIlrObjectNotFoundException - If the given element cannot be found in the database.IlrPermissionException - If the user is neither a configuration manager nor an administrator.IlrActivityObjectLockedExceptionIlrApplicationExceptiondocumentation - The text to describe the new snapshot.IlrBaseline createSnapshotFromElementVersion(java.lang.String snapshotName, java.lang.String documentation, IlrElementVersion eltVersion) throws ilog.rules.teamserver.model.IlrAPIException, IlrApplicationException
IlrInvalidElementException - If a snapshot with the same name already exists or if the handle is not a project element handle.IlrPermissionExceptionIlrObjectNotFoundExceptionIlrKnownUUIDExceptionilog.rules.teamserver.model.IlrTransactionStoppedExceptionilog.rules.teamserver.model.IlrAPIExceptionIlrActivityObjectLockedExceptionIlrApplicationExceptionsnapshotName - documentation - eltVersion - An element version.IlrBaseline createSnapshotFromBaselineEvent(java.lang.String snapshotName, java.lang.String documentation, IlrElementHandle eventHandle) throws ilog.rules.teamserver.model.IlrAPIException, IlrApplicationException
IlrInvalidElementExceptionIlrPermissionExceptionIlrObjectNotFoundExceptionIlrKnownUUIDExceptionilog.rules.teamserver.model.IlrTransactionStoppedExceptionilog.rules.teamserver.model.IlrAPIExceptionIlrActivityObjectLockedExceptionIlrApplicationExceptionsnapshotName - documentation - eventHandle - A baseline event handlevoid deleteBaseline(IlrBaseline baseline, boolean includeDependencies) throws IlrApplicationException
IlrObjectNotFoundException - If the given element cannot be found in the database.IlrPermissionException - If the user is neither a configuration manager nor an administrator.IlrFrozenBaselineException - If the baseline is frozen and thus cannot be updated.IlrActivityObjectLockedExceptionilog.rules.teamserver.model.IlrAPIExceptionIlrApplicationExceptionbaseline - The baseline to delete.includeDependencies - If true, all dependent baselines with the same name will also be deleted.java.util.List getBaselinesForVersion(IlrElementVersion version)
version - The element version to test.IlrElementSummary objects, instance of brm.Baseline.void restoreBaseline(IlrBaseline baseline) throws IlrApplicationException
restoreBaseline(String name, String comment) instead.IlrCannotDeleteException - If some of the elements of the current baseline are not in the restored baseline
and cannot be deleted.IlrPermissionException - If the security on the elements of the current baseline prevents the restore
operation.IlrObjectNotFoundException - If the given baseline cannot be found.IlrObjectLockedException - If one object of the current baseline is locked and cannot be deleted or overwritten.IlrFolderLockedException - If a rule package of the working baseline is locked.IlrFrozenBaselineException - If the working baseline is not frozen.IlrInvalidElementException - If some of the elements to restore cause a duplicate conflict with a new element added into the current baseline.IlrActivityObjectLockedExceptionIlrApplicationExceptionbaseline - The baseline to restore.void restoreBaseline(IlrBaseline baseline, java.lang.String comment) throws IlrApplicationException
IlrCannotDeleteException - If some of the elements of the current baseline are not in the restored baseline
and cannot be deleted.IlrPermissionException - If the security on the elements of the current baseline prevents the restore
operation.IlrObjectNotFoundException - If the given baseline cannot be found.IlrObjectLockedException - If one object of the current baseline is locked and cannot be deleted or overwritten.IlrFolderLockedException - If a rule package of the working baseline is locked.IlrFrozenBaselineException - If the working baseline is not frozen.IlrInvalidElementException - If some of the elements to restore cause a duplicate conflict with a new element added into the current baseline.IlrActivityObjectLockedExceptionIlrApplicationExceptionbaseline - The baseline to restore.comment - User-provided comment (optional) to describe the reason for this restore.IlrBaseline copyBaseline(IlrBaseline baselineSource, java.lang.String name) throws IlrApplicationException
IlrObjectNotFoundException - If the source baseline cannot be found in the database.IlrPermissionException - If the user is neither a configuration manager nor an administrator.IlrInvalidElementException - If a baseline with the same name already exists.IlrActivityObjectLockedExceptionIlrApplicationExceptionbaselineSource - The baseline to copy.name - The name of the new baseline.IlrBaseline cloneToBranch(IlrBaseline baselineSource, java.lang.String name) throws IlrApplicationException
cloneToBranch(IlrBaseline baselineSource, String name, boolean includeDependencies) (with includeDependencies = false) instead.IlrApplicationException - If an error occurred when converting the baseline.baselineSource - The baseline to copy.name - The name of the new branch.IlrBranch cloneToBranch(IlrBaseline baselineSource, java.lang.String name, boolean includeDependencies) throws IlrApplicationException
IlrApplicationException - If an error occurred when converting the baseline.baselineSource - The baseline to copy.name - The name of the new branch.includeDependencies - If true, all dependent baselines with the same name will also be cloned with the given name.
If false, the new branch is created with the same dependencies as the original baseline.© Copyright IBM Corp. 1987, 2017