org.sourcejammer.client.gui
Class CommandCentral

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

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

Title: $FileName: CommandCentral.java$

Version:
$VerNum: 34$
Author:
$AuthorName: Rob MacGrogan$

$Description: Central singleton that handles issuing all commands and performing all file system actions for GUI.$
$KeyWordsOff: $

Central singleton that handles issuing all commands and performing all file system actions for GUI.

Field Summary
static java.lang.String APP_TITLE
           
private  SourceVersionChecker currentProjectVerChecker
           
private static CommandCentral instance
           
private  boolean mbAppWindowRendered
           
private  SJPrimaryWindow mjRootAppFrame
           
private  long mlSessionID
           
private  GuiConf moConf
           
private  ProjectTreeNode moCurrentTreeNode
           
private  SOAPPortal moPortal
           
private static javax.swing.table.TableColumnModel moPrimaryColumnModel
           
private  java.lang.String msArchiveName
           
private  java.lang.String msPassword
           
private  java.lang.String msURL
           
private  java.lang.String msUserName
           
static java.io.PrintStream out
           
private  java.lang.String proxyPassword
           
private  boolean proxyPasswordSet
           
private static java.lang.String SJ_FILE_NAME_ENV_VAR
           
private static int ZIP_BUFFER_SIZE
           
 
Fields inherited from interface org.sourcejammer.project.view.SJRequestParams
ARCHIVE_PROPERTIES, BINARY_ZIPPED, CHECK_OUT_PATH, COMMENT, EXCLUDE_FILE, FILE_PROPERTIES, FILE_UPLOAD_ID, IDENTIFIER, IS_BRANCH_AFTER_CHECKIN, IS_BUILD_CHANGELIST, 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, PLUGIN_NAME, RECURSIVE, REQUESTED_EOL_TYPE, REQUESTED_NODE_NAME, REQUESTED_NODE_UNIQUE_ID, SECONDARY_VERSION_NUMBER, VERSION_NUMBER, ZIP_BINARIES_LARGER_THAN
 
Fields inherited from interface org.sourcejammer.project.view.SJResponseParams
BOOLEAN_QUERY_RESULT, BRANCHES, DOWNLOAD_FILE_IDENTIFIER, FILE, IS_CHECKED_OUT, IS_SHARED, NEW_FILE_ID, NODE_UNIQUE_ID, OBJECT_ARRAY, PROJECT, res_ARCHIVE_PROPERTIES, res_BINARY_ZIPPED, res_PARENT_NODE_UNIQUE_ID, SJ_PATH_TO_LABEL_ROOT
 
Constructor Summary
private CommandCentral()
           
 
Method Summary
 void addFile(long parentUniqueID, java.lang.String newFileName, java.lang.String localFileNameLocation, int fileType, int historyType, java.lang.String description, java.lang.String afterAddAction, org.sourcejammer.project.view.SJRequest request)
           
 void addUserToArchiveControllers(java.lang.String userName)
           
 void addUserToArchiveUsers(java.lang.String userName)
           
 void branchAndCheckIn(org.sourcejammer.project.view.NodeInfo fileNode, java.io.File flTargetDirectory, java.lang.String comment, java.lang.String afterCheckInAction, long parentProjectID, java.lang.String identifier, org.sourcejammer.project.view.SJRequest request)
          Checks in the file.
 void branchFile(org.sourcejammer.project.view.NodeInfo flInfo, long parentProjectID, java.lang.String comment, java.lang.String identifier, org.sourcejammer.project.view.SJRequest request)
           
 void branchProject(long projectID, java.lang.String comment, java.lang.String identifier)
           
 void changeFileDescription(org.sourcejammer.project.view.NodeInfo flInfo, java.lang.String newDescription, org.sourcejammer.project.view.SJRequest request)
           
 void changePassword(java.lang.String sPassword)
           
 void changePassword(java.lang.String sPassword, java.lang.String userName)
           
 boolean checkDeletedNodeShareStatus(long projectID, int itemIndex)
           
 void checkInFile(org.sourcejammer.project.view.NodeInfo fileNode, java.io.File flTargetDirectory, java.lang.String comment, java.lang.String afterCheckInAction, org.sourcejammer.project.view.SJRequest request)
           
 void checkOutFile(long fileID, java.lang.String fileName, java.io.File flTargetDirectory)
           
 void checkOutFile(long fileID, java.lang.String fileName, java.io.File flTargetDirectory, int eolType, org.sourcejammer.project.view.SJRequest request)
           
 void checkOutFileToStream(long fileID, java.io.OutputStream stmOut, int eolType)
           
 org.sourcejammer.project.view.Project connectToArchive()
           
 void copyFile(org.sourcejammer.project.view.NodeInfo flInfo, long fromProjectID, long toProjectID, org.sourcejammer.project.view.SJRequest request)
           
 void copyProject(long projectID, long toProjectID, java.lang.String newProjectName)
           
 java.lang.String currentURL()
           
 boolean deleteArchive(java.lang.String archiveName)
          Returns true if the archive deleted is the current archive and the user is now disconnected.
 void deleteRemoved(long lParentID, int iItemNumber)
           
 void deleteRemoved(long lParentID, int iItemNumber, boolean deleteAllShares)
           
 boolean disconnect()
           
