|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.rules.teamserver.model.BranchHelper
public class BranchHelper
BranchHelper
handles branch specific operations.
Constructor Summary | |
---|---|
BranchHelper()
|
Method Summary | |
---|---|
static void |
applyMerge(IlrSession session,
List<MergeOperation> mergeOperations,
String versionComment)
Applies the merge operations defined in the list. |
protected static void |
fillDependencies(IlrSession session,
IlrBranch branch,
Map<String,IlrBranch> sortedDependencies)
|
static List<MergeOperation> |
getConflicts(List<MergeOperation> mergeOperations)
|
static List<MergeOperation> |
getLhsAdditions(List<MergeOperation> mergeOperations)
|
protected static IlrBaseline |
getLhsBranch(List<MergeOperation> mergeOperations)
|
static List<MergeOperation> |
getLhsDeletions(List<MergeOperation> mergeOperations)
|
static List<MergeOperation> |
getLhsUpdates(List<MergeOperation> mergeOperations)
|
static List<MergeOperation> |
getMergeOperations(IlrSession session,
IlrBaseline lhsBranch,
IlrBaseline rhsBranch)
Computes the list of differences between two branches. |
static Map<IlrBranch,List<MergeOperation>> |
getMergeOperationsWithDep(IlrSession session,
IlrBranch lhsBranch,
IlrBranch rhsBranch)
Computes the list of differences between two branches and their dependencies. |
static List<MergeOperation> |
getRhsAdditions(List<MergeOperation> mergeOperations)
|
protected static IlrBaseline |
getRhsBranch(List<MergeOperation> mergeOperations)
|
static List<MergeOperation> |
getRhsDeletions(List<MergeOperation> mergeOperations)
|
static List<MergeOperation> |
getRhsUpdates(List<MergeOperation> mergeOperations)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BranchHelper()
Method Detail |
---|
public static List<MergeOperation> getMergeOperations(IlrSession session, IlrBaseline lhsBranch, IlrBaseline rhsBranch) throws IlrApplicationException
IlrApplicationException
session
- The session.lhsBranch
- The "Left-Hand-Side" branch of the comparison.rhsBranch
- The "Right-Hand-Side" branch of the comparison.
public static Map<IlrBranch,List<MergeOperation>> getMergeOperationsWithDep(IlrSession session, IlrBranch lhsBranch, IlrBranch rhsBranch) throws IlrApplicationException
IlrApplicationException
session
- The session.lhsBranch
- The "Left-Hand-Side" branch of the comparison.rhsBranch
- The "Right-Hand-Side" branch of the comparison.
public static void applyMerge(IlrSession session, List<MergeOperation> mergeOperations, 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.
IlrApplicationException
session
- 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 List<MergeOperation> getLhsAdditions(List<MergeOperation> mergeOperations)
mergeOperations
- A set of merge operations.
public static List<MergeOperation> getLhsDeletions(List<MergeOperation> mergeOperations)
mergeOperations
- A set of merge operations.
public static List<MergeOperation> getLhsUpdates(List<MergeOperation> mergeOperations)
mergeOperations
- A set of merge operations.
public static List<MergeOperation> getRhsAdditions(List<MergeOperation> mergeOperations)
mergeOperations
- A set of merge operations.
public static List<MergeOperation> getRhsDeletions(List<MergeOperation> mergeOperations)
mergeOperations
- A set of merge operations.
public static List<MergeOperation> getRhsUpdates(List<MergeOperation> mergeOperations)
mergeOperations
- A set of merge operations.
public static List<MergeOperation> getConflicts(List<MergeOperation> mergeOperations)
mergeOperations
- A set of merge operations.
protected static IlrBaseline getLhsBranch(List<MergeOperation> mergeOperations)
protected static IlrBaseline getRhsBranch(List<MergeOperation> mergeOperations)
protected static void fillDependencies(IlrSession session, IlrBranch branch, Map<String,IlrBranch> sortedDependencies) throws IlrApplicationException
IlrApplicationException
|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |