public final class IntegrityCMMember extends Object
| Constructor and Description |
|---|
IntegrityCMMember() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkout(APISession api,
String configPath,
String memberID,
String memberRev,
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 |
getAnnotatedLink(String configPath,
String memberID,
String memberRev)
Returns an URL encoded string representation for invoking this Integrity member's annotated view
|
static String |
getAuthor(APISession api,
String configPath,
String memberID,
String memberRev)
Performs a revision info on this Integrity Source File
|
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
|
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 memberUnsupportedEncodingExceptionpublic 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 revisionUnsupportedEncodingExceptionpublic static final boolean checkout(APISession api, String configPath, String memberID, String memberRev, 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.APIExceptionpublic static String getAuthor(APISession api, String configPath, String memberID, String memberRev)
api - Integrity API SessionconfigPath - Full project configuration pathmemberID - Member ID for this filememberRev - Member Revision for this filepublic static final String getMD5Checksum(File targetFile) throws IOException
targetFile - File object representing the target fileIOExceptionCopyright © 2004-2015 Hudson. All Rights Reserved.