private  boolean doesLocalFileExist(java.io.File dir, java.lang.String fileName)
           
 boolean doesProjectContainShares(long projectID)
           
 void forceCheckIn(org.sourcejammer.project.view.NodeInfo fileNode, java.io.File flTargetDirectory, java.lang.String comment, java.lang.String afterCheckInAction, org.sourcejammer.project.view.SJRequest request)
          Force local version of file into archive without checking file out.
 java.lang.String[] getAllCurrentFileNames()
           
 org.sourcejammer.project.view.UserInfo[] getArchiveControllerList()
           
 java.lang.String getArchiveName()
           
 java.lang.String[] getArchiveNameList()
          Returns list of archives available on server user is currently connected to.
 org.sourcejammer.project.view.ArchiveProperties getArchiveProperties()
           
 org.sourcejammer.project.view.UserInfo[] getArchiveUserList()
           
 org.sourcejammer.project.view.SJRequest getBaseRequest()
           
 java.lang.String getBranchReport(long fileID, org.sourcejammer.project.view.SJRequest request)
          Get Branch report
 void getChangeList(long labelID, int newerVer, int olderVer, java.io.File targetFile, int eolType)
           
 SourceVersionChecker getChecker(java.io.File flDirectory)
           
 int getClientDefaultEOLType()
          Gets the default EOL type for the client from AppConfig.
 org.sourcejammer.project.view.UserInfo[] getCompleteUserList()
           
 SourceVersionChecker getCurrentProjectChecker()
           
 ProjectTreeNode getCurrentTreeNode()
           
 java.lang.String getCurrentUserName()
           
 void getFile(org.sourcejammer.project.view.NodeInfo fileInfo, java.io.File flTargetDirectory, boolean setReadOnly, org.sourcejammer.util.RepeatingResponse repeating)
           
 void getFile(org.sourcejammer.project.view.NodeInfo fileInfo, java.io.File flTargetDirectory, int eolType, boolean printMessages, boolean setReadOnly, org.sourcejammer.util.RepeatingResponse repeating, org.sourcejammer.project.view.SJRequest request)
           
 void getFile(org.sourcejammer.project.view.NodeInfo fileInfo, java.io.File flTargetDirectory, int eolType, boolean setReadOnly, org.sourcejammer.util.RepeatingResponse repeating, org.sourcejammer.project.view.SJRequest request)
           
 org.sourcejammer.project.view.File getFileInfo(org.sourcejammer.project.view.NodeInfo flInfo, org.sourcejammer.project.view.SJRequest request)
          Get file info
 long getFileLatestVersionID(long lFileID)
           
 void getFileToStream(long lFileID, java.io.OutputStream stmOut, int eolType)
           
 long getFileUniqueID(java.lang.String sjPath)
          Returns unique id of file based on full path to sourcejammer node.
 void getFileVersion(org.sourcejammer.project.view.NodeInfo flInfo, java.io.File flTargetDirectory, int iVersion, long versionID, boolean setReadOnly, boolean printMessages, org.sourcejammer.util.RepeatingResponse repeating)
           
 void getFileVersion(org.sourcejammer.project.view.NodeInfo flInfo, java.io.File flTargetDirectory, int iVersion, long versionID, boolean setReadOnly, org.sourcejammer.util.RepeatingResponse repeating)
           
 void getFileVersion(org.sourcejammer.project.view.NodeInfo flInfo, java.io.File flTargetDirectory, int iVersion, long versionID, boolean setReadOnly, org.sourcejammer.util.RepeatingResponse repeating, org.sourcejammer.project.view.SJRequest request)
           
 void getFileVersion(org.sourcejammer.project.view.NodeInfo flInfo, java.io.File flTargetDirectory, int iVersion, long versionID, int eolType, boolean setReadOnly, boolean printMessages, org.sourcejammer.util.RepeatingResponse repeating, org.sourcejammer.project.view.SJRequest request)
           
 void getFileVersion(org.sourcejammer.project.view.NodeInfo flInfo, java.io.File flTargetDirectory, int iVersion, long versionID, int eolType, boolean setReadOnly, org.sourcejammer.util.RepeatingResponse repeating, org.sourcejammer.project.view.SJRequest request)
           
private  void getFileVersionFromServer(org.sourcejammer.project.view.NodeInfo flInfo, int iVersion, int eolType, long versionID, java.io.File targetDir, boolean setReadOnly, boolean printMessages, org.sourcejammer.util.RepeatingResponse repeating, org.sourcejammer.project.view.SJRequest request)
           
private  void getFileVersionFromServer(org.sourcejammer.project.view.NodeInfo flInfo, int iVersion, int eolType, long versionID, java.io.File targetDir, boolean setReadOnly, org.sourcejammer.util.RepeatingResponse repeating, org.sourcejammer.project.view.SJRequest request)
          Gets full source from server for a specified version, if required, and saves the file.
 GuiConf getGuiConf()
           
static CommandCentral getInstance()
           
static CommandCentral getInstance(SJPrimaryWindow rootApplicationFrame)
           
 void getLabel(long labelID, int verNumber, java.io.File flToDirectory, boolean bBuildSubDirs, int eolType, boolean setReadOnly, org.sourcejammer.util.RepeatingResponse repeating)
          Gets all of the file version in the specified label from the server and writes them to the specified directory (building subdirectories if required and allowed).
 org.sourcejammer.project.NodeList getLabelList()
           
 java.lang.String getPassword()
           
 SOAPPortal getPortal()
           
 javax.swing.JTable getPrimaryTable()
           
 javax.swing.table.TableColumnModel getPrimaryTableColumnModel()
           
 javax.swing.JTree getProjectTree()
           
 long getProjectUniqueID(java.lang.String sjPath)
          Returns unique id of project based on full path to sourcejammer node.
 java.lang.String getProxyPassword()
          Returns the proxyPassword.
 SJPrimaryWindow getRootAppFrame()
           
 java.lang.String[] getSelectedFileNames()
           
 org.sourcejammer.project.view.NodeInfo getSelectedFileNodeInfo()
           
 org.sourcejammer.project.view.NodeInfo getSelectedFileNodeInfo(java.lang.String name)
           
 org.sourcejammer.project.view.NodeInfo[] getSelectedFilesNodeInfo()
           
 java.lang.String getUserName()
           
