|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.scm.IntegrityCMProject
public class IntegrityCMProject
This class represents an Integrity Configuration Management Project Provides metadata information about a SCM Project
| Field Summary | |
|---|---|
static String |
BUILD_PROJECT
|
static String |
NORMAL_PROJECT
|
static String |
VARIANT_PROJECT
|
| Constructor Summary | |
|---|---|
IntegrityCMProject(com.mks.api.response.WorkItem wi,
File projectDB)
Creates an instance of an Integrity CM Project and extracts all information from the API Response Field |
|
| Method Summary | |
|---|---|
com.mks.api.response.Response |
addProjectLabel(APISession api,
String chkptLabel)
Applies a Project Label on this Integrity CM Project |
com.mks.api.response.Response |
checkpoint(APISession api,
String chkptLabel)
Performs a checkpoint on this Integrity CM Project |
void |
closeProjectDB()
Closes the connections to the embedded derby database |
int |
compareBaseline(File baselineProjectDB,
APISession api)
Compares this version of the project to a previous/new version to determine what are the updates and what was deleted |
String |
getChangeLog(String version,
List<Hashtable<CM_PROJECT,Object>> projectMembersList)
Returns the Change Log based on the project baseline comparison This assumes that compareBaseline() has been called already |
String |
getConfigurationPath()
Returns the Full Configuration Path for this Integrity CM Project |
List<String> |
getDirList()
Returns a string list of relative paths to all directories in this project |
Date |
getLastCheckpointDate()
Returns the date when the last checkpoint was performed on this Project |
String |
getLineTerminator()
Returns the line terminator setting for this project |
String |
getProjectName()
Returns the project path for this Integrity CM Project |
String |
getProjectRevision()
Returns the project revision for this Integrity SCM Project |
boolean |
getRestoreTimestamp()
Returns the restore timestamp setting for this project |
void |
initializeProject(com.mks.api.response.WorkItem wi)
|
boolean |
isBuild()
Returns true if this is a Build Project |
boolean |
isNormal()
Returns true is this is a Normal Project |
boolean |
isVariant()
Returns true if this is a Variant Project |
Connection |
openProjectDB()
Opens a new connection to the embedded Integrity SCM Project cache db |
void |
parseProject(com.mks.api.response.WorkItemIterator wit)
Parses the output from the si viewproject command to get a list of members |
void |
primeAuthorInformation(APISession api)
Updates the author information for all the members in the project |
void |
setLineTerminator(String lineTerminator)
Sets the optional line terminator option for this project |
void |
setRestoreTimestamp(boolean restoreTimestamp)
Sets the optional restore timestamp option for this project |
void |
setSkipAuthorInfo(boolean skipAuthorInfo)
Toggles whether or not to obtain the author using 'si revisioninfo' |
void |
updateChecksum(Hashtable<String,String> checksumHash)
Updates the underlying Integrity SCM Project table cache with the new checksum information |
List<Hashtable<CM_PROJECT,Object>> |
viewProject()
Project access function that returns the state of the current project NOTE: For maximum efficiency, this should be called only once and after the compareBasline() has been invoked! |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String NORMAL_PROJECT
public static final String VARIANT_PROJECT
public static final String BUILD_PROJECT
| Constructor Detail |
|---|
public IntegrityCMProject(com.mks.api.response.WorkItem wi,
File projectDB)
wi - Work Item associated with the response from running si projectinfoprojectDB - Location of where the embedded derby database for this project| Method Detail |
|---|
public void initializeProject(com.mks.api.response.WorkItem wi)
public void setLineTerminator(String lineTerminator)
lineTerminator - public String getLineTerminator()
public void setRestoreTimestamp(boolean restoreTimestamp)
restoreTimestamp - public boolean getRestoreTimestamp()
public void setSkipAuthorInfo(boolean skipAuthorInfo)
skipAuthorInfo -
public Connection openProjectDB()
throws SQLException
SQLExceptionpublic void closeProjectDB()
public void parseProject(com.mks.api.response.WorkItemIterator wit)
throws com.mks.api.response.APIException,
SQLException
wit - WorkItemIterator
com.mks.api.response.APIException
SQLException
public void primeAuthorInformation(APISession api)
throws SQLException,
IOException
api -
SQLException
IOException
public void updateChecksum(Hashtable<String,String> checksumHash)
throws SQLException,
IOException
checksumHash - Checksum hashtable generated from a checkout operation
SQLException
IOException
public int compareBaseline(File baselineProjectDB,
APISession api)
throws SQLException,
IOException
baselineProjectDB - The previous baseline (build) for this Integrity CM Projectapi - The current Integrity API Session to obtain the author informationreturn - The total number of changes found in the comparison
SQLException
IOException
public List<Hashtable<CM_PROJECT,Object>> viewProject()
throws SQLException,
IOException
SQLException
IOException
public String getChangeLog(String version,
List<Hashtable<CM_PROJECT,Object>> projectMembersList)
throws DOMException
DOMException
public com.mks.api.response.Response checkpoint(APISession api,
String chkptLabel)
throws com.mks.api.response.APIException
api - Authenticated Integrity API SessionchkptLabel - Checkpoint label string
com.mks.api.response.APIException
public com.mks.api.response.Response addProjectLabel(APISession api,
String chkptLabel)
throws com.mks.api.response.APIException
api - Authenticated Integrity API SessionchkptLabel - Checkpoint label string
com.mks.api.response.APIException
public List<String> getDirList()
throws SQLException,
IOException
SQLException
IOExceptionpublic String getProjectName()
public String getProjectRevision()
public boolean isNormal()
public boolean isVariant()
public boolean isBuild()
public String getConfigurationPath()
public Date getLastCheckpointDate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||