org.sourcejammer.client.commandline
Class CommandLineInterpreter

java.lang.Object
  |
  +--org.sourcejammer.client.commandline.CommandLineInterpreter
All Implemented Interfaces:
org.sourcejammer.project.view.SJRequestParams, org.sourcejammer.project.view.SJResponseParams

public class CommandLineInterpreter
extends java.lang.Object
implements org.sourcejammer.project.view.SJResponseParams, org.sourcejammer.project.view.SJRequestParams

Title: $FileName: CommandLineInterpreter.java$

Version:
$VerNum: 6$
$Description: $
$KeyWordsOff: $

Primary class for interpreting and executing command line commands.
Author:
$AuthorName: Rob MacGrogan$

Nested Class Summary
static class CommandLineInterpreter.Delimiters
           
static class CommandLineInterpreter.FileTypes
          jbm jbm change end jbm
static class CommandLineInterpreter.Implementations
           
 
Field Summary
static java.lang.String ALL_FILES_IN_DIR
           
private  CLCommands cmdList
           
private  java.io.File flLocalDirectory
           
static java.lang.String GETPROJ_CURRENT_PROJECT
          jbm change start jbm jbm add getproj command jbm Constants for getproj command
static java.lang.String GETPROJ_MAKE_LOCAL_DIRS
           
static java.lang.String GETPROJ_NO_MAKE_LOCAL_DIRS
           
static java.lang.String GETPROJ_NO_RECURSE_PROJECT
           
static java.lang.String GETPROJ_NO_VERIFY_CHECKIN
           
static java.lang.String GETPROJ_RECURSE_PROJECT
           
static java.lang.String GETPROJ_VERIFY_CHECKIN
           
private  long mlSessionID
           
private  SOAPPortal moPortal
           
private  java.lang.String msArchiveName
           
private  java.lang.String msCurrentPath
           
private  java.lang.String msPassword
           
private  java.lang.String msUrl
           
private  java.lang.String msUserName
           
private  org.sourcejammer.project.view.ViewNode ndProjectPointer
           
static java.lang.String TERM_MESSAGE
           
static java.lang.String TO_PARENT_DIR
           
 
Fields inherited from interface org.sourcejammer.project.view.SJResponseParams
DOWNLOAD_FILE_IDENTIFIER, FILE, NODE_UNIQUE_ID, OBJECT_ARRAY, PROJECT, res_ARCHIVE_PROPERTIES, res_BINARY_ZIPPED, SJ_PATH_TO_LABEL_ROOT
 
Fields inherited from interface org.sourcejammer.project.view.SJRequestParams
ARCHIVE_PROPERTIES, BINARY_ZIPPED, CHECK_OUT_PATH, COMMENT, EXCLUDE_FILE, FILE_PROPERTIES, FILE_UPLOAD_ID, NEW_ARCHIVE_IMPLEMENTATION, NEW_ARCHIVE_NAME, NEW_ARCHIVE_ROOT_PATH, NEW_PARENT_NODE_UNIQUE_ID, NEW_USER_ADMIN, NEW_USER_FULL_NAME, NEW_USER_NAME, NEW_USER_PASSWORD, PARENT_NODE_NAME, PARENT_NODE_UNIQUE_ID, REQUESTED_EOL_TYPE, REQUESTED_NODE_NAME, REQUESTED_NODE_UNIQUE_ID, SECONDARY_VERSION_NUMBER, VERSION_NUMBER, ZIP_BINARIES_LARGER_THAN
 
Constructor Summary
CommandLineInterpreter()
          This constructor always throws an exception.
CommandLineInterpreter(java.lang.String sURL)
           
 
Method Summary
(package private)  java.lang.String addAllFiles(java.lang.String fileType)
           
(package private)  org.sourcejammer.project.view.SJResponse addFile(java.lang.String newFileNameLocation, java.lang.String fileType)
           
(package private)  org.sourcejammer.project.view.SJResponse addFile(java.lang.String newFileNameLocation, java.lang.String localFileNameLocation, java.lang.String fileType)
           
(package private)  java.lang.String changeLocalDirectory(java.lang.String path)
           