private  org.sourcejammer.project.view.UserInfo[] getUsers(java.lang.String type)
           
 boolean hasLocalFileChanged(java.lang.String fileName, java.io.File flTargetDir)
           
private  void initializeOut()
           
 boolean isAppWindowRendered()
           
 boolean isConnected()
           
 boolean isProxyPasswordSet()
          Returns the proxyPasswordSet.
 void makeArchive(java.lang.String name, int implementation, java.lang.String path)
           
 void makeArchiveDisconnected(java.lang.String userName, java.lang.String password, java.lang.String url, java.lang.String name, int implementation, java.lang.String path)
           
private  void makeFileWritable(java.io.File file)
           
 void makeLabel(long labelRootProjectID, java.lang.String labelName, java.lang.String description)
           
 long makeProject(long parentProjectID, java.lang.String newProjectName)
          Make a new project on the server.
 void makeUser(java.lang.String sUserName, java.lang.String sPassword, java.lang.String sFullName)
           
 void moveFile(org.sourcejammer.project.view.NodeInfo flInfo, long fromProjectID, long toProjectID, org.sourcejammer.project.view.SJRequest request)
           
 void moveProject(long projectID, long toProjectID, java.lang.String newProjectName)
           
private  void noSession()
           
private  void printServerMessage(java.lang.String s)
           
private  byte[] readLocalFile(java.lang.String sFullPathAndName)
           
 void rebuildFileView()
           
 void rebuildFileView(boolean fromRoot)
           
 void rebuildLabel(long labelId, long parentProjectID, java.lang.String comment, boolean buildChangeList)
          Rebuild the specified label.
 void removeAllSharesOfFile(org.sourcejammer.project.view.NodeInfo flInfo, org.sourcejammer.project.view.SJRequest request)
           
 void removeFileFromParent(org.sourcejammer.project.view.NodeInfo flInfo, long parentID, org.sourcejammer.project.view.SJRequest request)
           
 void removeFileShare(org.sourcejammer.project.view.NodeInfo flInfo, long fromProjectID, org.sourcejammer.project.view.SJRequest request)
           
 void removeProjectAndAllShares(long projectID)
           
 void removeProjectFromParent(long projectID, long parentID)
           
 void removeProjectShare(long projectID)
           
 void removeUser(java.lang.String sUserName)
           
 void removeUserFromArchiveControllers(java.lang.String userName)
           
 void removeUserFromArchiveUsers(java.lang.String userName)
           
 void renameFile(org.sourcejammer.project.view.NodeInfo flInfo, long parentID, java.lang.String newName, org.sourcejammer.project.view.SJRequest request)
           
 void renameProject(long projectID, long parentID, java.lang.String newName)
           
 void resetAppTitle()
           
 void restoreRemoved(long parentID, int iItemNumber, java.lang.String newName)
           
protected  long retrieveFileFromServer(org.sourcejammer.project.view.DownloadFileIdentifier id, org.sourcejammer.project.view.SJResponse response)
          Returns temp file id.
 org.sourcejammer.project.view.Project retrieveProject(long projectID)
          Retrieve info about a project from the server.
 void rollbackToVersion(org.sourcejammer.project.view.NodeInfo flInfo, long versionID, org.sourcejammer.project.view.SJRequest request)
          Rolls back a file in the SourceJammer server to the specified previous version of the file.
 void selectProject(ProjectTreeNode nd)
          Select the specified project in the project tree.
protected  long sendFileToServer(java.io.File fl, org.sourcejammer.project.view.SJRequest request)
           
 org.sourcejammer.project.view.SJResponse sendRequest(org.sourcejammer.project.view.SJRequest request, java.lang.String method)
           
 void setAlternateOut(java.io.PrintStream altOut)
          This method can be called to set the static out to some PrintStream other than the message pane.
 void setAppWindowRendered(boolean b)
           
 void setArchiveConnectInfo(java.lang.String archive, java.lang.String userName, java.lang.String password)
           
 void setArchiveProperties(org.sourcejammer.project.view.ArchiveProperties props)
           
 void setCurrentTreeNode(ProjectTreeNode node)
           
 void setDisconnectedDisplaySettings()
           
 void setPrimaryTableColumnModel(javax.swing.table.TableColumnModel model)
           
 void setProxyPassword(java.lang.String proxyPassword)
          Sets the proxyPassword.
 void setProxyPasswordSet(boolean proxyPasswordSet)
          Sets the proxyPasswordSet.
private  void setRootAppFrameIfNull(SJPrimaryWindow rootApplicationFrame)
           
 void setServerURL(java.lang.String url)
           
 void setUserAdminStatus(java.lang.String userName, boolean status)
           
 void shareFile(org.sourcejammer.project.view.NodeInfo flInfo, long toProjectID, org.sourcejammer.project.view.SJRequest request)
           
 void shareProject(long projectID, long toProjectID, java.lang.String newProjectName)
           
 void undoCheckOut(long fileID, java.lang.String sFileName, java.io.File flTargetDirectory, org.sourcejammer.project.view.SJRequest request)
           
 RemovedItem[] viewRemoved(long projectID)
           
 java.lang.String viewVersionComment(long versionID)
           
