public class BranchHelper
extends java.lang.Object
BranchHelper handles branch specific operations.| Constructor and Description |
|---|
BranchHelper() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<IlrElementHandle> |
applyMerge(IlrSession session,
java.util.List<MergeOperation> mergeOperations,
java.lang.String versionComment)
Applies the merge operations defined in the list.
|
protected static void |
fillDependencies(IlrSession session,
IlrBranch branch,
java.util.Map<java.lang.String,IlrBranch> sortedDependencies) |
static java.util.List<MergeOperation> |
getConflicts(java.util.List<MergeOperation> mergeOperations) |
static java.util.List<MergeOperation> |
getLhsAdditions(java.util.List<MergeOperation> mergeOperations) |
protected static IlrBaseline |
getLhsBranch(java.util.List<MergeOperation> mergeOperations) |
static java.util.List<MergeOperation> |
getLhsDeletions(java.util.List<MergeOperation> mergeOperations) |
static java.util.List<MergeOperation> |
getLhsUpdates(java.util.List<MergeOperation> mergeOperations) |
static java.util.List<MergeOperation> |
getMergeOperations(IlrSession session,
IlrBaseline lhsBranch,
IlrBaseline rhsBranch)
Computes the list of differences between two branches.
|
static java.util.Map<IlrBranch,java.util.List<MergeOperation>> |
getMergeOperationsWithDep(IlrSession session,
IlrBranch lhsBranch,
IlrBranch rhsBranch)
Computes the list of differences between two branches and their dependencies.
|
static java.util.List<MergeOperation> |
getRhsAdditions(java.util.List<MergeOperation> mergeOperations) |
protected static IlrBaseline |
getRhsBranch(java.util.List<MergeOperation> mergeOperations) |
static java.util.List<MergeOperation> |
getRhsDeletions(java.util.List<MergeOperation> mergeOperations) |
static java.util.List<MergeOperation> |
getRhsUpdates(java.util.List<MergeOperation> mergeOperations) |
static void |
lockBranchesWithDep(IlrSession session,
IlrBranch lhsBranch,
IlrBranch rhsBranch) |
static void |
unlockBranchesWithDep(IlrSession session,
IlrBranch lhsBranch,
IlrBranch rhsBranch) |
public static java.util.List<MergeOperation> getMergeOperations(IlrSession session, IlrBaseline lhsBranch, IlrBaseline rhsBranch) throws IlrApplicationException
IlrApplicationExceptionsession - The session.lhsBranch - The "Left-Hand-Side" branch of the comparison.rhsBranch - The "Right-Hand-Side" branch of the comparison.public static void lockBranchesWithDep(IlrSession session, IlrBranch lhsBranch, IlrBranch rhsBranch) throws IlrApplicationException, ilog.rules.teamserver.model.IlrAPIException
IlrApplicationExceptionilog.rules.teamserver.model.IlrAPIExceptionpublic static void unlockBranchesWithDep(IlrSession session, IlrBranch lhsBranch, IlrBranch rhsBranch) throws IlrApplicationException, ilog.rules.teamserver.model.IlrAPIException
IlrApplicationExceptionilog.rules.teamserver.model.IlrAPIExceptionpublic static java.util.Map<IlrBranch,java.util.List<MergeOperation>> getMergeOperationsWithDep(IlrSession session, IlrBranch lhsBranch, IlrBranch rhsBranch) throws IlrApplicationException
IlrApplicationExceptionsession - The session.lhsBranch - The "Left-Hand-Side" branch of the comparison.rhsBranch - The "Right-Hand-Side" branch of the comparison.public static java.util.List<IlrElementHandle> applyMerge(IlrSession session, java.util.List<MergeOperation> mergeOperations, java.lang.String versionComment) throws IlrApplicationException
getMergeOperations method.
Several operation lists retrieved by different calls to getMergeOperations cannot be mixed and applied using
a single call to this method. More specifically, all operations in the list should define the same Left-Hand-Side and
Right-Hand-Side branches.IlrApplicationExceptionsession - The session.mergeOperations - A set of merge operations.versionComment - A comment that will be used for each new element version created by this method.public static java.util.List<MergeOperation> getLhsAdditions(java.util.List<MergeOperation> mergeOperations)
mergeOperations - A set of merge operations.public static java.util.List<MergeOperation> getLhsDeletions(java.util.List<MergeOperation> mergeOperations)
mergeOperations - A set of merge operations.public static java.util.List<MergeOperation> getLhsUpdates(java.util.List<MergeOperation> mergeOperations)
mergeOperations - A set of merge operations.public static java.util.List<MergeOperation> getRhsAdditions(java.util.List<MergeOperation> mergeOperations)
mergeOperations - A set of merge operations.public static java.util.List<MergeOperation> getRhsDeletions(java.util.List<MergeOperation> mergeOperations)
mergeOperations - A set of merge operations.public static java.util.List<MergeOperation> getRhsUpdates(java.util.List<MergeOperation> mergeOperations)
mergeOperations - A set of merge operations.public static java.util.List<MergeOperation> getConflicts(java.util.List<MergeOperation> mergeOperations)
mergeOperations - A set of merge operations.protected static IlrBaseline getLhsBranch(java.util.List<MergeOperation> mergeOperations)
protected static IlrBaseline getRhsBranch(java.util.List<MergeOperation> mergeOperations)
protected static void fillDependencies(IlrSession session, IlrBranch branch, java.util.Map<java.lang.String,IlrBranch> sortedDependencies) throws IlrApplicationException
IlrApplicationException© Copyright IBM Corp. 1987, 2017