(package private)  org.sourcejammer.project.view.SJResponse changePassword(java.lang.String password)
           
(package private)  org.sourcejammer.project.view.SJResponse changeProject(java.lang.String path)
           
(package private)  org.sourcejammer.project.view.SJResponse checkInFile(java.lang.String sjFileNameLocation, java.lang.String comment)
           
(package private)  org.sourcejammer.project.view.SJResponse checkOutFile(java.lang.String sjFileNameLocation)
           
(package private)  org.sourcejammer.project.view.SJResponse checkOutFile(java.lang.String sjFileNameLocation, int eolType)
           
(package private)  org.sourcejammer.project.view.SJResponse connect(java.lang.String sArchive, java.lang.String userName, java.lang.String password)
           
(package private)  org.sourcejammer.project.view.SJResponse deleteRemoved(java.lang.String itemNumber)
           
(package private)  org.sourcejammer.project.view.SJResponse disconnect()
           
(package private)  java.lang.String getAllFiles()
           
private  java.lang.StringBuffer getAllFilesAndChildren(java.io.File destDir, org.sourcejammer.project.view.Project proj, boolean recurseProject, boolean makeDirectories, boolean vfyChkIn)
          retrieves all files and projects into the specified directory.
(package private)  org.sourcejammer.project.view.SJResponse getAllProjectFiles(java.lang.String projectNameParm, java.lang.String recurseProjectParm, java.lang.String makeDirectoriesParm, java.lang.String verifyCheckInParm)
          jbm change start jbm jbm add getproj command jbm Get All Project Files command format: getproj { [project name] { [r|nr] { [d|nd] {v|nv} } ] } function: parms: project name -- absolute, relative or current project name.
private  org.sourcejammer.project.view.SJRequest getBaseRequest()
           
private  SourceVersionChecker getChecker(java.io.File path)
           
private  org.sourcejammer.project.view.SJResponse getFakeResponse()
           
(package private)  org.sourcejammer.project.view.SJResponse getFile(java.lang.String sjFileNameLocation)
           
(package private)  org.sourcejammer.project.view.SJResponse getFile(java.lang.String sjFileNameLocation, java.lang.String localFileNameLocation, int eolType)
           
private  java.io.File getFileFromString(java.lang.String path)
           
private  org.sourcejammer.project.view.File getFileInfo(long lFileID)
          Get file info
private  long getFileLatestVersionID(long lFileID)
           
private  java.lang.String getFileNameFromNameLocation(java.lang.String nameLocation)
           
private  long getFileUniqueID(java.lang.String sjPath)
          Gets unique ID of specified file from the server.
(package private)  org.sourcejammer.project.view.SJResponse getFileVersion(java.lang.String sjFileNameLocation, java.lang.String version)
           
(package private)  org.sourcejammer.project.view.SJResponse getFileVersion(java.lang.String sjFileNameLocation, java.lang.String version, java.lang.String localFileNameLocation)
           
private  org.sourcejammer.project.view.SJResponse getFileVersionFromServer(long fileID, int versionNum, long versionID, java.lang.String fileName, java.io.File toDir)
           
(package private)  java.lang.String getHelpText()
           
(package private)  org.sourcejammer.project.view.SJResponse getLabel(java.lang.String sjFileNameLocation, int verNum)
           
private  long getProjectUniqueID(java.lang.String sjPath)
           
private  long getVersionUniqueID(long fileID, int versionNumber)
           
(package private)  org.sourcejammer.project.view.SJResponse listDetails(java.lang.String path)
           
(package private)  java.lang.String listLocalDetails()
           
(package private)  org.sourcejammer.project.view.SJResponse makeArchive(java.lang.String name, java.lang.String implementation, java.lang.String path)
           
(package private)  org.sourcejammer.project.view.SJResponse makeArchiveDisconnected(java.lang.String userName, java.lang.String password, java.lang.String name, java.lang.String implementation, java.lang.String path)
           
private  void makeFileReadable(java.lang.String sFullPath)
          jbm jbm change end jbm
