public class DimensionsAPI extends Object implements Serializable
| Constructor and Description |
|---|
DimensionsAPI() |
| Modifier and Type | Method and Description |
|---|---|
com.serena.dmclient.api.DimensionsResult |
actionBaseline(long key,
String projectId,
hudson.model.Run build,
String state,
String blnName)
Action a baseline.
|
com.serena.dmclient.api.DimensionsResult |
buildBaseline(long key,
String area,
String projectId,
boolean batch,
boolean buildClean,
String buildConfig,
String options,
boolean capture,
String requests,
String targets,
hudson.model.Run build,
String blnName)
Build a baseline.
|
com.serena.dmclient.api.DimensionsResult |
buildProject(long key,
String area,
String projectId,
boolean batch,
boolean buildClean,
String buildConfig,
String options,
boolean capture,
String requests,
String targets,
String stage,
String type,
boolean audit,
boolean populate,
boolean touch,
hudson.model.Run build)
Build a project.
|
boolean |
checkout(long key,
String projectName,
hudson.FilePath projectDir,
hudson.FilePath workspaceName,
StringBuffer cmdOutput,
String baseline,
String requests,
boolean doRevert,
boolean doExpand,
boolean doNoMetadata,
boolean doNoTouch,
String permissions,
String eol)
Get a copy of the code.
|
com.serena.dmclient.api.DimensionsResult |
createBaseline(long key,
String projectVersion,
hudson.model.Run build,
String blnScope,
String blnTemplate,
String blnOwningPart,
String blnType,
String requestId,
String blnId,
String blnName,
StringBuffer cblId)
Create a project tag.
|
boolean |
createChangeSetLogs(long key,
String projectName,
hudson.FilePath projectDir,
Calendar fromDate,
Calendar toDate,
File changelogFile,
TimeZone tz,
String url,
String baseline,
String requests)
Generate changelog file.
|
com.serena.dmclient.api.DimensionsResult |
deployBaseline(long key,
String projectId,
hudson.model.Run build,
String state,
String blnName)
Deploy a baseline.
|
com.serena.dmclient.api.DimensionsConnection |
getCon(long key)
Gets the repository connection class
|
int |
getDmVersion()
Gets the Dimensions version if set.
|
List |
getItemsInRequests(com.serena.dmclient.api.DimensionsConnection connection,
String projName,
String requests,
String dateAfter,
String dateBefore)
Populate list with all the items related to a set of requests.
|
PrintStream |
getLogger()
Gets the logger.
|
String |
getSCMBaseDb()
Gets the base database for the connection.
|
String |
getSCMDatabase()
Gets the base database for the connection (as "NAME@CONNECTION").
|
String |
getSCMDsn()
Gets the database DNS for the connection.
|
String |
getSCMPath()
Gets the project path.
|
String |
getSCMProject()
Gets the project ID for the connection.
|
String |
getSCMServer()
Gets the server for the connection.
|
String |
getSCMUserID()
Gets the user ID for the connection.
|
boolean |
hasRepositoryBeenUpdated(long key,
String projectName,
hudson.FilePath workspace,
Calendar fromDate,
Calendar toDate,
TimeZone tz)
Has the repository had any changes made during a certain time?
|
boolean |
isStream(long key,
String projectId) |
com.serena.dmclient.api.DimensionsResult |
lockProject(long key,
String projectId)
Lock a project.
|
long |
login(String userID,
String password,
String database,
String server)
Creates a Dimensions session using the supplied login credentials and server details.
|
long |
login(String userID,
String password,
String database,
String server,
hudson.model.Run build)
Creates a Dimensions session using the supplied login credentials and server details.
|
void |
logout(long key)
Disconnects from the Dimensions repository
|
void |
logout(long key,
hudson.model.Run build)
Disconnects from the Dimensions repository, with additional tracing from supplied build details.
|
void |
setLogger(PrintStream logger)
Set the logger.
|
com.serena.dmclient.api.DimensionsResult |
unlockProject(long key,
String projectId)
Unlock a project.
|
com.serena.dmclient.api.DimensionsResult |
UploadFiles(long key,
hudson.FilePath rootDir,
String projectId,
File cmdFile,
String projectName,
int buildNo,
String requests,
boolean forceCheckIn,
boolean forceTip,
String owningPart)
Upload files.
|
public final PrintStream getLogger()
public final void setLogger(PrintStream logger)
public final String getSCMUserID()
public final int getDmVersion()
public final String getSCMDatabase()
public final String getSCMBaseDb()
public final String getSCMDsn()
public final String getSCMServer()
public final String getSCMProject()
public final String getSCMPath()
public final com.serena.dmclient.api.DimensionsConnection getCon(long key)
public final long login(String userID, String password, String database, String server) throws IllegalArgumentException, com.serena.dmclient.api.DimensionsRuntimeException
userID - Dimensions user IDpassword - Dimensions passworddatabase - Base database nameserver - Hostname of the remote Dimensions serverDimensionsRuntimeException, - IllegalArgumentExceptionIllegalArgumentExceptioncom.serena.dmclient.api.DimensionsRuntimeExceptionpublic final long login(String userID, String password, String database, String server, hudson.model.Run build) throws IllegalArgumentException, com.serena.dmclient.api.DimensionsRuntimeException
userID - Dimensions user IDpassword - Dimensions passworddatabase - base database nameserver - hostname of the remote Dimensions serverbuild - details of the invoking build runDimensionsRuntimeException, - IllegalArgumentExceptionIllegalArgumentExceptioncom.serena.dmclient.api.DimensionsRuntimeExceptionpublic final void logout(long key)
public final void logout(long key,
hudson.model.Run build)
public boolean hasRepositoryBeenUpdated(long key,
String projectName,
hudson.FilePath workspace,
Calendar fromDate,
Calendar toDate,
TimeZone tz)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic boolean checkout(long key,
String projectName,
hudson.FilePath projectDir,
hudson.FilePath workspaceName,
StringBuffer cmdOutput,
String baseline,
String requests,
boolean doRevert,
boolean doExpand,
boolean doNoMetadata,
boolean doNoTouch,
String permissions,
String eol)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic boolean createChangeSetLogs(long key,
String projectName,
hudson.FilePath projectDir,
Calendar fromDate,
Calendar toDate,
File changelogFile,
TimeZone tz,
String url,
String baseline,
String requests)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic com.serena.dmclient.api.DimensionsResult lockProject(long key,
String projectId)
throws com.serena.dmclient.api.DimensionsRuntimeException
com.serena.dmclient.api.DimensionsRuntimeExceptionpublic com.serena.dmclient.api.DimensionsResult unlockProject(long key,
String projectId)
throws com.serena.dmclient.api.DimensionsRuntimeException
com.serena.dmclient.api.DimensionsRuntimeExceptionpublic com.serena.dmclient.api.DimensionsResult buildBaseline(long key,
String area,
String projectId,
boolean batch,
boolean buildClean,
String buildConfig,
String options,
boolean capture,
String requests,
String targets,
hudson.model.Run build,
String blnName)
throws com.serena.dmclient.api.DimensionsRuntimeException
com.serena.dmclient.api.DimensionsRuntimeExceptionpublic com.serena.dmclient.api.DimensionsResult buildProject(long key,
String area,
String projectId,
boolean batch,
boolean buildClean,
String buildConfig,
String options,
boolean capture,
String requests,
String targets,
String stage,
String type,
boolean audit,
boolean populate,
boolean touch,
hudson.model.Run build)
throws com.serena.dmclient.api.DimensionsRuntimeException
com.serena.dmclient.api.DimensionsRuntimeExceptionpublic com.serena.dmclient.api.DimensionsResult UploadFiles(long key,
hudson.FilePath rootDir,
String projectId,
File cmdFile,
String projectName,
int buildNo,
String requests,
boolean forceCheckIn,
boolean forceTip,
String owningPart)
throws com.serena.dmclient.api.DimensionsRuntimeException
com.serena.dmclient.api.DimensionsRuntimeExceptionpublic com.serena.dmclient.api.DimensionsResult createBaseline(long key,
String projectVersion,
hudson.model.Run build,
String blnScope,
String blnTemplate,
String blnOwningPart,
String blnType,
String requestId,
String blnId,
String blnName,
StringBuffer cblId)
throws com.serena.dmclient.api.DimensionsRuntimeException
com.serena.dmclient.api.DimensionsRuntimeExceptionpublic com.serena.dmclient.api.DimensionsResult deployBaseline(long key,
String projectId,
hudson.model.Run build,
String state,
String blnName)
throws com.serena.dmclient.api.DimensionsRuntimeException
com.serena.dmclient.api.DimensionsRuntimeExceptionpublic com.serena.dmclient.api.DimensionsResult actionBaseline(long key,
String projectId,
hudson.model.Run build,
String state,
String blnName)
throws com.serena.dmclient.api.DimensionsRuntimeException
com.serena.dmclient.api.DimensionsRuntimeExceptionpublic boolean isStream(long key,
String projectId)
throws com.serena.dmclient.api.DimensionsRuntimeException
com.serena.dmclient.api.DimensionsRuntimeExceptionpublic List getItemsInRequests(com.serena.dmclient.api.DimensionsConnection connection, String projName, String requests, String dateAfter, String dateBefore) throws com.serena.dmclient.api.DimensionsRuntimeException
connection - Dimensions connectionprojectName - Name of the projectrequests - List of requestsdateAfter - Date filterdateBefore - Date filtercom.serena.dmclient.api.DimensionsRuntimeExceptionCopyright © 2004-2016. All Rights Reserved.