Package hudson.scm
Class IntegrityCMProject
java.lang.Object
hudson.scm.IntegrityCMProject
- All Implemented Interfaces:
Serializable
This class represents an Integrity Configuration Management Project Provides metadata information
about a SCM Project
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIntegrityCMProject(com.mks.api.response.WorkItem wi, String projectCacheTable) Creates an instance of an Integrity CM Project and extracts all information from the API Response Field -
Method Summary
Modifier and TypeMethodDescriptioncom.mks.api.response.ResponseaddProjectLabel(IntegrityConfigurable serverConf, String chkptLabel, String projectName, String projectRevision) Applies a Project Label on this Integrity CM Projectcom.mks.api.response.Responsecheckpoint(IntegrityConfigurable integrityConfigurable, String chkptLabel) Performs a checkpoint on this Integrity CM ProjectgetChangeLog(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 alreadygetChangeLogforCPMode(String version, Map<IntegrityCMMember.CPInfo, List<IntegrityCMMember.CPMember>> membersInCP) booleanReturns if the project is checkpointed before the build (configuration parameter)Returns the Full Configuration Path for this Integrity CM ProjectReturns the date when the last checkpoint was performed on this ProjectReturns the line terminator setting for this projectReturns the cache table name for this project configurationReturns the project path for this Integrity CM ProjectReturns the project revision for this Integrity SCM ProjectbooleanReturns the restore timestamp setting for this projectbooleanReturns the flag on whether or not to skip author informationReturns the variant path namevoidinitializeProject(com.mks.api.response.WorkItem wi) booleanisBuild()Returns true if this is a Build ProjectbooleanisNormal()Returns true is this is a Normal ProjectbooleanReturns true if this is a Variant ProjectvoidparseProject(com.mks.api.response.WorkItemIterator workItems) Parses the output from the si viewproject command to get a list of members and updates Derby DBprojectCPDiff(IntegrityConfigurable serverConf, Date pastDate) Performs a projectCPDiff on this Integrity CM ProjectvoidsetCheckpointBeforeBuild(boolean checkpointBeforeBuild) Sets if the project is checkpointed before the build (configuration parameter)voidsetLineTerminator(String lineTerminator) Sets the optional line terminator option for this projectvoidsetRestoreTimestamp(boolean restoreTimestamp) Sets the optional restore timestamp option for this projectvoidsetSkipAuthorInfo(boolean skipAuthorInfo) Toggles whether or not to obtain the author using 'si revisioninfo'
-
Field Details
-
NORMAL_PROJECT
- See Also:
-
VARIANT_PROJECT
- See Also:
-
BUILD_PROJECT
- See Also:
-
-
Constructor Details
-
IntegrityCMProject
Creates an instance of an Integrity CM Project and extracts all information from the API Response Field- Parameters:
wi- Work Item associated with the response from running si projectinfoprojectCacheTable- SCM cache table name for this project configuration
-
-
Method Details
-
initializeProject
public void initializeProject(com.mks.api.response.WorkItem wi) -
setLineTerminator
Sets the optional line terminator option for this project- Parameters:
lineTerminator-
-
getLineTerminator
Returns the line terminator setting for this project- Returns:
-
setRestoreTimestamp
public void setRestoreTimestamp(boolean restoreTimestamp) Sets the optional restore timestamp option for this project- Parameters:
restoreTimestamp-
-
getRestoreTimestamp
public boolean getRestoreTimestamp()Returns the restore timestamp setting for this project- Returns:
-
setSkipAuthorInfo
public void setSkipAuthorInfo(boolean skipAuthorInfo) Toggles whether or not to obtain the author using 'si revisioninfo'- Parameters:
skipAuthorInfo-
-
getSkipAuthorInfo
public boolean getSkipAuthorInfo()Returns the flag on whether or not to skip author information- Parameters:
skipAuthorInfo-
-
getChangeLog
public String getChangeLog(String version, List<Hashtable<CM_PROJECT, Object>> projectMembersList) throws DOMExceptionReturns the Change Log based on the project baseline comparison This assumes that compareBaseline() has been called already- Returns:
- Throws:
DOMException
-
checkpoint
public com.mks.api.response.Response checkpoint(IntegrityConfigurable integrityConfigurable, String chkptLabel) throws com.mks.api.response.APIException, hudson.AbortException Performs a checkpoint on this Integrity CM Project- Parameters:
integrityConfigurable- Authenticated Integrity API SessionchkptLabel- Checkpoint label string- Returns:
- Integrity API Response object
- Throws:
com.mks.api.response.APIExceptionhudson.AbortException
-
addProjectLabel
public com.mks.api.response.Response addProjectLabel(IntegrityConfigurable serverConf, String chkptLabel, String projectName, String projectRevision) throws com.mks.api.response.APIException, hudson.AbortException Applies a Project Label on this Integrity CM Project- Parameters:
serverConf- Authenticated Integrity API SessionchkptLabel- Checkpoint label string- Returns:
- Integrity API Response object
- Throws:
com.mks.api.response.APIExceptionhudson.AbortException
-
projectCPDiff
public Set<String> projectCPDiff(IntegrityConfigurable serverConf, Date pastDate) throws com.mks.api.response.APIException, hudson.AbortException Performs a projectCPDiff on this Integrity CM Project- Parameters:
serverConf- Authenticated Integrity API Sessionpast- Past date- Returns:
- Set of closed CPIDs
- Throws:
com.mks.api.response.APIExceptionhudson.AbortException
-
getProjectName
Returns the project path for this Integrity CM Project- Returns:
-
getProjectRevision
Returns the project revision for this Integrity SCM Project- Returns:
-
isNormal
public boolean isNormal()Returns true is this is a Normal Project- Returns:
-
isVariant
public boolean isVariant()Returns true if this is a Variant Project- Returns:
-
isBuild
public boolean isBuild()Returns true if this is a Build Project- Returns:
-
getConfigurationPath
Returns the Full Configuration Path for this Integrity CM Project- Returns:
-
getLastCheckpointDate
Returns the date when the last checkpoint was performed on this Project- Returns:
-
setCheckpointBeforeBuild
public void setCheckpointBeforeBuild(boolean checkpointBeforeBuild) Sets if the project is checkpointed before the build (configuration parameter)- Parameters:
checkpointBeforeBuild-
-
getCheckpointBeforeBuild
public boolean getCheckpointBeforeBuild()Returns if the project is checkpointed before the build (configuration parameter)- Returns:
-
getProjectCacheTable
Returns the cache table name for this project configuration -
getVariantName
Returns the variant path name- Returns:
-
parseProject
public void parseProject(com.mks.api.response.WorkItemIterator workItems) throws com.mks.api.response.APIException, SQLException, InterruptedException, ExecutionException Parses the output from the si viewproject command to get a list of members and updates Derby DB- Parameters:
workItems- WorkItemIterator- Throws:
com.mks.api.response.APIExceptionSQLExceptionInterruptedExceptionExecutionException
-
getChangeLogforCPMode
public String getChangeLogforCPMode(String version, Map<IntegrityCMMember.CPInfo, List<IntegrityCMMember.CPMember>> membersInCP)
-