(package private)  org.sourcejammer.project.view.SJResponse makeLabel(java.lang.String labelName, java.lang.String description)
           
(package private)  org.sourcejammer.project.view.SJResponse makeProject(java.lang.String path)
           
(package private)  org.sourcejammer.project.view.SJResponse makeUser(java.lang.String userName, java.lang.String password, java.lang.String fullName)
           
private  byte[] readLocalFile(java.lang.String sFullPathAndName)
           
(package private)  org.sourcejammer.project.view.SJResponse remove(java.lang.String sNodeName)
           
(package private)  org.sourcejammer.project.view.SJResponse rename(java.lang.String sjName, java.lang.String newName)
           
(package private)  org.sourcejammer.project.view.SJResponse restoreRemoved(java.lang.String itemNumber, java.lang.String newName)
           
protected  long retrieveFileFromServer(org.sourcejammer.project.view.DownloadFileIdentifier id, org.sourcejammer.project.view.SJResponse response)
          Returns temp file id.
(package private)  org.sourcejammer.project.view.SJResponse rollback(java.lang.String sjFileNameLocation, java.lang.String version)
           
 java.lang.String sendCommand(java.lang.String command)
           
protected  long sendFileToServer(java.io.File fl, org.sourcejammer.project.view.SJRequest request)
           
private  org.sourcejammer.project.view.SJResponse sendRequest(org.sourcejammer.project.view.SJRequest request, java.lang.String method)
           
private static java.lang.String[] tokenizeCommand(java.lang.String command)
           
(package private)  org.sourcejammer.project.view.SJResponse undoCheckOut(java.lang.String sjFileNameLocation)
           
protected  void updateProjectPointer()
           
private  java.lang.String updateStatusFromResponse(org.sourcejammer.project.view.SJResponse response, boolean updateProjectPointer)
           
(package private)  java.lang.String viewRemoved()
           
(package private)  org.sourcejammer.project.view.SJResponse viewVersionComment(java.lang.String sjFileNameLocation, java.lang.String version)
           
(package private)  org.sourcejammer.project.view.SJResponse viewVersionInfo(java.lang.String sjFileNameLocation)
           
private  void writeLocalFile(java.lang.String sFullPathAndName, byte[] file)
           
protected  byte[] zipByteArrayIfNeeded(byte[] file, org.sourcejammer.project.view.SJRequest request)
          Checks if a byte array about to be sent is larger than the minimum unzipped file size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TERM_MESSAGE

public static final java.lang.String TERM_MESSAGE
See Also:
Constant Field Values

TO_PARENT_DIR

public static final java.lang.String TO_PARENT_DIR
See Also:
Constant Field Values

ALL_FILES_IN_DIR

public static final java.lang.String ALL_FILES_IN_DIR
See Also:
Constant Field Values

GETPROJ_CURRENT_PROJECT

public static final java.lang.String GETPROJ_CURRENT_PROJECT
jbm change start jbm jbm add getproj command jbm Constants for getproj command

See Also:
Constant Field Values

GETPROJ_RECURSE_PROJECT

public static final java.lang.String GETPROJ_RECURSE_PROJECT
See Also:
Constant Field Values

GETPROJ_NO_RECURSE_PROJECT

public static final java.lang.String GETPROJ_NO_RECURSE_PROJECT
See Also:
Constant Field Values

GETPROJ_MAKE_LOCAL_DIRS

public static final java.lang.String GETPROJ_MAKE_LOCAL_DIRS
See Also:
Constant Field Values

GETPROJ_NO_MAKE_LOCAL_DIRS

public static final java.lang.String GETPROJ_NO_MAKE_LOCAL_DIRS
See Also:
Constant Field Values

GETPROJ_VERIFY_CHECKIN

public static final java.lang.String GETPROJ_VERIFY_CHECKIN
See Also:
Constant Field Values

GETPROJ_NO_VERIFY_CHECKIN

public static final java.lang.String GETPROJ_NO_VERIFY_CHECKIN
See Also:
Constant Field Values

msUserName

private java.lang.String msUserName

msPassword

private java.lang.String msPassword