protected  byte[] zipByteArrayIfNeeded(byte[] file, org.sourcejammer.project.view.SJRequest request, java.lang.String fileName)
          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

APP_TITLE

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

instance

private static CommandCentral instance

SJ_FILE_NAME_ENV_VAR

private static final java.lang.String SJ_FILE_NAME_ENV_VAR
See Also:
Constant Field Values

ZIP_BUFFER_SIZE

private static final int ZIP_BUFFER_SIZE
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

mjRootAppFrame

private SJPrimaryWindow mjRootAppFrame

moPortal

private SOAPPortal moPortal

msURL

private java.lang.String msURL

moPrimaryColumnModel

private static javax.swing.table.TableColumnModel moPrimaryColumnModel

moCurrentTreeNode

private ProjectTreeNode moCurrentTreeNode

mbAppWindowRendered

private boolean mbAppWindowRendered

moConf

private GuiConf moConf

out

public static java.io.PrintStream out

currentProjectVerChecker

private SourceVersionChecker currentProjectVerChecker

proxyPassword

private java.lang.String proxyPassword

proxyPasswordSet

private boolean proxyPasswordSet
Constructor Detail

CommandCentral

private CommandCentral()
Method Detail

setArchiveConnectInfo

public void setArchiveConnectInfo(java.lang.String archive,
                                  java.lang.String userName,
                                  java.lang.String password)
                           throws java.io.IOException
java.io.IOException

getArchiveName

public java.lang.String getArchiveName()

getPortal

public SOAPPortal getPortal()

setAlternateOut

public void setAlternateOut(java.io.PrintStream altOut)
This method can be called to set the static out to some PrintStream other than the message pane. Typically, this will be called when SJ is being automated.


getUserName

public java.lang.String getUserName()

getPassword

public java.lang.String getPassword()

getGuiConf

public GuiConf getGuiConf()

setPrimaryTableColumnModel

public void setPrimaryTableColumnModel(javax.swing.table.TableColumnModel model)

rebuildFileView

public void rebuildFileView()
                     throws org.sourcejammer.project.NodeExistsException,
                            java.io.IOException
org.sourcejammer.project.NodeExistsException
java.io.IOException

rebuildFileView

public void rebuildFileView(boolean fromRoot)
                     throws org.sourcejammer.project.NodeExistsException,
                            java.io.IOException
org.sourcejammer.project.NodeExistsException
java.io.IOException

setCurrentTreeNode

public void setCurrentTreeNode(ProjectTreeNode node)

getCurrentProjectChecker

public SourceVersionChecker getCurrentProjectChecker()

getCurrentTreeNode

public ProjectTreeNode getCurrentTreeNode()

setAppWindowRendered

public void setAppWindowRendered(boolean b)

isAppWindowRendered

public boolean isAppWindowRendered()

getPrimaryTableColumnModel

public javax.swing.table.TableColumnModel getPrimaryTableColumnModel()

getInstance

public static CommandCentral getInstance(SJPrimaryWindow rootApplicationFrame)

initializeOut

private void initializeOut()

setServerURL

public void setServerURL(java.lang.String url)
                  throws java.net.MalformedURLException
java.net.MalformedURLException

getInstance

public static CommandCentral getInstance()

setRootAppFrameIfNull

private void setRootAppFrameIfNull(SJPrimaryWindow rootApplicationFrame)

getSelectedFileNames

public java.lang.String[] getSelectedFileNames()

getSelectedFileNodeInfo

public org.sourcejammer.project.view.NodeInfo getSelectedFileNodeInfo()

getSelectedFileNodeInfo

public org.sourcejammer.project.view.NodeInfo getSelectedFileNodeInfo(java.lang.String name)

getSelectedFilesNodeInfo

public org.sourcejammer.project.view.NodeInfo[] getSelectedFilesNodeInfo()

getAllCurrentFileNames

public java.lang.String[] getAllCurrentFileNames()

currentURL

public java.lang.String currentURL()

getArchiveNameList

public java.lang.String[] getArchiveNameList()
                                      throws org.sourcejammer.util.SourceJammerConnectionException,
                                             GUICommandException
Returns list of archives available on server user is currently connected to.

org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

sendRequest

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

noSession

private void noSession()
                throws org.sourcejammer.util.SourceJammerConnectionException,
                       GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

deleteArchive

public boolean deleteArchive(java.lang.String archiveName)
                      throws org.sourcejammer.util.SourceJammerConnectionException,
                             GUICommandException
Returns true if the archive deleted is the current archive and the user is now disconnected. Signal to close any open dialog.

org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

connectToArchive

public org.sourcejammer.project.view.Project connectToArchive()
                                                       throws org.sourcejammer.util.SourceJammerConnectionException,
                                                              GUICommandException,
                                                              NoSessionException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException
NoSessionException

resetAppTitle

public void resetAppTitle()

getFileInfo

public org.sourcejammer.project.view.File getFileInfo(org.sourcejammer.project.view.NodeInfo flInfo,
                                                      org.sourcejammer.project.view.SJRequest request)
                                               throws GUICommandException,
                                                      org.sourcejammer.util.SourceJammerConnectionException
Get file info

GUICommandException
org.sourcejammer.util.SourceJammerConnectionException

getBranchReport

public java.lang.String getBranchReport(long fileID,
                                        org.sourcejammer.project.view.SJRequest request)
                                 throws GUICommandException,
                                        org.sourcejammer.util.SourceJammerConnectionException
Get Branch report

GUICommandException
org.sourcejammer.util.SourceJammerConnectionException

makeProject

