public final class IntegrityCMMember extends Object
Modifier and Type | Class and Description |
---|---|
static class |
IntegrityCMMember.CPInfo |
static class |
IntegrityCMMember.CPMember |
Constructor and Description |
---|
IntegrityCMMember() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkout(ISession api,
String configPath,
String memberID,
String memberRev,
Timestamp memberTimestamp,
File targetFile,
boolean restoreTimestamp,
String lineTerminator)
Performs a checkout of this Integrity Source File to a working file location on the build
server represented by targetFile
|
static String |
createCP(IntegrityConfigurable ciSettings,
String itemID,
String desc)
Creates a Change Package for updating Integrity SCM projects
|
static String |
getAnnotatedLink(String configPath,
String memberID,
String memberRev)
Returns an URL encoded string representation for invoking this Integrity member's annotated
view
|
static String |
getDifferencesLink(String configPath,
String memberID,
String memberRev,
String oldMemberRev)
Returns an URL encoded string representation for invoking this Integrity member's differences
view This assumes that IntegrityCMProject.compareBaseline() was invoked!
|
static String |
getMD5Checksum(File targetFile)
Returns the MD5 checksum hash for a file
|
static String |
getName(String memberID)
Returns only the file name portion for this full server-side member path
|
static String |
getViewCP(String cpid)
Returns an URL encoded string representation for invoking this Integrity CP view This assumes
that IntegrityCMProject.compareBaseline() was invoked!
|
static void |
submitCP(IntegrityConfigurable ciSettings,
String cpid)
Submits the change package used for updating the Integrity SCM project
|
static void |
unlockMembers(IntegrityConfigurable integrityConfig,
String configPath)
Performs a recursive unlock on all current user's locked members
|
static void |
updateMember(IntegrityConfigurable ciSettings,
String configPath,
hudson.FilePath member,
String relativePath,
String cpid,
String desc)
Performs a lock and subsequent project checkin for the specified member
|
static Map<IntegrityCMMember.CPInfo,List<IntegrityCMMember.CPMember>> |
viewCP(IntegrityConfigurable ciSettings,
Set<String> projectCPIDs,
String cpCacheTable,
Map<IntegrityCMMember.CPInfo,List<IntegrityCMMember.CPMember>> membersInCP)
View the change package
|
public static final String getName(String memberID)
memberID
- The full server side path for the Integrity memberpublic static final String getAnnotatedLink(String configPath, String memberID, String memberRev) throws UnsupportedEncodingException
configPath
- Full server side path for this Integrity member's project/subprojectmemberID
- Full server side path for this Integrity membermemberRev
- Member revision string for this Integrity memberUnsupportedEncodingException
public static final String getDifferencesLink(String configPath, String memberID, String memberRev, String oldMemberRev) throws UnsupportedEncodingException
configPath
- Full server side path for this Integrity member's project/subprojectmemberID
- Full server side path for this Integrity membermemberRev
- Member revision string for this Integrity memberoldMemberRev
- Revision string representing the previous or next revisionUnsupportedEncodingException
public static String getViewCP(String cpid)
cpid
- public static final boolean checkout(ISession api, String configPath, String memberID, String memberRev, Timestamp memberTimestamp, File targetFile, boolean restoreTimestamp, String lineTerminator) throws com.mks.api.response.APIException
api
- Integrity API SessionconfigPath
- Full server side path for this Integrity member's project/subprojectmemberID
- Full server side path for this Integrity membermemberRev
- Member revision string for this Integrity membertargetFile
- File object representing the target location for this filerestoreTimestamp
- Toggles whether or not the original timestamp should be usedlineTerminator
- Sets the line terminator for this file (native, crlf, or lf)com.mks.api.response.APIException
public static final String getMD5Checksum(File targetFile) throws IOException
targetFile
- File object representing the target fileIOException
public static final void updateMember(IntegrityConfigurable ciSettings, String configPath, hudson.FilePath member, String relativePath, String cpid, String desc) throws hudson.AbortException, com.mks.api.response.APIException
ciSettings
- Integrity API SessionconfigPath
- Full project configuration pathmember
- Member name for this filerelativePath
- Workspace relative file pathcpid
- Change Package IDdesc
- Checkin descriptionhudson.AbortException
com.mks.api.response.APIException
public static final void unlockMembers(IntegrityConfigurable integrityConfig, String configPath) throws hudson.AbortException, com.mks.api.response.APIException
integrityConfig
- configPath
- Full project configuration pathhudson.AbortException
com.mks.api.response.APIException
public static final String createCP(IntegrityConfigurable ciSettings, String itemID, String desc) throws com.mks.api.response.APIException, hudson.AbortException, com.mks.api.response.InterruptedException
Integrity
- API SessionitemID
- Integrity Lifecycle Manager Item IDdesc
- Change Package Descriptioncom.mks.api.response.APIException
hudson.AbortException
com.mks.api.response.InterruptedException
public static final void submitCP(IntegrityConfigurable ciSettings, String cpid) throws com.mks.api.response.APIException, hudson.AbortException
ciSettings
- Integrity API Sessioncpid
- Change Package IDhudson.AbortException
com.mks.api.response.APIException
public static final Map<IntegrityCMMember.CPInfo,List<IntegrityCMMember.CPMember>> viewCP(IntegrityConfigurable ciSettings, Set<String> projectCPIDs, String cpCacheTable, Map<IntegrityCMMember.CPInfo,List<IntegrityCMMember.CPMember>> membersInCP) throws com.mks.api.response.APIException, hudson.AbortException, SQLException
ciSettings
- Integrity API SessionprojectCPIDs
- List of Change Package IDcpCacheTable
- membersInCP
- hudson.AbortException
com.mks.api.response.APIException
SQLException
Copyright © 2016–2024. All rights reserved.