|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.CheckoutOptions
public final class CheckoutOptions
Maintains the checkout options used by CheckoutManager.
CheckoutManager| Nested Class Summary | |
|---|---|
static interface |
CheckoutOptions.ContentFilter
Allows an application to hook into the checkout process at a low level. |
static class |
CheckoutOptions.WebCacheCheckoutOptions
Maintains the checkout options used by WebCacheCheckoutManager. |
| Constructor Summary | |
|---|---|
CheckoutOptions(CheckoutOptions options)
Construct a CheckoutOptions object from the specified copy. |
|
CheckoutOptions(StarTeamClientOptions options)
Construct a CheckoutOptions object with default options from a StarTeamClientOptions object. |
|
CheckoutOptions(View view)
Construct a CheckoutOptions object with default options from the View. |
|
| Method Summary | |
|---|---|
boolean |
getBreakLock()
Returns true if another users lock will be broken during checkout |
DateTime |
getCheckoutByDate()
Get DateTime value for "checkout by date" option. |
Label |
getCheckoutByLabel()
Get the Label for the "checkout by Label" option. |
PromotionState |
getCheckoutByPromotionState()
Get the PromotionState ID for "checkout by PromotionState" option. |
int |
getCheckoutByViewVersion()
Get the View Version for "checkout by View Version" option. |
CheckoutOptions.ContentFilter |
getContentFilter()
Get the hook to be inserted after performing keyword expansion, eol conversion, etc. |
File.EOLFormat |
getEOLFormat()
Gets the end-of-line format to be used by working files. |
Encoding |
getFileEncoding()
Returns the "File Encoding" option value. |
boolean |
getForceCheckout()
Returns the "Force Checkout" option value. |
boolean |
getKeywordExpansionEnabled()
Determin whether keyword expansion in text files is enabled. |
ViewMember.LockType |
getLockType()
Return the type of lock to be used when checking out. |
boolean |
getMarkUnlockedFilesReadOnly()
Returns the "Mark Unlocked Files ReadOnly" option value. |
boolean |
getRestoreFileOnError()
Determine whether to restore previous working file if an error occurs during a checkout. |
boolean |
getTimeStampNow()
Return whether the current time is used as the last modified time. |
boolean |
getUpdateStatus()
Determine whether to update status information after a successful checkout. |
boolean |
isByDate()
Determines whether "checkout by date" option is used. |
boolean |
isByLabel()
Determines whether "checkout by Label" option is used. |
boolean |
isByPromotionState()
Determines whether "checkout by PromotionState" option is used. |
boolean |
isByViewVersion()
Determines whether "checkout by view version" option is used. |
boolean |
isFileSkipped()
Returns whether to skip checking out files or the file associated with this CheckoutOptions object. |
boolean |
isTip()
Determine which file revision is checked out. |
void |
setBreakLock(boolean breakLock)
set to True to break another users lock during checkout |
void |
setCheckoutByDate(DateTime d)
Set to "checkout by date" on the given DateTime value. |
void |
setCheckoutByLabel(Label label)
Set to "checkout by Label" on the given Label. |
void |
setCheckoutByPromotionState(PromotionState state)
Set to "checkout by PromotionState" on the given PromotionState ID. |
void |
setCheckoutByViewVersion(int viewVersion)
Set to "checkout by View Version" on the given View Version. |
void |
setCheckoutTip()
Determines which file revision is checked out. |
void |
setContentFilter(CheckoutOptions.ContentFilter filter)
Set the hook inserted after performing keyword expansion, eol conversion, etc. |
void |
setEOLFormat(File.EOLFormat format)
Sets the EOL format to be used by working files. |
void |
setFileEncoding(Encoding sEncoding)
Sets the "File Encoding" option value. |
void |
setFileSkipped(boolean bFileSkipped)
Sets whether to skip checking out files or the file associated with this CheckoutOptions object. |
void |
setForceCheckout(boolean bForceCheckout)
Sets the "Force Checkout" option value. |
void |
setKeywordExpansionEnabled(boolean bEnabled)
Set to enable keyword expansion in text files. |
void |
setLockType(ViewMember.LockType lockType)
Set the type of lock to be used when checking out. |
void |
setMarkUnlockedFilesReadOnly(boolean bMarkUnlockedFilesReadOnly)
Sets the "Mark Unlocked Files ReadOnly" option value. |
void |
setRestoreFileOnError(boolean bEnabled)
Set to restore previous working file if an error occurs during a checkout. |
void |
setTimeStampNow(boolean bTimeStampNow)
Set to use the current time as the last modified time. |
void |
setUpdateStatus(boolean bEnabled)
Set to whether to update status information after a successful checkout. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CheckoutOptions(View view)
view - a View object where the values of the options are picked up.CheckoutOptions.getEOLFormat(),
KeywordExpansionEnabled,
CheckoutOptions.getKeywordExpansionEnabled(),
MarkUnlockedFilesReadOnly,
CheckoutOptions.getMarkUnlockedFilesReadOnly(),
FileEncoding,
CheckoutOptions.getFileEncoding(),
CheckoutOptions.setFileEncoding(Encoding),
CheckoutManager.getOptions(),
Viewpublic CheckoutOptions(StarTeamClientOptions options)
options - a StarTeamClientOptions where the values of the options are
picked up.CheckoutOptions.getLockType(),
TimeStampNow,
CheckoutOptions.getTimeStampNow(),
DefaultEOLFormat,
CheckoutOptions.getEOLFormat(),
MarkUnlockedFilesReadOnly,
CheckoutOptions.getMarkUnlockedFilesReadOnly(),
FileEncoding,
CheckoutOptions.getFileEncoding(),
CheckoutOptions.setFileEncoding(Encoding),
CheckoutManager.getOptions(),
StarTeamClientOptions.loadDefault()public CheckoutOptions(CheckoutOptions options)
options - a CheckoutOptions copied from another instance.CheckoutManager.getOptions()| Method Detail |
|---|
public void setLockType(ViewMember.LockType lockType)
lockType - the type of lock to be used when checking out, one of the
values supported by Item.LockType.ViewMember.LockTypepublic ViewMember.LockType getLockType()
ViewMember.LockTypepublic boolean getBreakLock()
public void setBreakLock(boolean breakLock)
breakLock - set to True to break another users lock during checkoutpublic void setTimeStampNow(boolean bTimeStampNow)
bTimeStampNow - if true will use current time.public boolean getTimeStampNow()
public File.EOLFormat getEOLFormat()
Default value is EOLFormat.PLATFORM, which uses the native platform end-of-line format.
null indicates that EOL conversion is disabled, which results in working files having the platform EOL.
Ignored for binary files, and for files with a fixed EOL format.
public void setEOLFormat(File.EOLFormat format)
Default value is EOLFormat.PLATFORM, which uses the native platform end-of-line format.
null indicates that EOL conversion is disabled, which results in working files having the platform EOL.
Ignored for binary files, and for files with a fixed EOL format.
format - The desired end-of-line format, or null to disable end-of-line
conversion for files that don't have a fixed format.public void setUpdateStatus(boolean bEnabled)
bEnabled - True to update status information after a successful checkout;
false, otherwise.public boolean getMarkUnlockedFilesReadOnly()
public void setMarkUnlockedFilesReadOnly(boolean bMarkUnlockedFilesReadOnly)
bMarkUnlockedFilesReadOnly - the "Mark Unlocked Files ReadOnly" option value.CheckoutListener.startFile(com.starteam.events.CheckoutEvent)public boolean getForceCheckout()
public void setForceCheckout(boolean bForceCheckout)
bForceCheckout - the "Force Checkout" option value.public Encoding getFileEncoding()
public void setFileEncoding(Encoding sEncoding)
sEncoding - the "File Encoding" option value.CheckoutListener.startFile(com.starteam.events.CheckoutEvent)public boolean isFileSkipped()
public void setFileSkipped(boolean bFileSkipped)
bFileSkipped - whether to skip checking out files or the file associated with
this CheckoutOptions object.CheckoutListener.startFile(com.starteam.events.CheckoutEvent)public boolean getUpdateStatus()
public void setKeywordExpansionEnabled(boolean bEnabled)
bEnabled - True to use keyword expansion in text files; false, otherwise.public boolean getKeywordExpansionEnabled()
public void setCheckoutTip()
CheckoutOptions.isTip(),
CheckoutOptions.setCheckoutByDate(com.starteam.util.DateTime),
CheckoutOptions.setCheckoutByLabel(com.starteam.Label),
CheckoutOptions.setCheckoutByPromotionState(com.starteam.PromotionState)public boolean isTip()
public void setCheckoutByDate(DateTime d)
d - the DateTime value to be used for the "checkout by date"
option.CheckoutOptions.isByDate(),
CheckoutOptions.setCheckoutByLabel(com.starteam.Label),
CheckoutOptions.setCheckoutByPromotionState(com.starteam.PromotionState)public boolean isByDate()
CheckoutOptions.setCheckoutByDate(com.starteam.util.DateTime),
CheckoutOptions.setCheckoutByLabel(com.starteam.Label),
CheckoutOptions.setCheckoutByPromotionState(com.starteam.PromotionState)public DateTime getCheckoutByDate()
CheckoutOptions.isByDate(),
CheckoutOptions.setCheckoutByDate(com.starteam.util.DateTime),
CheckoutOptions.setCheckoutByLabel(com.starteam.Label),
CheckoutOptions.setCheckoutByPromotionState(com.starteam.PromotionState),
CheckoutOptions.setCheckoutByViewVersion(int)public void setCheckoutByLabel(Label label)
label - the Label to be used for the "checkout by Label" option.CheckoutOptions.isByLabel(),
CheckoutOptions.setCheckoutByDate(com.starteam.util.DateTime),
CheckoutOptions.setCheckoutByPromotionState(com.starteam.PromotionState),
CheckoutOptions.setCheckoutByViewVersion(int)public boolean isByLabel()
CheckoutOptions.setCheckoutByDate(com.starteam.util.DateTime),
CheckoutOptions.setCheckoutByLabel(com.starteam.Label),
CheckoutOptions.setCheckoutByPromotionState(com.starteam.PromotionState),
CheckoutOptions.setCheckoutByViewVersion(int)public Label getCheckoutByLabel()
CheckoutOptions.isByLabel(),
CheckoutOptions.setCheckoutByDate(com.starteam.util.DateTime),
CheckoutOptions.setCheckoutByLabel(com.starteam.Label),
CheckoutOptions.setCheckoutByPromotionState(com.starteam.PromotionState)public void setCheckoutByPromotionState(PromotionState state)
state - the PromotionState to be used for the
"checkout by PromotionState" option.CheckoutOptions.isByPromotionState(),
CheckoutOptions.setCheckoutByDate(com.starteam.util.DateTime),
CheckoutOptions.setCheckoutByLabel(com.starteam.Label),
CheckoutOptions.setCheckoutByViewVersion(int)public boolean isByPromotionState()
CheckoutOptions.setCheckoutByDate(com.starteam.util.DateTime),
CheckoutOptions.setCheckoutByLabel(com.starteam.Label),
CheckoutOptions.setCheckoutByPromotionState(com.starteam.PromotionState),
CheckoutOptions.setCheckoutByViewVersion(int)public PromotionState getCheckoutByPromotionState()
CheckoutOptions.isByPromotionState(),
CheckoutOptions.setCheckoutByDate(com.starteam.util.DateTime),
CheckoutOptions.setCheckoutByLabel(com.starteam.Label),
CheckoutOptions.setCheckoutByPromotionState(com.starteam.PromotionState)public boolean isByViewVersion()
CheckoutOptions.setCheckoutByViewVersion(int),
CheckoutOptions.getCheckoutByViewVersion()public void setCheckoutByViewVersion(int viewVersion)
viewVersion - the view version to be used for the "checkout by View Version"
option.CheckoutOptions.isByViewVersion(),
CheckoutOptions.getCheckoutByViewVersion()public int getCheckoutByViewVersion()
CheckoutOptions.isByViewVersion(),
\public void setRestoreFileOnError(boolean bEnabled)
bEnabled - True if the previous working file should be restored if an
error occurs during a checkout; otherwise, false.public boolean getRestoreFileOnError()
public void setContentFilter(CheckoutOptions.ContentFilter filter)
filter - The ContentFilter object to be used after performing keyword
expansion, eol conversion, etc.public CheckoutOptions.ContentFilter getContentFilter()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||