public long makeProject(long parentProjectID,
                        java.lang.String newProjectName)
                 throws org.sourcejammer.util.SourceJammerConnectionException,
                        GUICommandException
Make a new project on the server.

org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

renameProject

public void renameProject(long projectID,
                          long parentID,
                          java.lang.String newName)

renameFile

public void renameFile(org.sourcejammer.project.view.NodeInfo flInfo,
                       long parentID,
                       java.lang.String newName,
                       org.sourcejammer.project.view.SJRequest request)
                throws org.sourcejammer.util.SourceJammerConnectionException,
                       GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

retrieveProject

public org.sourcejammer.project.view.Project retrieveProject(long projectID)
                                                      throws org.sourcejammer.util.SourceJammerConnectionException,
                                                             GUICommandException
Retrieve info about a project from the server. Migrated to 1.1 unique ID approach. --rfm

org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

getProjectUniqueID

public long getProjectUniqueID(java.lang.String sjPath)
                        throws org.sourcejammer.util.SourceJammerConnectionException,
                               GUICommandException
Returns unique id of project based on full path to sourcejammer node.

org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

getFileUniqueID

public long getFileUniqueID(java.lang.String sjPath)
                     throws org.sourcejammer.util.SourceJammerConnectionException,
                            GUICommandException
Returns unique id of file based on full path to sourcejammer node.

org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

addFile

public void addFile(long parentUniqueID,
                    java.lang.String newFileName,
                    java.lang.String localFileNameLocation,
                    int fileType,
                    int historyType,
                    java.lang.String description,
                    java.lang.String afterAddAction,
                    org.sourcejammer.project.view.SJRequest request)
             throws GUICommandException,
                    org.sourcejammer.util.SourceJammerConnectionException,
                    java.io.IOException
GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
java.io.IOException

changeFileDescription

public void changeFileDescription(org.sourcejammer.project.view.NodeInfo flInfo,
                                  java.lang.String newDescription,
                                  org.sourcejammer.project.view.SJRequest request)
                           throws GUICommandException,
                                  org.sourcejammer.util.SourceJammerConnectionException,
                                  java.io.IOException
GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
java.io.IOException

printServerMessage

private void printServerMessage(java.lang.String s)

disconnect

public boolean disconnect()
                   throws org.sourcejammer.util.SourceJammerConnectionException,
                          GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

setDisconnectedDisplaySettings

public void setDisconnectedDisplaySettings()

getFile

public void getFile(org.sourcejammer.project.view.NodeInfo fileInfo,
                    java.io.File flTargetDirectory,
                    boolean setReadOnly,
                    org.sourcejammer.util.RepeatingResponse repeating)
             throws org.sourcejammer.util.SourceJammerConnectionException,
                    GUICommandException,
                    java.io.IOException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException
java.io.IOException

getFileLatestVersionID

public long getFileLatestVersionID(long lFileID)

getFile

public void getFile(org.sourcejammer.project.view.NodeInfo fileInfo,
                    java.io.File flTargetDirectory,
                    int eolType,
                    boolean setReadOnly,
                    org.sourcejammer.util.RepeatingResponse repeating,
                    org.sourcejammer.project.view.SJRequest request)
             throws org.sourcejammer.util.SourceJammerConnectionException,
                    GUICommandException,
                    java.io.IOException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException
java.io.IOException

doesLocalFileExist

private boolean doesLocalFileExist(java.io.File dir,
                                   java.lang.String fileName)

getChangeList

public void getChangeList(long labelID,
                          int newerVer,
                          int olderVer,
                          java.io.File targetFile,
                          int eolType)
                   throws org.sourcejammer.util.SourceJammerConnectionException,
                          GUICommandException,
                          java.io.IOException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException
java.io.IOException

getFile

public void getFile(org.sourcejammer.project.view.NodeInfo fileInfo,
                    java.io.File flTargetDirectory,
                    int eolType,
                    boolean printMessages,
                    boolean setReadOnly,
                    org.sourcejammer.util.RepeatingResponse repeating,
                    org.sourcejammer.project.view.SJRequest request)
             throws org.sourcejammer.util.SourceJammerConnectionException,
                    GUICommandException,
                    java.io.IOException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException
java.io.IOException

checkOutFileToStream

public void checkOutFileToStream(long fileID,
                                 java.io.OutputStream stmOut,
                                 int eolType)
                          throws org.sourcejammer.util.SourceJammerConnectionException,
                                 GUICommandException,
                                 java.io.IOException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException
java.io.IOException

getFileToStream

public void getFileToStream(long lFileID,
                            java.io.OutputStream stmOut,
                            int eolType)
                     throws org.sourcejammer.util.SourceJammerConnectionException,
                            GUICommandException,
                            java.io.IOException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException
java.io.IOException

getClientDefaultEOLType

public int getClientDefaultEOLType()
Gets the default EOL type for the client from AppConfig.


checkOutFile

public void checkOutFile(long fileID,
                         java.lang.String fileName,
                         java.io.File flTargetDirectory)
                  throws org.sourcejammer.util.SourceJammerConnectionException,
                         GUICommandException,
                         java.io.IOException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException
java.io.IOException

hasLocalFileChanged

public boolean hasLocalFileChanged(java.lang.String fileName,
                                   java.io.File flTargetDir)
                            throws java.io.IOException
java.io.IOException

checkOutFile

public void checkOutFile(long fileID,
                         java.lang.String fileName,
                         java.io.File flTargetDirectory,
                         int eolType,
                         org.sourcejammer.project.view.SJRequest request)
                  throws org.sourcejammer.util.SourceJammerConnectionException,
                         GUICommandException,
                         java.io.IOException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException
