|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.viewcomparemerge.Options
public class Options
A set of user preferences that guide a view compare/merge operation. For any invocation of view compare and/or merge, these preferences may be overridden. The intent is that this set of preferences can be stored persistently and retrieved when setting up a view compare/merge operation, and that the set of options reflects what this user will usually want for the operation.
| Constructor Summary | |
|---|---|
Options()
Constructs a set of Options with default values. |
|
Options(Options theOther)
Create an Options instance by copying the contents of another |
|
| Method Summary | |
|---|---|
void |
excludePropertyFromMerge(Property p)
Specify a property to exclude from a VCM compare & merge Excluding properties allows an application fine grained control over which properties should be considered relevant to a VCM View Compare Merge Session. |
ActionOverride[] |
getActionOverrides()
An array of ActionOverride's, in the order in which they have been set |
boolean |
getAutoMergeFiles()
Returns true if file pairs that have no conflicts will be automatically merged. |
boolean |
getAutoMergeProperties()
Returns true if property pairs that have no conflicts will be automatically merged. |
boolean |
getBreakLocksAutomatically()
Returns true if locks will automatically be broken as needed to check in merged revisions. |
CheckinOptions |
getCheckinOptions()
Returns the CheckinOptions to be used for committing the workspace session |
CheckoutOptions |
getCheckoutOptions()
Returns the CheckoutOptions to be used for committing the workspace session |
boolean |
getCheckTargetFoldersForFloatingShares()
Determines whether or not VCM will check target folders for floating child shares, and fail if any are found. |
static Options |
getCustomOptions(Server s,
java.lang.String name)
Look for a custom merge type by name on the specified server, return a fully configured set of options after parsing the .xml. |
static PropertyCollection |
getExcludablePropertiesForMerge(Item.Type type)
returns the set of properties (of a specified type) that may be excluded from a VCM compare & merge Excluding properties allows an application fine grained control over which properties should be considered relevant to a VCM View Compare Merge Session. |
boolean |
getFindNotInViewFolders()
Returns true if not in view folders should be considered during a workspace compare |
boolean |
getFixFloatingChildShares()
Indicates whether or not shares that float from the source view to the target view will automatically be detected during the compare phase and fixed during the commit. |
boolean |
getIgnoreMergePoints()
Returns true if all merge points should be ignored for comparisons. |
boolean |
getLockSourceForDifference()
Returns true if a source item will be locked when a difference is detected. |
boolean |
getLockTargetForDifference()
Returns true if a target item will be locked when a difference is detected. |
boolean |
getMatchFilesByFileName()
Returns true if files (or folders) with the same name are to be considered matched, even if their object and/or item ids do not match. |
PropertyCollection |
getPropertiesExcludedForMerge()
Returns the set of properties excluded from a VCM Merge Only user modifiable &/or attachment properties may be excluded |
java.lang.String |
getProperty(java.lang.String key)
Searches for the property with the specified key in this property list. |
java.lang.String[] |
getPropertyNames()
Returns an array of all the keys in this property list, |
boolean |
getTreatFileNamesAsCaseSensitive()
Returns true if file (or folder) names are compared in a case-sensitive manner. |
boolean |
getVerboseDifferences(Item.Type type)
Determines whether or not a difference is generated for every matched pair of source and target items, whether or not the match is considered a difference. |
boolean |
getVerboseProcessLinks()
Determines whether or not a commit operation should create process links for all file and folder operations that add or modify target items. |
static Options |
getWorkstationDefault()
Returns the default Options for this workstation |
boolean |
isExcludedFromMerge(Property p)
returns true if the specified property has been excluded from the merge |
void |
setAutoMergeFiles(boolean bAutoMerge)
Set whether file pairs that have no conflicts should be automatically merged. |
void |
setAutoMergeProperties(boolean bAutoMerge)
Set whether property pairs that have no conflicts should be automatically merged. |
void |
setBreakLocksAutomatically(boolean bBreakLocks)
Set whether to automatically break locks as necessary to check in merged revisions. |
void |
setCheckinOptions(CheckinOptions options)
Sets the CheckinOptions to be used for committing the workspace session |
void |
setCheckoutOptions(CheckoutOptions options)
Sets the CheckoutOptions to be used for committing the workspace session |
void |
setCheckTargetFoldersForFloatingShares(boolean bEnabled)
Determines whether or not VCM will check target folders for floating child shares, and fail if any are found. |
void |
setDefaultAction(DifferenceType type,
MergeAction action)
Changes the default action in a given situation. |
void |
setDefaultAction(MatchState state,
MergeAction action)
Changes the default action in a given situation. |
void |
setExcludePropertyFromMerge(Property p,
boolean exclude)
Specify a property to exclude from a VCM compare & merge (or to re-include it once again) Excluding properties allows an application fine grained control over which properties should be considered relevant to a VCM View Compare Merge Session. |
void |
setFindNotInViewFolders(boolean bFindNotInViewFolders)
Sets whether to consider Not In View Folders when running a workspace compare. |
void |
setFixFloatingChildShares(boolean bFix)
Determines whether or not shares that float from the source view to the target view will automatically be detected during the compare phase and fixed during the commit. |
void |
setIgnoreMergePoints(boolean bIgnoreMergePoints)
Set whether all merge points should be ignored for comparisons. |
void |
setLockSourceForDifference(boolean bLock)
Set whether to lock the source item when a difference is detected. |
void |
setLockTargetForDifference(boolean bLock)
Set whether to lock the target item when a difference is detected. |
void |
setMatchFilesByFileName(boolean bMatchFilesByFileName)
Set whether files (or folders) with the same name are to be considered matched, even when their object and/or item ids do not match. |
java.lang.Object |
setProperty(java.lang.String key,
java.lang.String value)
Sets a value for the property identified by the specified key |
void |
setTreatFileNamesAsCaseSensitive(boolean bCaseSensitive)
Set whether file (or folder) names should be compared in a case-sensitive manner. |
void |
setVerboseDifferences(Item.Type type,
boolean bVerbose)
Determines whether or not a difference is generated for every matched pair of source and target items of a given type, whether or not the match is considered a difference. |
void |
setVerboseProcessLinks(boolean bEnabled)
Determines whether or not a commit operation should create process links for all file and folder operations that add or modify target items. |
void |
setWorkstationDefault()
Saves the current set of options as the defaults for this workstation. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Options()
public Options(Options theOther)
theOther - Options the other Options instance| Method Detail |
|---|
public static Options getCustomOptions(Server s,
java.lang.String name)
s - the logged in server on which to find the custom vcm .xml
in the StarFlow Extensions Projectname - the name of a custom merge type to lookup
public static Options getWorkstationDefault()
public void setWorkstationDefault()
throws java.io.IOException
java.io.IOExceptionpublic CheckinOptions getCheckinOptions()
public void setCheckinOptions(CheckinOptions options)
options - the CheckinOptions to be used for committing the workspace
sessionpublic CheckoutOptions getCheckoutOptions()
public void setCheckoutOptions(CheckoutOptions options)
options - the CheckoutOptions to be used for committing the workspace
sessionpublic void setFindNotInViewFolders(boolean bFindNotInViewFolders)
bFindNotInViewFolders - true to consider Not In View folderspublic boolean getFindNotInViewFolders()
public void setMatchFilesByFileName(boolean bMatchFilesByFileName)
bMatchFilesByFileName - true to match on name.public boolean getMatchFilesByFileName()
public void setTreatFileNamesAsCaseSensitive(boolean bCaseSensitive)
bCaseSensitive - true if file (or folder) names are case sensitive.public boolean getTreatFileNamesAsCaseSensitive()
public void setIgnoreMergePoints(boolean bIgnoreMergePoints)
bIgnoreMergePoints - true to ignore merge points.public boolean getIgnoreMergePoints()
public void setAutoMergeFiles(boolean bAutoMerge)
bAutoMerge - true if file pairs that have no conflicts should be
automatically merged.public boolean getAutoMergeFiles()
public void setAutoMergeProperties(boolean bAutoMerge)
bAutoMerge - true if property pairs that have no conflicts should be
automatically merged.public boolean getAutoMergeProperties()
public static PropertyCollection getExcludablePropertiesForMerge(Item.Type type)
type - the Type whose subset of properties may be excluded
public PropertyCollection getPropertiesExcludedForMerge()
public void excludePropertyFromMerge(Property p)
p - A user modifiable or attachment property that must be excludes
from the VCM
public void setExcludePropertyFromMerge(Property p,
boolean exclude)
p - A user modifiable or attachment property that must be excludes
from the VCMexclude - true to exclude it from the merge, false to include it once
againpublic boolean isExcludedFromMerge(Property p)
p - a property to test
public void setBreakLocksAutomatically(boolean bBreakLocks)
bBreakLocks - true to automatically break locks as needed.public boolean getBreakLocksAutomatically()
public void setLockSourceForDifference(boolean bLock)
bLock - true to to lock the source item when a difference is detected.public boolean getLockSourceForDifference()
public void setLockTargetForDifference(boolean bLock)
bLock - true to to lock the target item when adDifference is detected.public boolean getLockTargetForDifference()
public void setFixFloatingChildShares(boolean bFix)
bFix - true if shares that float from the source view to the target
view will automatically be detected during the compare phase
and fixed during the commit.public boolean getFixFloatingChildShares()
public void setVerboseDifferences(Item.Type type,
boolean bVerbose)
Verbose differences are off by default. If you change the scope of a session, then verbose differences are enabled for all types that are in scope, but not fully in scope.
type - An item type.bVerbose - True to generate an ItemDifference for every matched pair of
source and target items of the given type; false to generate
an ItemDifference only when a true difference is detected.public boolean getVerboseDifferences(Item.Type type)
Verbose differences are off by default, but are enabled for sessions whose scope is not the entire source view.
type - the type for which verbose differences are being set
Session.setScope(com.starteam.viewcomparemerge.Scope)public boolean getVerboseProcessLinks()
public void setVerboseProcessLinks(boolean bEnabled)
bEnabled - true if commit operations should create process links for all
file and folder operations that add or modify target items;
false if process links are created only for file checkins
(which is consistent with the rest of StarTeam). Verbose
process links are enabled by default.public boolean getCheckTargetFoldersForFloatingShares()
public void setCheckTargetFoldersForFloatingShares(boolean bEnabled)
bEnabled - true if VCM will check target folders for floating child
shares, and fail if any are found. Enabled by default.public ActionOverride[] getActionOverrides()
public void setDefaultAction(DifferenceType type,
MergeAction action)
Note that there may be one and only one default action for a given DifferenceType
type - The DifferenceType for which the default action is to be
changed.action - The new default action for the given DifferenceType, or null
to restore the default action to the engine's default value.MergeAction
public void setDefaultAction(MatchState state,
MergeAction action)
Note that if multiple calls to setDefaultAction() are made, the order is significant. If two overrides are both relevant to a given ItemDifference, the most recently specified one takes precedence.
state - The MatchState for which the default action is to be changed.action - The new default action for the given MatchState, or null to
restore the default action to the engine's default value.MergeActionpublic java.lang.String getProperty(java.lang.String key)
key - String the key to search for
public java.lang.Object setProperty(java.lang.String key,
java.lang.String value)
key - String the key for which a value needs to be setvalue - String the value to set
public java.lang.String[] getPropertyNames()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||