|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.CheckinOptions
public final class CheckinOptions
Maintains the checkin options used by CheckinManager.
CheckinManager| Nested Class Summary | |
|---|---|
static class |
CheckinOptions.WebCacheCheckinOptions
Maintains the checkin options used by WebCacheCheckinManager. |
| Constructor Summary | |
|---|---|
CheckinOptions(CheckinOptions options)
Construct a CheckinOptions object with the same options as the given one. |
|
CheckinOptions(StarTeamClientOptions options)
Construct a CheckinOptions object with default options from a StarTeamClientOptions object. |
|
CheckinOptions(View view)
Construct a CheckinOptions object with default options from the View. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object another)
Returns true if the specified Object identifies the same
exact CheckinOptions. |
boolean |
getAttachNewLabelsOnly()
Determines under what conditions the specified revision label should be attached to the new file revision on checkin. |
boolean |
getBreakLock()
Returns true if another users lock will be broken during checkin |
File.CharacterSet |
getCharacterSet()
Gets the Character Set to be used for this file. |
java.lang.String |
getCheckinReason()
Returns the "Checkin Reason" option value. |
ChangeRequest[] |
getCRsToMarkFixed()
Returns the ChangeRequests to mark fixed. |
boolean |
getDeleteWorkingFile()
Returns the "Delete Working File" option value. |
File.EOLFormat |
getEOLFormat()
Gets the End-of-Line format to be used for this file. |
Encoding |
getFileEncoding()
Returns the "File Encoding" option value. |
boolean |
getForceCheckin()
Returns the "Force Checkin" option value. |
boolean |
getKeywordExpansionEnabled()
Determine whether keyword expansion in text files is enabled. |
ViewMember.LockType |
getLockType()
Return the type of lock to be used when checking in. |
boolean |
getMarkProcessItemComplete()
Returns whether to mark the process item complete. |
boolean |
getMarkUnlockedFilesReadOnly()
Returns the "Mark Unlocked Files ReadOnly" option value. |
Item |
getProcessItem()
Returns the process item to link and pin. |
boolean |
getRestoreFileOnError()
Determine whether to restore previous working file if an error occurs during a checkin. |
Label |
getRevisionLabel()
Returns the revision label to attach. |
boolean |
getUpdateStatus()
Determine whether to update status information after a successful checkin. |
int |
hashCode()
returns a unique hash for this instance |
boolean |
isFileSkipped()
Returns whether to skip checking in files or the file associated with this CheckinOptions object. |
void |
setAttachNewLabelsOnly(boolean bNewLabelsOnly)
Determines under what conditions the specified revision label should be attached to the new file revision on checkin. |
void |
setBreakLock(boolean breakLock)
set to True to break another users lock during checkin |
void |
setCharacterSet(File.CharacterSet encoding)
Sets the Character Set to be used for this file. |
void |
setCheckinReason(java.lang.String sCheckinReason)
Sets the "Checkin Reason" option value. |
void |
setCRsToMarkFixed(ChangeRequest[] changeRequests)
Sets the ChangeRequests to mark fixed. |
void |
setDeleteWorkingFile(boolean bEnabled)
Sets the "Delete Working File" option value. |
void |
setEOLFormat(File.EOLFormat format)
Sets the End-of-Line format to be used for this file. |
void |
setFileEncoding(Encoding sEncoding)
Sets the "File Encoding" option value. |
void |
setFileSkipped(boolean bFileSkipped)
Sets whether to skip checking in files or the file associated with this CheckinOptions object. |
void |
setForceCheckin(boolean bEnabled)
Sets the "Force Checkin" 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 in. |
void |
setMarkProcessItemComplete(boolean bEnabled)
Sets whether to mark the process item complete. |
void |
setMarkUnlockedFilesReadOnly(boolean bMarkUnlockedFilesReadOnly)
Sets the "Mark Unlocked Files ReadOnly" option value. |
void |
setProcessItem(Item processItem)
Sets the process item to link and pin. |
void |
setRestoreFileOnError(boolean bEnabled)
Set to restore previous working file if an error occurs during a checkin. |
void |
setRevisionLabel(Label revisionLabel)
Sets the revision label to attach. |
void |
setUpdateStatus(boolean bEnabled)
Set whether to update status information after a successful checkin. |
java.lang.String |
toString()
returns a String representation of this object for debugging |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CheckinOptions(View view)
view - a View object where the values of the options are picked up.
The following options are assigned values
KeywordExpansionEnabledCheckinOptions.getKeywordExpansionEnabled(),
MarkProcessItemComplete,
CheckinOptions.getMarkProcessItemComplete(),
AttachNewLabelsOnly,
CheckinOptions.getAttachNewLabelsOnly(),
FileEncoding,
CheckinOptions.getFileEncoding(),
CheckinOptions.setFileEncoding(Encoding),
CheckinManager.getOptions(),
Viewpublic CheckinOptions(StarTeamClientOptions options)
options - a StarTeamClientOptions where the values of the options are
picked up.
LockTypeCheckinOptions.getLockType(),
FileEncoding,
CheckinOptions.getFileEncoding(),
CheckinOptions.setFileEncoding(Encoding),
CheckinManager.getOptions(),
StarTeamClientOptions.loadDefault()public CheckinOptions(CheckinOptions options)
options - a CheckinOptions where the values of the options are picked
up.CheckinManager.getOptions()| Method Detail |
|---|
public void setLockType(ViewMember.LockType lockType)
lockType - the type of lock to be used when checking in, 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 checkinpublic File.EOLFormat getEOLFormat()
Default value is null, which leaves any previously specified End-of-Line format unchanged. If the End-of-Line format was not previously specified, the value will be inferred automatically from the file content. The End-of-Line format is ignored for binary files.
File.getEOLFormat()public void setCharacterSet(File.CharacterSet encoding)
encoding - The desired Character Set. Specifying null leaves any
previously specified Character Set unchanged. If the Character
Set was not previously specified, the value will be inferred
automatically from the file content.File.setCharacterSet(com.starteam.File.CharacterSet)public File.CharacterSet getCharacterSet()
Default value is null, which leaves any previously specified Character Set unchanged. If the Character Set was not previously specified, the value will be inferred automatically from the file content.
File.getCharacterSet()public void setEOLFormat(File.EOLFormat format)
format - The desired End-of-Line format. Specifying null leaves any
previously specified End-of-Line format unchanged. If the
End-of-Line format was not previously specified, the value
will be inferred automatically from the file content. The
End-of-Line format is ignored for binary files.File.setEOLFormat(com.starteam.File.EOLFormat)public boolean getMarkUnlockedFilesReadOnly()
public void setMarkUnlockedFilesReadOnly(boolean bMarkUnlockedFilesReadOnly)
bMarkUnlockedFilesReadOnly - the "Mark Unlocked Files ReadOnly" option value.public void setUpdateStatus(boolean bEnabled)
bEnabled - True to update status information after a successful checkin;
false, otherwise.public boolean getMarkProcessItemComplete()
public void setMarkProcessItemComplete(boolean bEnabled)
bEnabled - True if the associated process item is to be marked complete;
false, otherwise.public boolean getAttachNewLabelsOnly()
public void setAttachNewLabelsOnly(boolean bNewLabelsOnly)
bNewLabelsOnly - true If the specified revision label is only attached to the
new file revision if it is not already attached to an earlier
revision; false (the default) if a previously attached label
is moved to the new revision.public Item getProcessItem()
public void setProcessItem(Item processItem)
processItem - the process item to link and pin.public Label getRevisionLabel()
public void setRevisionLabel(Label revisionLabel)
revisionLabel - the revision label to attach.public Encoding getFileEncoding()
public void setFileEncoding(Encoding sEncoding)
sEncoding - the "File Encoding" option value.CheckinListener.startFile(com.starteam.events.CheckinEvent)public boolean getForceCheckin()
public void setForceCheckin(boolean bEnabled)
bEnabled - if true will enable force checkin.public boolean isFileSkipped()
public void setFileSkipped(boolean bFileSkipped)
bFileSkipped - whether to skip checking in files or the file associated with
this CheckinOptions object.CheckinListener.startFile(com.starteam.events.CheckinEvent)public boolean getUpdateStatus()
public void setKeywordExpansionEnabled(boolean bEnabled)
bEnabled - True to use keyword expansion in text files; false, otherwise.public boolean getKeywordExpansionEnabled()
public ChangeRequest[] getCRsToMarkFixed()
public void setCRsToMarkFixed(ChangeRequest[] changeRequests)
changeRequests - the ChangeRequests to mark fixed.public java.lang.String getCheckinReason()
public void setCheckinReason(java.lang.String sCheckinReason)
sCheckinReason - the "Checkin Reason" option value.public boolean getDeleteWorkingFile()
public boolean equals(java.lang.Object another)
Object identifies the same
exact CheckinOptions.
equals in class java.lang.Objectanother - the object to be compared to for equality
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic void setDeleteWorkingFile(boolean bEnabled)
bEnabled - if true will enable delete working file.public void setRestoreFileOnError(boolean bEnabled)
bEnabled - True if the previous working file should be restored if an
error occurs during a checkin; otherwise, false.public boolean getRestoreFileOnError()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||