msArchiveName

private java.lang.String msArchiveName

mlSessionID

private long mlSessionID

ndProjectPointer

private org.sourcejammer.project.view.ViewNode ndProjectPointer

flLocalDirectory

private java.io.File flLocalDirectory

moPortal

private SOAPPortal moPortal

msCurrentPath

private java.lang.String msCurrentPath

msUrl

private java.lang.String msUrl

cmdList

private CLCommands cmdList
Constructor Detail

CommandLineInterpreter

public CommandLineInterpreter()
This constructor always throws an exception.


CommandLineInterpreter

public CommandLineInterpreter(java.lang.String sURL)
Method Detail

sendCommand

public java.lang.String sendCommand(java.lang.String command)

getFile

org.sourcejammer.project.view.SJResponse getFile(java.lang.String sjFileNameLocation)
                                           throws java.io.IOException,
                                                  org.sourcejammer.util.SourceJammerConnectionException
java.io.IOException
org.sourcejammer.util.SourceJammerConnectionException

viewRemoved

java.lang.String viewRemoved()
                       throws org.sourcejammer.util.SourceJammerConnectionException
org.sourcejammer.util.SourceJammerConnectionException

getFile

org.sourcejammer.project.view.SJResponse getFile(java.lang.String sjFileNameLocation,
                                                 java.lang.String localFileNameLocation,
                                                 int eolType)
                                           throws java.io.IOException,
                                                  org.sourcejammer.util.SourceJammerConnectionException
java.io.IOException
org.sourcejammer.util.SourceJammerConnectionException

checkInFile

org.sourcejammer.project.view.SJResponse checkInFile(java.lang.String sjFileNameLocation,
                                                     java.lang.String comment)
                                               throws java.io.IOException,
                                                      org.sourcejammer.util.SourceJammerConnectionException
java.io.IOException
org.sourcejammer.util.SourceJammerConnectionException

checkOutFile

org.sourcejammer.project.view.SJResponse checkOutFile(java.lang.String sjFileNameLocation)
                                                throws java.io.IOException,
                                                       org.sourcejammer.util.SourceJammerConnectionException
java.io.IOException
org.sourcejammer.util.SourceJammerConnectionException

checkOutFile

org.sourcejammer.project.view.SJResponse checkOutFile(java.lang.String sjFileNameLocation,
                                                      int eolType)
                                                throws java.io.IOException,
                                                       org.sourcejammer.util.SourceJammerConnectionException
java.io.IOException
org.sourcejammer.util.SourceJammerConnectionException

addFile

org.sourcejammer.project.view.SJResponse addFile(java.lang.String newFileNameLocation,
                                                 java.lang.String fileType)
                                           throws java.io.IOException,
                                                  org.sourcejammer.util.SourceJammerConnectionException
java.io.IOException
org.sourcejammer.util.SourceJammerConnectionException

addAllFiles

java.lang.String addAllFiles(java.lang.String fileType)
                       throws java.io.IOException,
                              org.sourcejammer.util.SourceJammerConnectionException
java.io.IOException
org.sourcejammer.util.SourceJammerConnectionException

getAllFiles

java.lang.String getAllFiles()
                       throws java.io.IOException,
                              org.sourcejammer.util.SourceJammerConnectionException
java.io.IOException
org.sourcejammer.util.SourceJammerConnectionException

addFile

org.sourcejammer.project.view.SJResponse addFile(java.lang.String newFileNameLocation,
                                                 java.lang.String localFileNameLocation,
                                                 java.lang.String fileType)
                                           throws java.io.IOException,
                                                  org.sourcejammer.util.SourceJammerConnectionException
java.io.IOException
org.sourcejammer.util.SourceJammerConnectionException

writeLocalFile

private void writeLocalFile(java.lang.String sFullPathAndName,
                            byte[] file)
                     throws java.io.IOException
java.io.IOException

readLocalFile

private byte[] readLocalFile(java.lang.String sFullPathAndName)
                      throws java.io.IOException
java.io.IOException

makeProject

org.sourcejammer.project.view.SJResponse makeProject(java.lang.String path)
                                               throws org.sourcejammer.util.SourceJammerConnectionException