java.io.IOException

forceCheckIn

public void forceCheckIn(org.sourcejammer.project.view.NodeInfo fileNode,
                         java.io.File flTargetDirectory,
                         java.lang.String comment,
                         java.lang.String afterCheckInAction,
                         org.sourcejammer.project.view.SJRequest request)
                  throws org.sourcejammer.util.SourceJammerConnectionException,
                         GUICommandException,
                         java.io.IOException
Force local version of file into archive without checking file out.

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

branchAndCheckIn

public void branchAndCheckIn(org.sourcejammer.project.view.NodeInfo fileNode,
                             java.io.File flTargetDirectory,
                             java.lang.String comment,
                             java.lang.String afterCheckInAction,
                             long parentProjectID,
                             java.lang.String identifier,
                             org.sourcejammer.project.view.SJRequest request)
                      throws org.sourcejammer.util.SourceJammerConnectionException,
                             GUICommandException,
                             java.io.IOException
Checks in the file. If file is shared, tells server to branch it on checkin.

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

checkInFile

public void checkInFile(org.sourcejammer.project.view.NodeInfo fileNode,
                        java.io.File flTargetDirectory,
                        java.lang.String comment,
                        java.lang.String afterCheckInAction,
                        org.sourcejammer.project.view.SJRequest request)
                 throws org.sourcejammer.util.SourceJammerConnectionException,
                        GUICommandException,
                        java.io.IOException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException
java.io.IOException

undoCheckOut

public void undoCheckOut(long fileID,
                         java.lang.String sFileName,
                         java.io.File flTargetDirectory,
                         org.sourcejammer.project.view.SJRequest request)
                  throws org.sourcejammer.util.SourceJammerConnectionException,
                         GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

viewVersionComment

public java.lang.String viewVersionComment(long versionID)
                                    throws org.sourcejammer.util.SourceJammerConnectionException,
                                           GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

getFileVersion

public void getFileVersion(org.sourcejammer.project.view.NodeInfo flInfo,
                           java.io.File flTargetDirectory,
                           int iVersion,
                           long versionID,
                           boolean setReadOnly,
                           org.sourcejammer.util.RepeatingResponse repeating)
                    throws org.sourcejammer.util.SourceJammerConnectionException,
                           GUICommandException,
                           java.io.IOException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException
java.io.IOException

getFileVersion

public void getFileVersion(org.sourcejammer.project.view.NodeInfo flInfo,
                           java.io.File flTargetDirectory,
                           int iVersion,
                           long versionID,
                           boolean setReadOnly,
                           org.sourcejammer.util.RepeatingResponse repeating,
                           org.sourcejammer.project.view.SJRequest request)
                    throws org.sourcejammer.util.SourceJammerConnectionException,
                           GUICommandException,
                           java.io.IOException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException
java.io.IOException

getFileVersion

public void getFileVersion(org.sourcejammer.project.view.NodeInfo flInfo,
                           java.io.File flTargetDirectory,
                           int iVersion,
                           long versionID,
                           boolean setReadOnly,
                           boolean printMessages,
                           org.sourcejammer.util.RepeatingResponse repeating)
                    throws org.sourcejammer.util.SourceJammerConnectionException,
                           GUICommandException,
                           java.io.IOException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException
java.io.IOException

getFileVersion

public void getFileVersion(org.sourcejammer.project.view.NodeInfo flInfo,
                           java.io.File flTargetDirectory,
                           int iVersion,
                           long versionID,
                           int eolType,
                           boolean setReadOnly,
                           org.sourcejammer.util.RepeatingResponse repeating,
                           org.sourcejammer.project.view.SJRequest request)
                    throws org.sourcejammer.util.SourceJammerConnectionException,
                           GUICommandException,
                           java.io.IOException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException
java.io.IOException

getFileVersion

public void getFileVersion(org.sourcejammer.project.view.NodeInfo flInfo,
                           java.io.File flTargetDirectory,
                           int iVersion,
                           long versionID,
                           int eolType,
                           boolean setReadOnly,
                           boolean printMessages,
                           org.sourcejammer.util.RepeatingResponse repeating,
                           org.sourcejammer.project.view.SJRequest request)
                    throws org.sourcejammer.util.SourceJammerConnectionException,
                           GUICommandException,
                           java.io.IOException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException
java.io.IOException

getFileVersionFromServer

private void getFileVersionFromServer(org.sourcejammer.project.view.NodeInfo flInfo,
                                      int iVersion,
                                      int eolType,
                                      long versionID,
                                      java.io.File targetDir,
                                      boolean setReadOnly,
                                      org.sourcejammer.util.RepeatingResponse repeating,
                                      org.sourcejammer.project.view.SJRequest request)
                               throws GUICommandException,
                                      org.sourcejammer.util.SourceJammerConnectionException,
                                      java.io.IOException
Gets full source from server for a specified version, if required, and saves the file.

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

getFileVersionFromServer

private void getFileVersionFromServer(org.sourcejammer.project.view.NodeInfo flInfo,
                                      int iVersion,
                                      int eolType,
                                      long versionID,
                                      java.io.File targetDir,
                                      boolean setReadOnly,
                                      boolean printMessages,
                                      org.sourcejammer.util.RepeatingResponse repeating,
                                      org.sourcejammer.project.view.SJRequest request)
                               throws GUICommandException,
                                      org.sourcejammer.util.SourceJammerConnectionException,
                                      java.io.IOException
GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
java.io.IOException

doesProjectContainShares

