| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A default implementation of VcsProvider which defines basic functinality of the provider.
The implementation may inherit from this class to reuse this functionality.
| Field Summary | |
private File | myCurrentWorkingDirectory |
private String | myPassword |
private String | myRootProject |
private File | myRootWorkingDirectory |
private String | myUser |
| Method Summary | |
void | addListener(VcsProviderListener listener)Adds provider event listenter |
void | changeWorkingDirectory(File workingDirectory)Changes the value of internal current working directory field. |
void | clearAdvancedOptions(String command)Throws CapabilityException. |
void | endSession()Clears all internal fields. |
int | execAddFiles(String[] files, int[] fileTypes, String comment, boolean makeCheckedOut, boolean removeLocal)Throws CapabilityException. |
int | execChangeFileType(String fileName, int newFileType) |
int | execCheckInFiles(String[] files, String comment, boolean keepCheckedOut, boolean removeLocal, boolean wholeProject, boolean projectRecursively, VcsCommitInfo info)Throws CapabilityException. |
int | execCheckOutFiles(String[] files, String comment, boolean wholeProject, boolean projectRecursively, VcsUpdateInfo updateInfo)Throws CapabilityException. |
VcsVersionInfo | execFindVersionChangeAuthor(String fileName, String versionId, int lineNo)Find the first version in which specified string appears A session must be started prior to call this method. |
int | execGetFileHistory(String file, List versions) |
int | execGetFileInfo(String[] files, boolean wholeProject, boolean projectRecursively, List fileInfo)Throws CapabilityException. |
int | execGetFiles(String[] files, boolean wholeProject, boolean projectRecursively, VcsUpdateInfo updateInfo)Throws CapabilityException. |
int | execGetFilesStatuses(String[] files, int[] statuses)Throws CapabilityException. |
int | execGetMissingFiles(Vector files)Throws CapabilityException. |
int | execGetRawFileDiff(String fileName, boolean ignoreCase, boolean ignoreSpace, StringBuffer diff)Throws CapabilityException. |
int | execGetRawFilesHistory(String[] files, boolean wholeProject, boolean projectRecursively, StringBuffer buffer) |
int | execGetRawVersionsDiff(String versionID1, String versionID2, boolean ignoreCase, boolean ignoreSpace, StringBuffer buf)Throws CapabilityException. |
int | execGetVersion(String versionID, java.io.OutputStream stream) |
int | execLockFiles(String[] files, boolean wholeProject, boolean projectRecursively)Throws CapabilityException. |
int | execRemoveFiles(String[] files, String comment, boolean removeLocal)Throws CapabilityException. |
int | execRenameFile(String fileName, String newFileName)This method should be overridden by subclass if the command is supported. |
int | execSearchFileHistory(String file, String pattern, List searchResult) |
int | execSelectProject(String defaultProject, File workingDir, boolean createNewProject, StringBuffer selectedProject)Throws CapabilityException. |
int | execSetFilesLabel(String[] files, String label, boolean wholeProject, boolean projectRecursively)Throws CapabilityException. |
int | execShowAdvancedOptions(String command, boolean project)Throws CapabilityException. |
int | execShowFileDiff(String fileName, boolean ignoreCase, boolean ignoreSpace)Throws CapabilityException. |
int | execShowFileProperties(String fileName)Throws CapabilityException. |
int | execShowFilesHistory(String[] files, boolean wholeProject, boolean projectRecursively)Throws CapabilityException. |
int | execUnCheckOutFiles(String[] files, boolean removeLocal, boolean wholeProject, boolean projectRecursively)Throws CapabilityException. |
int | execUnLockFiles(String[] files, boolean wholeProject, boolean projectRecursively)Throws CapabilityException. |
int | execUnSetFilesLabel(String[] files, String label, boolean wholeProject, boolean projectRecursively) |
int | execUpdateFiles(String[] files, boolean wholeProject, boolean projectRecursively, VcsUpdateInfo updateInfo)Throws CapabilityException. |
void | free()Clears all internal fields. |
String | getCurrentProject()Returns root project + path from root working directory to current working directory. |
File | getCurrentWorkingDirectory()Returns value of internal current project field. |
int | getFileStatus(String filename)Returns FILE_STATUS_NONE. |
String | getID()Returns "DEFAULT" as provider ID. |
String | getRootProject()Returns value of internal root project field. |
File | getRootWorkingDirectory()Returns value of internal root working directory field. |
boolean | isSessionStarted()Returns true if both internal root project and working directories are not null. |
boolean | isValid()Always returns false. |
boolean | isVcsInternalFile(String fileName) |
void | removeListener(VcsProviderListener listener)Removes provider event listenter |
void | setListener(VcsProviderListener listener)Set provider event listenter |
void | startSession(String rootProject, File rootWorkingDir, String user, String password)Initializes internal root project and working directory values. |
void | startSession(String rootProject, File rootWorkingDir) |
| Field Detail |
private File myCurrentWorkingDirectory
private String myPassword
private String myRootProject
private File myRootWorkingDirectory
private String myUser
| Method Detail |
public void addListener(VcsProviderListener listener)
public void changeWorkingDirectory(File workingDirectory)
throws VcsProviderException
public void clearAdvancedOptions(String command)
throws VcsProviderException
public void endSession()
throws VcsProviderException
public int execAddFiles(String[] files, int[] fileTypes, String comment, boolean makeCheckedOut, boolean removeLocal)
throws VcsProviderException
public int execChangeFileType(String fileName, int newFileType)
throws VcsProviderException
public int execCheckInFiles(String[] files, String comment, boolean keepCheckedOut, boolean removeLocal, boolean wholeProject, boolean projectRecursively, VcsCommitInfo info)
throws VcsProviderException
public int execCheckOutFiles(String[] files, String comment, boolean wholeProject, boolean projectRecursively, VcsUpdateInfo updateInfo)
throws VcsProviderException
public VcsVersionInfo execFindVersionChangeAuthor(String fileName, String versionId, int lineNo)
throws VcsProviderException
public int execGetFileHistory(String file, List versions)
throws VcsProviderException
public int execGetFileInfo(String[] files, boolean wholeProject, boolean projectRecursively, List fileInfo)
throws VcsProviderException
public int execGetFiles(String[] files, boolean wholeProject, boolean projectRecursively, VcsUpdateInfo updateInfo)
throws VcsProviderException
public int execGetFilesStatuses(String[] files, int[] statuses)
throws VcsProviderException
public int execGetMissingFiles(Vector files)
throws VcsProviderException
public int execGetRawFileDiff(String fileName, boolean ignoreCase, boolean ignoreSpace, StringBuffer diff)
throws VcsProviderException
public int execGetRawFilesHistory(String[] files, boolean wholeProject, boolean projectRecursively, StringBuffer buffer)
throws VcsProviderException
public int execGetRawVersionsDiff(String versionID1, String versionID2, boolean ignoreCase, boolean ignoreSpace, StringBuffer buf)
throws VcsProviderException
public int execGetVersion(String versionID, java.io.OutputStream stream)
throws VcsProviderException
public int execLockFiles(String[] files, boolean wholeProject, boolean projectRecursively)
throws VcsProviderException
public int execRemoveFiles(String[] files, String comment, boolean removeLocal)
throws VcsProviderException
public int execRenameFile(String fileName, String newFileName)
throws VcsProviderException
public int execSearchFileHistory(String file, String pattern, List searchResult)
throws VcsProviderException
public int execSelectProject(String defaultProject, File workingDir, boolean createNewProject, StringBuffer selectedProject)
throws VcsProviderException
public int execSetFilesLabel(String[] files, String label, boolean wholeProject, boolean projectRecursively)
throws VcsProviderException
public int execShowAdvancedOptions(String command, boolean project)
throws VcsProviderException
public int execShowFileDiff(String fileName, boolean ignoreCase, boolean ignoreSpace)
throws VcsProviderException
public int execShowFileProperties(String fileName)
throws VcsProviderException
public int execShowFilesHistory(String[] files, boolean wholeProject, boolean projectRecursively)
throws VcsProviderException
public int execUnCheckOutFiles(String[] files, boolean removeLocal, boolean wholeProject, boolean projectRecursively)
throws VcsProviderException
public int execUnLockFiles(String[] files, boolean wholeProject, boolean projectRecursively)
throws VcsProviderException
public int execUnSetFilesLabel(String[] files, String label, boolean wholeProject, boolean projectRecursively)
throws VcsProviderException
public int execUpdateFiles(String[] files, boolean wholeProject, boolean projectRecursively, VcsUpdateInfo updateInfo)
throws VcsProviderException
public void free()
public String getCurrentProject()
public File getCurrentWorkingDirectory()
public int getFileStatus(String filename)
throws VcsProviderException
public String getID()
public String getRootProject()
public File getRootWorkingDirectory()
public boolean isSessionStarted()
public boolean isValid()
public boolean isVcsInternalFile(String fileName)
public void removeListener(VcsProviderListener listener)
public void setListener(VcsProviderListener listener)
public void startSession(String rootProject, File rootWorkingDir, String user, String password)
throws VcsProviderException
public void startSession(String rootProject, File rootWorkingDir)
throws VcsProviderException
| Association Links |
to Class java.io.File
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||