| java.lang.Object org.sourcejammer.client.gui.CommandCentral
CommandCentral | public class CommandCentral implements SJRequestParams,SJResponseParams(Code) | | Title: $FileName: CommandCentral.java$
version: $VerNum: 34$ author: $AuthorName: Rob MacGrogan$
author: $Description: Central singleton that handles issuing all author: commands and performing all file system actions for GUI.$
author: $KeyWordsOff: $
author: Central singleton that handles issuing all commands and performing all author: file system actions for GUI. |
Method Summary | |
public void | addFile(long parentUniqueID, String newFileName, String localFileNameLocation, int fileType, int historyType, String description, String afterAddAction, SJRequest request) | public void | addUserToArchiveControllers(String userName) | public void | addUserToArchiveUsers(String userName) | public void | branchAndCheckIn(NodeInfo fileNode, java.io.File flTargetDirectory, String comment, String afterCheckInAction, long parentProjectID, String identifier, SJRequest request) Checks in the file. | public void | branchFile(NodeInfo flInfo, long parentProjectID, String comment, String identifier, SJRequest request) | public void | branchProject(long projectID, String comment, String identifier) | public void | changeFileDescription(NodeInfo flInfo, String newDescription, SJRequest request) | public void | changePassword(String sPassword) | public void | changePassword(String sPassword, String userName) | public boolean | checkDeletedNodeShareStatus(long projectID, int itemIndex) | public void | checkInFile(NodeInfo fileNode, java.io.File flTargetDirectory, String comment, String afterCheckInAction, SJRequest request) | public void | checkOutFile(long fileID, String fileName, java.io.File flTargetDirectory) | public void | checkOutFile(long fileID, String fileName, java.io.File flTargetDirectory, int eolType, SJRequest request) | public void | checkOutFileToStream(long fileID, OutputStream stmOut, int eolType) | public Project | connectToArchive() | public void | copyFile(NodeInfo flInfo, long fromProjectID, long toProjectID, SJRequest request) | public void | copyProject(long projectID, long toProjectID, String newProjectName) | public String | currentURL() | public boolean | deleteArchive(String archiveName) Returns true if the archive deleted is the current archive and
the user is now disconnected. | public void | deleteRemoved(long lParentID, int iItemNumber) | public void | deleteRemoved(long lParentID, int iItemNumber, boolean deleteAllShares) | public boolean | disconnect() | public boolean | doesProjectContainShares(long projectID) | public void | forceCheckIn(NodeInfo fileNode, java.io.File flTargetDirectory, String comment, String afterCheckInAction, SJRequest request) Force local version of file into archive without checking file out. | public String[] | getAllCurrentFileNames() | public UserInfo[] | getArchiveControllerList() | public String | getArchiveName() | public String[] | getArchiveNameList() Returns list of archives available on server user is currently
connected to. | public ArchiveProperties | getArchiveProperties() | public UserInfo[] | getArchiveUserList() | public SJRequest | getBaseRequest() | public String | getBranchReport(long fileID, SJRequest request) | public void | getChangeList(long labelID, int newerVer, int olderVer, java.io.File targetFile, int eolType) | public SourceVersionChecker | getChecker(java.io.File flDirectory) | public int | getClientDefaultEOLType() Gets the default EOL type for the client from AppConfig. | public UserInfo[] | getCompleteUserList() | public SourceVersionChecker | getCurrentProjectChecker() | public ProjectTreeNode | getCurrentTreeNode() | public String | getCurrentUserName() | public void | getFile(NodeInfo fileInfo, java.io.File flTargetDirectory, boolean setReadOnly, RepeatingResponse repeating) | public void | getFile(NodeInfo fileInfo, java.io.File flTargetDirectory, int eolType, boolean setReadOnly, RepeatingResponse repeating, SJRequest request) | public void | getFile(NodeInfo fileInfo, java.io.File flTargetDirectory, int eolType, boolean printMessages, boolean setReadOnly, RepeatingResponse repeating, SJRequest request) | public org.sourcejammer.project.view.File | getFileInfo(NodeInfo flInfo, SJRequest request) | public long | getFileLatestVersionID(long lFileID) | public void | getFileToStream(long lFileID, OutputStream stmOut, int eolType) | public long | getFileUniqueID(String sjPath) Returns unique id of file based on full path to sourcejammer node. | public void | getFileVersion(NodeInfo flInfo, java.io.File flTargetDirectory, int iVersion, long versionID, boolean setReadOnly, RepeatingResponse repeating) | public void | getFileVersion(NodeInfo flInfo, java.io.File flTargetDirectory, int iVersion, long versionID, boolean setReadOnly, RepeatingResponse repeating, SJRequest request) | public void | getFileVersion(NodeInfo flInfo, java.io.File flTargetDirectory, int iVersion, long versionID, boolean setReadOnly, boolean printMessages, RepeatingResponse repeating) | public void | getFileVersion(NodeInfo flInfo, java.io.File flTargetDirectory, int iVersion, long versionID, int eolType, boolean setReadOnly, RepeatingResponse repeating, SJRequest request) | public void | getFileVersion(NodeInfo flInfo, java.io.File flTargetDirectory, int iVersion, long versionID, int eolType, boolean setReadOnly, boolean printMessages, RepeatingResponse repeating, SJRequest request) | public GuiConf | getGuiConf() | public static CommandCentral | getInstance(SJPrimaryWindow rootApplicationFrame) | public static CommandCentral | getInstance() | public void | getLabel(long labelID, int verNumber, java.io.File flToDirectory, boolean bBuildSubDirs, int eolType, boolean setReadOnly, 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). | public NodeList | getLabelList() | public String | getPassword() | public SOAPPortal | getPortal() | public JTable | getPrimaryTable() | public TableColumnModel | getPrimaryTableColumnModel() | public JTree | getProjectTree() | public long | getProjectUniqueID(String sjPath) Returns unique id of project based on full path to sourcejammer node. | public String | getProxyPassword() Returns the proxyPassword. | public SJPrimaryWindow | getRootAppFrame() | public String[] | getSelectedFileNames() | public NodeInfo | getSelectedFileNodeInfo() | public NodeInfo | getSelectedFileNodeInfo(String name) | public NodeInfo[] | getSelectedFilesNodeInfo() | public String | getUserName() | public boolean | hasLocalFileChanged(String fileName, java.io.File flTargetDir) | public boolean | isAppWindowRendered() | public boolean | isConnected() | public boolean | isProxyPasswordSet() Returns the proxyPasswordSet. | public void | makeArchive(String name, int implementation, String path) | public void | makeArchiveDisconnected(String userName, String password, String url, String name, int implementation, String path) | public void | makeLabel(long labelRootProjectID, String labelName, String description) | public long | makeProject(long parentProjectID, String newProjectName) Make a new project on the server. | public void | makeUser(String sUserName, String sPassword, String sFullName) | public void | moveFile(NodeInfo flInfo, long fromProjectID, long toProjectID, SJRequest request) | public void | moveProject(long projectID, long toProjectID, String newProjectName) | public void | rebuildFileView() | public void | rebuildFileView(boolean fromRoot) | public void | rebuildLabel(long labelId, long parentProjectID, String comment, boolean buildChangeList) Rebuild the specified label. | public void | removeAllSharesOfFile(NodeInfo flInfo, SJRequest request) | public void | removeFileFromParent(NodeInfo flInfo, long parentID, SJRequest request) | public void | removeFileShare(NodeInfo flInfo, long fromProjectID, SJRequest request) | public void | removeProjectAndAllShares(long projectID) | public void | removeProjectFromParent(long projectID, long parentID) | public void | removeProjectShare(long projectID) | public void | removeUser(String sUserName) | public void | removeUserFromArchiveControllers(String userName) | public void | removeUserFromArchiveUsers(String userName) | public void | renameFile(NodeInfo flInfo, long parentID, String newName, SJRequest request) | public void | renameProject(long projectID, long parentID, String newName) | public void | resetAppTitle() | public void | restoreRemoved(long parentID, int iItemNumber, String newName) | protected long | retrieveFileFromServer(DownloadFileIdentifier id, SJResponse response) Returns temp file id. | public Project | retrieveProject(long projectID) Retrieve info about a project from the server.
Migrated to 1.1 unique ID approach. | public void | rollbackToVersion(NodeInfo flInfo, long versionID, SJRequest request) Rolls back a file in the SourceJammer server to the specified previous
version of the file. | public void | selectProject(ProjectTreeNode nd) Select the specified project in the project tree. | protected long | sendFileToServer(java.io.File fl, SJRequest request) | public SJResponse | sendRequest(SJRequest request, String method) | public void | setAlternateOut(PrintStream altOut) This method can be called to set the static out to some PrintStream
other than the message pane. | public void | setAppWindowRendered(boolean b) | public synchronized void | setArchiveConnectInfo(String archive, String userName, String password) | public void | setArchiveProperties(ArchiveProperties props) | public void | setCurrentTreeNode(ProjectTreeNode node) | public void | setDisconnectedDisplaySettings() | public void | setPrimaryTableColumnModel(TableColumnModel model) | public void | setProxyPassword(String proxyPassword) Sets the proxyPassword. | public void | setProxyPasswordSet(boolean proxyPasswordSet) Sets the proxyPasswordSet. | public void | setServerURL(String url) | public void | setUserAdminStatus(String userName, boolean status) | public void | shareFile(NodeInfo flInfo, long toProjectID, SJRequest request) | public void | shareProject(long projectID, long toProjectID, String newProjectName) | public void | undoCheckOut(long fileID, String sFileName, java.io.File flTargetDirectory, SJRequest request) | public RemovedItem[] | viewRemoved(long projectID) | public String | viewVersionComment(long versionID) | protected byte[] | zipByteArrayIfNeeded(byte[] file, SJRequest request, String fileName) Checks if a byte array about to be sent is larger than the minimum
unzipped file size. |
getAllCurrentFileNames | public String[] getAllCurrentFileNames()(Code) | | |
getClientDefaultEOLType | public int getClientDefaultEOLType()(Code) | | Gets the default EOL type for the client from AppConfig.
|
getFileLatestVersionID | public long getFileLatestVersionID(long lFileID)(Code) | | |
getFileVersion | public void getFileVersion(NodeInfo flInfo, java.io.File flTargetDirectory, int iVersion, long versionID, int eolType, boolean setReadOnly, boolean printMessages, RepeatingResponse repeating, SJRequest request) throws SourceJammerConnectionException, GUICommandException, IOException(Code) | | |
getProxyPassword | public String getProxyPassword()(Code) | | Returns the proxyPassword.
String |
getSelectedFileNames | public String[] getSelectedFileNames()(Code) | | |
getSelectedFileNodeInfo | public NodeInfo getSelectedFileNodeInfo()(Code) | | |
getSelectedFilesNodeInfo | public NodeInfo[] getSelectedFilesNodeInfo()(Code) | | |
isAppWindowRendered | public boolean isAppWindowRendered()(Code) | | |
isConnected | public boolean isConnected()(Code) | | |
isProxyPasswordSet | public boolean isProxyPasswordSet()(Code) | | Returns the proxyPasswordSet.
boolean |
renameProject | public void renameProject(long projectID, long parentID, String newName)(Code) | | |
resetAppTitle | public void resetAppTitle()(Code) | | |
restoreRemoved | public void restoreRemoved(long parentID, int iItemNumber, String newName)(Code) | | |
selectProject | public void selectProject(ProjectTreeNode nd)(Code) | | Select the specified project in the project tree.
|
setAlternateOut | public void setAlternateOut(PrintStream altOut)(Code) | | 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.
|
setAppWindowRendered | public void setAppWindowRendered(boolean b)(Code) | | |
setDisconnectedDisplaySettings | public void setDisconnectedDisplaySettings()(Code) | | |
setProxyPassword | public void setProxyPassword(String proxyPassword)(Code) | | Sets the proxyPassword.
Parameters: proxyPassword - The proxyPassword to set |
setProxyPasswordSet | public void setProxyPasswordSet(boolean proxyPasswordSet)(Code) | | Sets the proxyPasswordSet.
Parameters: proxyPasswordSet - The proxyPasswordSet to set |
zipByteArrayIfNeeded | protected byte[] zipByteArrayIfNeeded(byte[] file, SJRequest request, String fileName) throws IOException(Code) | | 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.
|
|
|