org.sourcejammer.util.SourceJammerConnectionException

listDetails

org.sourcejammer.project.view.SJResponse listDetails(java.lang.String path)
                                               throws org.sourcejammer.util.SourceJammerConnectionException
org.sourcejammer.util.SourceJammerConnectionException

getFakeResponse

private org.sourcejammer.project.view.SJResponse getFakeResponse()

updateStatusFromResponse

private java.lang.String updateStatusFromResponse(org.sourcejammer.project.view.SJResponse response,
                                                  boolean updateProjectPointer)

tokenizeCommand

private static java.lang.String[] tokenizeCommand(java.lang.String command)

changeProject

org.sourcejammer.project.view.SJResponse changeProject(java.lang.String path)
                                                 throws org.sourcejammer.util.SourceJammerConnectionException
org.sourcejammer.util.SourceJammerConnectionException

sendRequest

private org.sourcejammer.project.view.SJResponse sendRequest(org.sourcejammer.project.view.SJRequest request,
                                                             java.lang.String method)
                                                      throws org.sourcejammer.util.SourceJammerConnectionException
org.sourcejammer.util.SourceJammerConnectionException

connect

org.sourcejammer.project.view.SJResponse connect(java.lang.String sArchive,
                                                 java.lang.String userName,
                                                 java.lang.String password)
                                           throws org.sourcejammer.util.SourceJammerConnectionException,
                                                  NoSessionException
org.sourcejammer.util.SourceJammerConnectionException
NoSessionException

disconnect

org.sourcejammer.project.view.SJResponse disconnect()
                                              throws org.sourcejammer.util.SourceJammerConnectionException
org.sourcejammer.util.SourceJammerConnectionException

getBaseRequest

private org.sourcejammer.project.view.SJRequest getBaseRequest()

changeLocalDirectory

java.lang.String changeLocalDirectory(java.lang.String path)

getFileFromString

private java.io.File getFileFromString(java.lang.String path)

listLocalDetails

java.lang.String listLocalDetails()

viewVersionInfo

org.sourcejammer.project.view.SJResponse viewVersionInfo(java.lang.String sjFileNameLocation)
                                                   throws org.sourcejammer.util.SourceJammerConnectionException
org.sourcejammer.util.SourceJammerConnectionException

getFileVersion

org.sourcejammer.project.view.SJResponse getFileVersion(java.lang.String sjFileNameLocation,
                                                        java.lang.String version)
                                                  throws java.io.IOException,
                                                         org.sourcejammer.util.SourceJammerConnectionException
java.io.IOException
org.sourcejammer.util.SourceJammerConnectionException

getFileInfo

private org.sourcejammer.project.view.File getFileInfo(long lFileID)
                                                throws org.sourcejammer.util.SourceJammerConnectionException
Get file info

org.sourcejammer.util.SourceJammerConnectionException

getFileVersion

org.sourcejammer.project.view.SJResponse getFileVersion(java.lang.String sjFileNameLocation,
                                                        java.lang.String version,
                                                        java.lang.String localFileNameLocation)
                                                  throws java.io.IOException,
                                                         org.sourcejammer.util.SourceJammerConnectionException
java.io.IOException
org.sourcejammer.util.SourceJammerConnectionException

getFileNameFromNameLocation

private java.lang.String getFileNameFromNameLocation(java.lang.String nameLocation)

remove

org.sourcejammer.project.view.SJResponse remove(java.lang.String sNodeName)
                                          throws org.sourcejammer.util.SourceJammerConnectionException
org.sourcejammer.util.SourceJammerConnectionException

undoCheckOut

org.sourcejammer.project.view.SJResponse undoCheckOut(java.lang.String sjFileNameLocation)
                                                throws org.sourcejammer.util.SourceJammerConnectionException,
                                                       java.io.IOException
org.sourcejammer.util.SourceJammerConnectionException
java.io.IOException

rollback

org.sourcejammer.project.view.SJResponse rollback(java.lang.String sjFileNameLocation,
                                                  java.lang.String version)
                                            throws java.io.IOException,
                                                   org.sourcejammer.util.SourceJammerConnectionException
