|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthudson.plugins.starteam.StarTeamConnection
public class StarTeamConnection
StarTeamActor is a class that implements connecting to a StarTeam repository, to a given project, view and folder. Add functionality allowing to delete non starteam file in folder while performing listing of all files. and to perform creation of changelog file during the checkout
| Constructor Summary | |
|---|---|
StarTeamConnection(java.lang.String hostName,
int port,
java.lang.String userName,
java.lang.String password,
java.lang.String projectName,
java.lang.String viewName,
java.lang.String folderName)
Default constructor |
|
| Method Summary | |
|---|---|
java.util.Date |
calculatePreviousDateWithTimeZoneCheck(java.util.Date aPreviousBuildDate,
java.util.Date aCurrentBuildDate)
synchronize last build date with starteam server timezone. |
void |
checkOut(java.util.Collection<com.starbase.starteam.File> filesToCheckOut,
java.io.PrintStream logger)
checkout the files from starteam |
void |
close()
Close the connection. |
boolean |
equals(java.lang.Object object)
|
protected void |
finalize()
|
java.util.Map<java.lang.String,com.starbase.starteam.File> |
findAllFiles(java.io.File workspace,
java.io.PrintStream logger,
boolean clearNoStarteamFiles)
return the list of all files for the current starteam connection. |
java.util.Collection<com.starbase.starteam.File> |
findChangedFiles(java.io.File workspace,
java.io.PrintStream logger,
java.util.Date fromDate)
find all changed files in starteam since a given date. |
java.util.Collection<com.starbase.starteam.File> |
findChangedFiles(java.util.Map<java.lang.String,com.starbase.starteam.File> nowFiles,
java.io.File workspace,
java.io.PrintStream logger,
java.util.Date fromDate)
Find all changed files in starteam since a given date. |
com.starbase.util.OLEDate |
getServerTime()
|
java.lang.String |
getUsername(int userId)
Returns the name of the user on the StarTeam server with the specified id. |
int |
hashCode()
|
void |
initialize()
Initialize the connection. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StarTeamConnection(java.lang.String hostName,
int port,
java.lang.String userName,
java.lang.String password,
java.lang.String projectName,
java.lang.String viewName,
java.lang.String folderName)
hostName - the starteam server host / ip nameport - starteam server portuserName - user used to connect starteam serverpassword - user password to connect to starteam serverprojectName - starteam project's nameviewName - starteam view's namefolderName - starteam folder's name| Method Detail |
|---|
public void initialize()
throws StarTeamSCMException
StarTeamSCMException - if logging on fails.
public void checkOut(java.util.Collection<com.starbase.starteam.File> filesToCheckOut,
java.io.PrintStream logger)
throws java.io.IOException
filesToCheckOut -
java.io.IOException - if checkout fails.public java.lang.String getUsername(int userId)
Item's Item.getModifiedBy() property, to
determine the name of the user who made a modification to the item.
userId - the id of the user on the StarTeam Server
public com.starbase.util.OLEDate getServerTime()
public java.util.Map<java.lang.String,com.starbase.starteam.File> findAllFiles(java.io.File workspace,
java.io.PrintStream logger,
boolean clearNoStarteamFiles)
workspace - root of local folderlogger - logger used to log eventsclearNoStarteamFiles - whether or not deleting local file / directory that are not in
starteam.
public java.util.Collection<com.starbase.starteam.File> findChangedFiles(java.io.File workspace,
java.io.PrintStream logger,
java.util.Date fromDate)
workspace - local root directory.logger - logger allowing to log event to the console.fromDate - date of comparison.
public java.util.Collection<com.starbase.starteam.File> findChangedFiles(java.util.Map<java.lang.String,com.starbase.starteam.File> nowFiles,
java.io.File workspace,
java.io.PrintStream logger,
java.util.Date fromDate)
nowFiles - list of all current starteam files.workspace - local root directory.logger - logger allowing to log event to the console.fromDate - date of comparison.
public java.util.Date calculatePreviousDateWithTimeZoneCheck(java.util.Date aPreviousBuildDate,
java.util.Date aCurrentBuildDate)
aPreviousBuildDate - the previous Hudson's build date.aCurrentBuildDate - hudson's current build date
public void close()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||