|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.starbase.starteam.CheckinManager
Provides a way to check out multiple files, applying a consistent set of options across all files.
| Constructor Summary | |
CheckinManager(View view)
Deprecated. Use View.createCheckinManager() instead. |
|
CheckinManager(View view,
CheckinManager checkinManager)
Deprecated. |
|
CheckinManager(View view,
CheckinOptions options)
Deprecated. Use View.createCheckinManager(CheckinOptions) instead. |
|
| Method Summary | |
void |
addCheckinListener(CheckinListener listener)
Adds a listener for checkin-related events. |
void |
checkin(File file)
Checks in a single file from the default location. |
void |
checkin(Folder folder)
Checks in all the files in the given folder. |
void |
checkin(Folder folder,
int depth)
Checks in all the files in the given folder, and in all subfolders to the given depth. |
void |
checkin(Item[] files)
Checks in the given set of files. |
void |
checkin(ItemList files)
Checks in the given set of files. |
void |
checkin(Items files)
Checks in the given set of files. |
void |
checkinFrom(File file,
java.io.File workingFile)
Checks in a single file from an alternate location. |
void |
checkinFrom(File file,
java.io.InputStream stream)
Checks in a single file from an output stream. |
java.lang.Object |
clone()
Clone a checkin manager from this one |
boolean |
equals(java.lang.Object source)
returns true if this object instance is equal to the source |
CheckinOptions |
getOptions()
Gets the checkin options currently in effect. |
CheckinProgress |
getProgress()
Gets a snapshot of the state of the current checkin operation. |
int |
hashCode()
returns a unique hash for all instances of this type |
boolean |
isCanceled()
Indicates whether or not pending checkin operations have been canceled. |
boolean |
isRunning()
Determines whether or not there is currently a checkin operation in progress. |
void |
removeCheckinListener(CheckinListener listener)
Removes a listener for checkin-related events. |
void |
setCanceled()
Cancels any pending checkin operations. |
void |
setOptions(CheckinOptions checkinOptions)
Changes the checkin options currently in effect. |
java.lang.String |
toString()
Gets a string representation of this CheckinManager, useful for debugging. |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CheckinManager(View view)
view - The View containing the files to be checked in.
public CheckinManager(View view,
CheckinOptions options)
Note that individual options can be overridden on a file-by-file basis by registering a CheckinListener, and changing options as necessary in the onStartFile event handler.
view - The View containing the files to be checked in.options - The specific CheckinOtions to be used.CheckinOptions,
CheckinManager.addCheckinListener(com.starbase.starteam.CheckinListener),
CheckinListener.onStartFile(com.starbase.starteam.CheckinEvent)
public CheckinManager(View view,
CheckinManager checkinManager)
view - The View containing the files to be checked in.checkinManager - The CheckinManager whose options are to be copied.| Method Detail |
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic void setCanceled()
CheckinManager.isCanceled()public boolean isCanceled()
CheckinManager.setCanceled()public void checkin(File file)
file - The file to be checked in.
public void checkinFrom(File file,
java.io.File workingFile)
file - The file to be checked in.workingFile - The alternate working file.
public void checkinFrom(File file,
java.io.InputStream stream)
file - The file to be checked in.stream - The stream to which the checked in content is written.public void checkin(Items files)
files - The files to be checked in.Items,
ItemListManager.getItems(),
ItemListManager.getItemsForFolder(com.starbase.starteam.Folder, boolean),
ItemListManager.selectByLabel(com.starbase.starteam.Label),
ItemListManager.selectByQuery(com.starbase.starteam.QueryInfo)public void checkin(ItemList files)
files - The files to be checked in.ItemListpublic void checkin(Item[] files)
files - The files to be checked in.Folder.getItems(java.lang.String)public void checkin(Folder folder)
folder - The StarTeam folder whose files are to be checked in.Folder,
CheckinManager.checkin(Folder,int)
public void checkin(Folder folder,
int depth)
folder - The StarTeam folder whose files are to be checked in.depth - Indicates which subfolders also contain files to be checked in. Zero indicates
that no subfolders should be included; 1 indicates that this folder and its immediate child folders
should be included; -1 indicates that this folder and all child folders at any depth should
be included.public boolean isRunning()
public void addCheckinListener(CheckinListener listener)
listener - Application-specific event handler for checkin-related
events.CheckinListener,
CheckinEvent,
CheckinManager.removeCheckinListener(com.starbase.starteam.CheckinListener)public void removeCheckinListener(CheckinListener listener)
listener - A previously-registered event handler for checkin-related
events.CheckinManager.addCheckinListener(com.starbase.starteam.CheckinListener)public java.lang.String toString()
toString in class java.lang.Objectpublic CheckinOptions getOptions()
Note that individual options can be overridden on a file-by-file basis by registering a CheckinListener, and changing options as necessary in the onStartFile event handler.
CheckinOptions,
CheckinManager.addCheckinListener(com.starbase.starteam.CheckinListener),
CheckinListener.onStartFile(com.starbase.starteam.CheckinEvent)public void setOptions(CheckinOptions checkinOptions)
checkinOptions - The new checkin options.public CheckinProgress getProgress()
CheckinProgress,
CheckinManager.isRunning(),
CheckinEvent#getProgresspublic boolean equals(java.lang.Object source)
equals in class java.lang.Objectsource - Object the source to comapre with
public int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||