java.io.IOException
org.sourcejammer.util.SourceJammerConnectionException

getVersionUniqueID

private long getVersionUniqueID(long fileID,
                                int versionNumber)
                         throws org.sourcejammer.util.SourceJammerConnectionException
org.sourcejammer.util.SourceJammerConnectionException

rename

org.sourcejammer.project.view.SJResponse rename(java.lang.String sjName,
                                                java.lang.String newName)
                                          throws org.sourcejammer.util.SourceJammerConnectionException
org.sourcejammer.util.SourceJammerConnectionException

viewVersionComment

org.sourcejammer.project.view.SJResponse viewVersionComment(java.lang.String sjFileNameLocation,
                                                            java.lang.String version)
                                                      throws org.sourcejammer.util.SourceJammerConnectionException
org.sourcejammer.util.SourceJammerConnectionException

restoreRemoved

org.sourcejammer.project.view.SJResponse restoreRemoved(java.lang.String itemNumber,
                                                        java.lang.String newName)
                                                  throws org.sourcejammer.util.SourceJammerConnectionException
org.sourcejammer.util.SourceJammerConnectionException

deleteRemoved

org.sourcejammer.project.view.SJResponse deleteRemoved(java.lang.String itemNumber)
                                                 throws org.sourcejammer.util.SourceJammerConnectionException
org.sourcejammer.util.SourceJammerConnectionException

makeArchive

org.sourcejammer.project.view.SJResponse makeArchive(java.lang.String name,
                                                     java.lang.String implementation,
                                                     java.lang.String path)
                                               throws org.sourcejammer.util.SourceJammerConnectionException
org.sourcejammer.util.SourceJammerConnectionException

makeUser

org.sourcejammer.project.view.SJResponse makeUser(java.lang.String userName,
                                                  java.lang.String password,
                                                  java.lang.String fullName)
                                            throws org.sourcejammer.util.SourceJammerConnectionException
org.sourcejammer.util.SourceJammerConnectionException

changePassword

org.sourcejammer.project.view.SJResponse changePassword(java.lang.String password)
                                                  throws org.sourcejammer.util.SourceJammerConnectionException
org.sourcejammer.util.SourceJammerConnectionException

makeArchiveDisconnected

org.sourcejammer.project.view.SJResponse makeArchiveDisconnected(java.lang.String userName,
                                                                 java.lang.String password,
                                                                 java.lang.String name,
                                                                 java.lang.String implementation,
                                                                 java.lang.String path)
                                                           throws org.sourcejammer.util.SourceJammerConnectionException
org.sourcejammer.util.SourceJammerConnectionException

makeLabel

org.sourcejammer.project.view.SJResponse makeLabel(java.lang.String labelName,
                                                   java.lang.String description)
                                             throws org.sourcejammer.util.SourceJammerConnectionException
org.sourcejammer.util.SourceJammerConnectionException

getFileVersionFromServer

private org.sourcejammer.project.view.SJResponse getFileVersionFromServer(long fileID,
                                                                          int versionNum,
                                                                          long versionID,
                                                                          java.lang.String fileName,
                                                                          java.io.File toDir)
                                                                   throws org.sourcejammer.util.SourceJammerConnectionException,
                                                                          java.io.IOException
org.sourcejammer.util.SourceJammerConnectionException
java.io.IOException

getLabel

org.sourcejammer.project.view.SJResponse getLabel(java.lang.String sjFileNameLocation,
                                                  int verNum)
                                            throws java.io.IOException,
                                                   org.sourcejammer.util.SourceJammerConnectionException
java.io.IOException
org.sourcejammer.util.SourceJammerConnectionException

getHelpText

java.lang.String getHelpText()

getAllProjectFiles

org.sourcejammer.project.view.SJResponse getAllProjectFiles(java.lang.String projectNameParm,
                                                            java.lang.String recurseProjectParm,
                                                            java.lang.String makeDirectoriesParm,
                                                            java.lang.String verifyCheckInParm)
                                                      throws java.io.IOException,
                                                             org.sourcejammer.util.SourceJammerConnectionException,
                                                             CLCommandException