public boolean doesProjectContainShares(long projectID)
                                 throws org.sourcejammer.util.SourceJammerConnectionException,
                                        GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

checkDeletedNodeShareStatus

public boolean checkDeletedNodeShareStatus(long projectID,
                                           int itemIndex)
                                    throws org.sourcejammer.util.SourceJammerConnectionException,
                                           GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

removeProjectAndAllShares

public void removeProjectAndAllShares(long projectID)
                               throws org.sourcejammer.util.SourceJammerConnectionException,
                                      GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

removeProjectFromParent

public void removeProjectFromParent(long projectID,
                                    long parentID)
                             throws org.sourcejammer.util.SourceJammerConnectionException,
                                    GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

removeAllSharesOfFile

public void removeAllSharesOfFile(org.sourcejammer.project.view.NodeInfo flInfo,
                                  org.sourcejammer.project.view.SJRequest request)
                           throws org.sourcejammer.util.SourceJammerConnectionException,
                                  GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

removeFileFromParent

public void removeFileFromParent(org.sourcejammer.project.view.NodeInfo flInfo,
                                 long parentID,
                                 org.sourcejammer.project.view.SJRequest request)
                          throws org.sourcejammer.util.SourceJammerConnectionException,
                                 GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

viewRemoved

public RemovedItem[] viewRemoved(long projectID)
                          throws org.sourcejammer.util.SourceJammerConnectionException,
                                 GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

restoreRemoved

public void restoreRemoved(long parentID,
                           int iItemNumber,
                           java.lang.String newName)

deleteRemoved

public void deleteRemoved(long lParentID,
                          int iItemNumber)
                   throws org.sourcejammer.util.SourceJammerConnectionException,
                          GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

deleteRemoved

public void deleteRemoved(long lParentID,
                          int iItemNumber,
                          boolean deleteAllShares)
                   throws org.sourcejammer.util.SourceJammerConnectionException,
                          GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

makeUser

public void makeUser(java.lang.String sUserName,
                     java.lang.String sPassword,
                     java.lang.String sFullName)
              throws GUICommandException,
                     org.sourcejammer.util.SourceJammerConnectionException
GUICommandException
org.sourcejammer.util.SourceJammerConnectionException

removeUser

public void removeUser(java.lang.String sUserName)
                throws GUICommandException,
                       org.sourcejammer.util.SourceJammerConnectionException
GUICommandException
org.sourcejammer.util.SourceJammerConnectionException

changePassword

public void changePassword(java.lang.String sPassword)
                    throws org.sourcejammer.util.SourceJammerConnectionException,
                           GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

changePassword

public void changePassword(java.lang.String sPassword,
                           java.lang.String userName)
                    throws org.sourcejammer.util.SourceJammerConnectionException,
                           GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

makeArchive

public void makeArchive(java.lang.String name,
                        int implementation,
                        java.lang.String path)
                 throws org.sourcejammer.util.SourceJammerConnectionException,
                        GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

makeArchiveDisconnected

public void makeArchiveDisconnected(java.lang.String userName,
                                    java.lang.String password,
                                    java.lang.String url,
                                    java.lang.String name,
                                    int implementation,
                                    java.lang.String path)
                             throws org.sourcejammer.util.SourceJammerConnectionException,
                                    GUICommandException,
                                    java.net.MalformedURLException,
                                    NoSessionException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException
java.net.MalformedURLException
NoSessionException

getLabelList

public org.sourcejammer.project.NodeList getLabelList()
                                               throws org.sourcejammer.util.SourceJammerConnectionException,
                                                      GUICommandException,
                                                      org.sourcejammer.project.NodeExistsException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException
org.sourcejammer.project.NodeExistsException

makeLabel

public void makeLabel(long labelRootProjectID,
                      java.lang.String labelName,
                      java.lang.String description)
               throws org.sourcejammer.util.SourceJammerConnectionException,
                      GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

moveFile

public void moveFile(org.sourcejammer.project.view.NodeInfo flInfo,
                     long fromProjectID,
                     long toProjectID,
                     org.sourcejammer.project.view.SJRequest request)
              throws org.sourcejammer.util.SourceJammerConnectionException,
                     GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

shareFile

public void shareFile(org.sourcejammer.project.view.NodeInfo flInfo,
                      long toProjectID,
                      org.sourcejammer.project.view.SJRequest request)
               throws org.sourcejammer.util.SourceJammerConnectionException,
                      GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

shareProject

public void shareProject(long projectID,
                         long toProjectID,
                         java.lang.String newProjectName)
                  throws org.sourcejammer.util.SourceJammerConnectionException,
                         GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

removeFileShare

public void removeFileShare(org.sourcejammer.project.view.NodeInfo flInfo,
                            long fromProjectID,
                            org.sourcejammer.project.view.SJRequest request)
                     throws org.sourcejammer.util.SourceJammerConnectionException,
                            GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

removeProjectShare

public void removeProjectShare(long projectID)
                        throws org.sourcejammer.util.SourceJammerConnectionException,
                               GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

branchFile

public void branchFile(org.sourcejammer.project.view.NodeInfo flInfo,
                       long parentProjectID,
                       java.lang.String comment,
                       java.lang.String identifier,
                       org.sourcejammer.project.view.SJRequest request)
                throws org.sourcejammer.util.SourceJammerConnectionException,
                       GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

branchProject

public void branchProject(long projectID,
                          java.lang.String comment,
                          java.lang.String identifier)
                   throws org.sourcejammer.util.SourceJammerConnectionException,
                          GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

copyFile

