public class IntegrityCMProject extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
BUILD_PROJECT |
static String |
NORMAL_PROJECT |
static String |
VARIANT_PROJECT |
Constructor and Description |
---|
IntegrityCMProject(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
|
Modifier and Type | Method and Description |
---|---|
com.mks.api.response.Response |
addProjectLabel(IntegrityConfigurable serverConf,
String chkptLabel,
String projectName,
String projectRevision)
Applies a Project Label on this Integrity CM Project
|
com.mks.api.response.Response |
checkpoint(IntegrityConfigurable integrityConfigurable,
String chkptLabel)
Performs a checkpoint on this Integrity CM Project
|
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 |
getChangeLogforCPMode(String version,
Map<IntegrityCMMember.CPInfo,List<IntegrityCMMember.CPMember>> membersInCP) |
boolean |
getCheckpointBeforeBuild()
Returns if the project is checkpointed before the build (configuration parameter)
|
String |
getConfigurationPath()
Returns the Full Configuration Path for this Integrity CM 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 |
getProjectCacheTable()
Returns the cache table name for this project configuration
|
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
|
boolean |
getSkipAuthorInfo()
Returns the flag on whether or not to skip author information
|
String |
getVariantName()
Returns the variant path name
|
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
|
void |
parseProject(com.mks.api.response.WorkItemIterator workItems)
Parses the output from the si viewproject command to get a list of members and updates Derby DB
|
Set<String> |
projectCPDiff(IntegrityConfigurable serverConf,
Date pastDate)
Performs a projectCPDiff on this Integrity CM Project
|
void |
setCheckpointBeforeBuild(boolean checkpointBeforeBuild)
Sets if the project is checkpointed before the build (configuration parameter)
|
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'
|
public static final String NORMAL_PROJECT
public static final String VARIANT_PROJECT
public static final String BUILD_PROJECT
public IntegrityCMProject(com.mks.api.response.WorkItem wi, String projectCacheTable)
wi
- Work Item associated with the response from running si projectinfoprojectCacheTable
- SCM cache table name for this project configurationpublic 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 boolean getSkipAuthorInfo()
skipAuthorInfo
- public String getChangeLog(String version, List<Hashtable<CM_PROJECT,Object>> projectMembersList) throws DOMException
DOMException
public com.mks.api.response.Response checkpoint(IntegrityConfigurable integrityConfigurable, String chkptLabel) throws com.mks.api.response.APIException, hudson.AbortException
integrityConfigurable
- Authenticated Integrity API SessionchkptLabel
- Checkpoint label stringcom.mks.api.response.APIException
hudson.AbortException
public com.mks.api.response.Response addProjectLabel(IntegrityConfigurable serverConf, String chkptLabel, String projectName, String projectRevision) throws com.mks.api.response.APIException, hudson.AbortException
serverConf
- Authenticated Integrity API SessionchkptLabel
- Checkpoint label stringcom.mks.api.response.APIException
hudson.AbortException
public Set<String> projectCPDiff(IntegrityConfigurable serverConf, Date pastDate) throws com.mks.api.response.APIException, hudson.AbortException
serverConf
- Authenticated Integrity API Sessionpast
- Past datecom.mks.api.response.APIException
hudson.AbortException
public String getProjectName()
public String getProjectRevision()
public boolean isNormal()
public boolean isVariant()
public boolean isBuild()
public String getConfigurationPath()
public Date getLastCheckpointDate()
public void setCheckpointBeforeBuild(boolean checkpointBeforeBuild)
checkpointBeforeBuild
- public boolean getCheckpointBeforeBuild()
public String getProjectCacheTable()
public String getVariantName()
public void parseProject(com.mks.api.response.WorkItemIterator workItems) throws com.mks.api.response.APIException, SQLException, InterruptedException, ExecutionException
workItems
- WorkItemIteratorcom.mks.api.response.APIException
SQLException
InterruptedException
ExecutionException
public String getChangeLogforCPMode(String version, Map<IntegrityCMMember.CPInfo,List<IntegrityCMMember.CPMember>> membersInCP)
Copyright © 2016–2024. All rights reserved.