public interface AdminHandler extends Serializable
Hence it is envisaged that, eventually, a client could add additional files for higher performance or even change the mechanism for storing the information completely.
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists(File file)
Tests for existence of the given file.
|
Set<File> |
getAllFiles(File directory)
Get all the files contained within a given directory that are known to
CVS.
|
Iterator<Entry> |
getEntries(File directory)
Get the entries for a specified directory.
|
Entry |
getEntry(File file)
Get the Entry for the specified file, if one exists
|
String |
getRepositoryForDirectory(String directory,
String repository)
Get the repository path for a given directory, for example in the
directory /home/project/foo/bar, the repository directory might be
/usr/cvs/foo/bar.
|
String |
getStickyTagForDirectory(File directory)
Checks for presence of CVS/Tag file and returns it's value.
|
void |
removeEntry(File file)
Remove the Entry for the specified file
|
void |
setEntry(File file,
Entry entry)
Set the Entry for the specified file
|
void |
updateAdminData(String localDirectory,
String repositoryPath,
Entry entry,
GlobalOptions globalOptions)
Create or update the administration files for a particular file.
|
void updateAdminData(String localDirectory, String repositoryPath, Entry entry, GlobalOptions globalOptions) throws IOException
localDirectory - the local directory where the file in question lives (the
absolute path). Must not end with a slash.repositoryPath - the path of the file in the repositoryentry - the entry object for that fileglobalOptions - the global command optionsIOExceptionEntry getEntry(File file) throws IOException
file - the fileIOException - if the Entries file cannot be readIterator<Entry> getEntries(File directory) throws IOException
directory - the directory for which to get the entriesIOExceptionvoid setEntry(File file, Entry entry) throws IOException
file - the fileentry - the new entryIOException - if an error occurs writing the detailsString getRepositoryForDirectory(String directory, String repository) throws IOException
Repositoryin the CVS directory on the client. (This is the case in the standard CVS command-line tool)
directory - the directorythe - repository path on the server, e.g. /home/bob/cvs. Must not
end with a slash.IOExceptionvoid removeEntry(File file) throws IOException
file - the file whose entry is to be removedIOException - if an error occurs writing the Entries fileSet<File> getAllFiles(File directory) throws IOException
directory - the directory to look inIOExceptionString getStickyTagForDirectory(File directory)
boolean exists(File file)
file - file to test for existenceCopyright © 2013. All rights reserved.