|
||||||||||
| 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 a MKS Integrity Configuration Management Project Provides metadata information about a Project
| Field Summary | |
|---|---|
static java.lang.String |
BUILD_PROJECT
|
static java.util.Comparator<IntegrityCMMember> |
FILES_ORDER
|
static java.lang.String |
NORMAL_PROJECT
|
static java.lang.String |
VARIANT_PROJECT
|
| Constructor Summary | |
|---|---|
IntegrityCMProject(com.mks.api.response.WorkItem wi)
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,
java.lang.String chkptLabel)
Applies a Project Label on this Integrity CM Project |
com.mks.api.response.Response |
checkpoint(APISession api,
java.lang.String chkptLabel)
Performs a checkpoint on this Integrity CM Project |
void |
compareBaseline(IntegrityCMProject baselineProject,
APISession api)
Compares this version of the project to a previous/new version to determine what are the updates and what was deleted |
java.util.List<IntegrityCMMember> |
getAddedMembers()
Returns the newly added members to this project based on a baseline comparison |
int |
getChangeCount()
Returns the total number of changes found from the baseline comparison This assumes that compareBaseline() has been called already * |
java.lang.String |
getChangeLog(java.lang.String version,
APISession api)
Returns the Change Log based on the project baseline comparison This assumes that compareBaseline() has been called already |
java.lang.String |
getConfigurationPath()
Returns the Full Configuration Path for this Integrity CM Project |
java.util.List<java.lang.String> |
getDirList()
Returns a string list of relative paths to all directories in this project |
java.util.List<IntegrityCMMember> |
getDroppedMembers()
Returns the dropped members to this project based on a baseline comparison |
java.util.Date |
getLastCheckpointDate()
Returns the date when the last checkpoint was performed on this Project |
java.util.List<IntegrityCMMember> |
getProjectMembers()
Returns the previously parsed output from the si viewproject command to get a list of members |
java.lang.String |
getProjectName()
Returns the project path for this Integrity CM Project |
java.lang.String |
getProjectRevision()
Returns the project revision for this Integrity SCM Project |
java.util.List<IntegrityCMMember> |
getUpdatedMembers()
Returns the updated members to this project based on a baseline comparison |
boolean |
hasProjectChanged()
Determines whether this project has changed based on a baseline comparison This assumes that compareBaseline() has been called already |
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 wit,
APISession api)
Parses the output from the si viewproject command to get a list of members |
void |
setLineTerminator(java.lang.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' |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String NORMAL_PROJECT
public static final java.lang.String VARIANT_PROJECT
public static final java.lang.String BUILD_PROJECT
public static final java.util.Comparator<IntegrityCMMember> FILES_ORDER
| Constructor Detail |
|---|
public IntegrityCMProject(com.mks.api.response.WorkItem wi)
wi - Work Item associated with the response from running si projectinfo| Method Detail |
|---|
public void initializeProject(com.mks.api.response.WorkItem wi)
public void setLineTerminator(java.lang.String lineTerminator)
lineTerminator - public void setRestoreTimestamp(boolean restoreTimestamp)
restoreTimestamp - public void setSkipAuthorInfo(boolean skipAuthorInfo)
skipAuthorInfo -
public void parseProject(com.mks.api.response.WorkItemIterator wit,
APISession api)
throws com.mks.api.response.APIException
wit - WorkItemIteratorapi - The current MKS API Session
com.mks.api.response.APIException
public void compareBaseline(IntegrityCMProject baselineProject,
APISession api)
baselineProject - The previous baseline (build) for this Integrity CM Projectapi - The current MKS API Session to obtain the author information
public java.lang.String getChangeLog(java.lang.String version,
APISession api)
throws com.mks.api.response.APIException
com.mks.api.response.APIException
public com.mks.api.response.Response checkpoint(APISession api,
java.lang.String chkptLabel)
throws com.mks.api.response.APIException
api - Authenticated MKS API SessionchkptLabel - Checkpoint label string
com.mks.api.response.APIException
public com.mks.api.response.Response addProjectLabel(APISession api,
java.lang.String chkptLabel)
throws com.mks.api.response.APIException
api - Authenticated MKS API SessionchkptLabel - Checkpoint label string
com.mks.api.response.APIExceptionpublic boolean hasProjectChanged()
public int getChangeCount()
public java.util.List<java.lang.String> getDirList()
public java.util.List<IntegrityCMMember> getProjectMembers()
public java.util.List<IntegrityCMMember> getAddedMembers()
public java.util.List<IntegrityCMMember> getUpdatedMembers()
public java.util.List<IntegrityCMMember> getDroppedMembers()
public java.lang.String getProjectName()
public java.lang.String getProjectRevision()
public boolean isNormal()
public boolean isVariant()
public boolean isBuild()
public java.lang.String getConfigurationPath()
public java.util.Date getLastCheckpointDate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||