jbm change start jbm jbm add getproj command jbm Get All Project Files command format: getproj { [project name] { [r|nr] { [d|nd] {v|nv} } ] } function: parms: project name -- absolute, relative or current project name. An absolute project name starts with a slash "/". Use a single period "." to use the current project. Anything else is considered a relative project r|nr -- recurse, no-recurse. Recurse means to retrieve all the files from all the projects below the starting project. d|nd -- when recursing projects, make or don't make the local directory structure match the project name structure. v|nv -- before a file is retrieved, verify or don't verify that the file is checked in. If verifying, then if a file is checked out then do not retrieve the file and terminate the command. If not verifying, then don't check, don't tell, don't stop. all parms are optional and default (if not specified) to: current project -- "." recurse projects -- "r" make directories -- "d" don't verify check in -- "nv" note: The parms must appear in the order specified, if they appear at all. If the recurse option is wanted, then the project name must be present. If the directory options is wanted, then the recurse option must be present. And if the verify option is wanted, then the directory option must be present.

java.io.IOException
org.sourcejammer.util.SourceJammerConnectionException
CLCommandException

getAllFilesAndChildren

private java.lang.StringBuffer getAllFilesAndChildren(java.io.File destDir,
                                                      org.sourcejammer.project.view.Project proj,
                                                      boolean recurseProject,
                                                      boolean makeDirectories,
                                                      boolean vfyChkIn)
                                               throws java.io.IOException,
                                                      org.sourcejammer.util.SourceJammerConnectionException,
                                                      CLCommandException
retrieves all files and projects into the specified directory. Makes directories to match the project sturcture if specified. Recurse the project sturcture if specified.

java.io.IOException
org.sourcejammer.util.SourceJammerConnectionException
CLCommandException

makeFileReadable

private void makeFileReadable(java.lang.String sFullPath)
                       throws java.io.IOException
jbm jbm change end jbm

java.io.IOException

getChecker

private SourceVersionChecker getChecker(java.io.File path)
                                 throws java.io.IOException
java.io.IOException

getFileLatestVersionID

private long getFileLatestVersionID(long lFileID)
                             throws org.sourcejammer.util.SourceJammerConnectionException
org.sourcejammer.util.SourceJammerConnectionException

getProjectUniqueID

private long getProjectUniqueID(java.lang.String sjPath)
                         throws org.sourcejammer.util.SourceJammerConnectionException
org.sourcejammer.util.SourceJammerConnectionException

getFileUniqueID

private long getFileUniqueID(java.lang.String sjPath)
                      throws org.sourcejammer.util.SourceJammerConnectionException
Gets unique ID of specified file from the server.

org.sourcejammer.util.SourceJammerConnectionException

zipByteArrayIfNeeded

protected byte[] zipByteArrayIfNeeded(byte[] file,
                                      org.sourcejammer.project.view.SJRequest request)
                               throws java.io.IOException
Checks if a byte array about to be sent is larger than the minimum unzipped file size. If so, zips the file and sets the flag in the SJRequest.

java.io.IOException

updateProjectPointer

protected void updateProjectPointer()
                             throws org.sourcejammer.util.SourceJammerConnectionException
org.sourcejammer.util.SourceJammerConnectionException

retrieveFileFromServer

protected long retrieveFileFromServer(org.sourcejammer.project.view.DownloadFileIdentifier id,
                                      org.sourcejammer.project.view.SJResponse response)
                               throws java.io.IOException,
                                      org.sourcejammer.util.SourceJammerConnectionException
Returns temp file id.

java.io.IOException
org.sourcejammer.util.SourceJammerConnectionException

sendFileToServer

protected long sendFileToServer(java.io.File fl,
                                org.sourcejammer.project.view.SJRequest request)
                         throws java.io.IOException,
                                org.sourcejammer.util.SourceJammerConnectionException
java.io.IOException
org.sourcejammer.util.SourceJammerConnectionException


Copyright 2003 Soucejammer project.