public void copyFile(org.sourcejammer.project.view.NodeInfo flInfo,
                     long fromProjectID,
                     long toProjectID,
                     org.sourcejammer.project.view.SJRequest request)
              throws org.sourcejammer.util.SourceJammerConnectionException,
                     GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

copyProject

public void copyProject(long projectID,
                        long toProjectID,
                        java.lang.String newProjectName)
                 throws org.sourcejammer.util.SourceJammerConnectionException,
                        GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

moveProject

public void moveProject(long projectID,
                        long toProjectID,
                        java.lang.String newProjectName)
                 throws org.sourcejammer.util.SourceJammerConnectionException,
                        GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

rebuildLabel

public void rebuildLabel(long labelId,
                         long parentProjectID,
                         java.lang.String comment,
                         boolean buildChangeList)
                  throws org.sourcejammer.util.SourceJammerConnectionException,
                         GUICommandException,
                         java.io.IOException
Rebuild the specified label.

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

getLabel

public void getLabel(long labelID,
                     int verNumber,
                     java.io.File flToDirectory,
                     boolean bBuildSubDirs,
                     int eolType,
                     boolean setReadOnly,
                     org.sourcejammer.util.RepeatingResponse repeating)
              throws org.sourcejammer.util.SourceJammerConnectionException,
                     GUICommandException,
                     java.io.IOException
Gets all of the file version in the specified label from the server and writes them to the specified directory (building subdirectories if required and allowed).

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

getCompleteUserList

public org.sourcejammer.project.view.UserInfo[] getCompleteUserList()
                                                             throws org.sourcejammer.util.SourceJammerConnectionException,
                                                                    GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

getArchiveProperties

public org.sourcejammer.project.view.ArchiveProperties getArchiveProperties()
                                                                     throws GUICommandException,
                                                                            org.sourcejammer.util.SourceJammerConnectionException
GUICommandException
org.sourcejammer.util.SourceJammerConnectionException

setArchiveProperties

public void setArchiveProperties(org.sourcejammer.project.view.ArchiveProperties props)
                          throws GUICommandException,
                                 org.sourcejammer.util.SourceJammerConnectionException
GUICommandException
org.sourcejammer.util.SourceJammerConnectionException

getArchiveControllerList

public org.sourcejammer.project.view.UserInfo[] getArchiveControllerList()
                                                                  throws org.sourcejammer.util.SourceJammerConnectionException,
                                                                         GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

getArchiveUserList

public org.sourcejammer.project.view.UserInfo[] getArchiveUserList()
                                                            throws org.sourcejammer.util.SourceJammerConnectionException,
                                                                   GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

getUsers

private org.sourcejammer.project.view.UserInfo[] getUsers(java.lang.String type)
                                                   throws org.sourcejammer.util.SourceJammerConnectionException,
                                                          GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

getCurrentUserName

public java.lang.String getCurrentUserName()

setUserAdminStatus

public void setUserAdminStatus(java.lang.String userName,
                               boolean status)
                        throws org.sourcejammer.util.SourceJammerConnectionException,
                               GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

addUserToArchiveControllers

public void addUserToArchiveControllers(java.lang.String userName)
                                 throws org.sourcejammer.util.SourceJammerConnectionException,
                                        GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

addUserToArchiveUsers

public void addUserToArchiveUsers(java.lang.String userName)
                           throws org.sourcejammer.util.SourceJammerConnectionException,
                                  GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

removeUserFromArchiveControllers

public void removeUserFromArchiveControllers(java.lang.String userName)
                                      throws org.sourcejammer.util.SourceJammerConnectionException,
                                             GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

removeUserFromArchiveUsers

public void removeUserFromArchiveUsers(java.lang.String userName)
                                throws org.sourcejammer.util.SourceJammerConnectionException,
                                       GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

rollbackToVersion

public void rollbackToVersion(org.sourcejammer.project.view.NodeInfo flInfo,
                              long versionID,
                              org.sourcejammer.project.view.SJRequest request)
                       throws org.sourcejammer.util.SourceJammerConnectionException,
                              GUICommandException
Rolls back a file in the SourceJammer server to the specified previous version of the file.

org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

isConnected

public boolean isConnected()

getBaseRequest

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

readLocalFile

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

makeFileWritable

private void makeFileWritable(java.io.File file)
                       throws java.io.IOException
java.io.IOException

getRootAppFrame

public SJPrimaryWindow getRootAppFrame()

getProjectTree

public javax.swing.JTree getProjectTree()

getPrimaryTable

public javax.swing.JTable getPrimaryTable()

selectProject

public void selectProject(ProjectTreeNode nd)
Select the specified project in the project tree.


zipByteArrayIfNeeded

protected byte[] zipByteArrayIfNeeded(byte[] file,
                                      org.sourcejammer.project.view.SJRequest request,
                                      java.lang.String fileName)
                               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

getChecker

public SourceVersionChecker getChecker(java.io.File flDirectory)
                                throws java.io.IOException
java.io.IOException

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

getProxyPassword

public java.lang.String getProxyPassword()
Returns the proxyPassword.

Returns:
String

isProxyPasswordSet

public boolean isProxyPasswordSet()
Returns the proxyPasswordSet.

Returns:
boolean

setProxyPassword

public void setProxyPassword(java.lang.String proxyPassword)
Sets the proxyPassword.

Parameters:
proxyPassword - The proxyPassword to set

setProxyPasswordSet

public void setProxyPasswordSet(boolean proxyPasswordSet)
Sets the proxyPasswordSet.

Parameters:
proxyPasswordSet - The proxyPasswordSet to set


Copyright 2003 Soucejammer project.