|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.netbeans.lib.cvsclient.admin.StandardAdminHandler
A handler for administrative information that maintains full compatibility with the one employed by the original C implementation of a CVS client.
This implementation strives to provide complete compatibility with the standard CVS client, so that operations on locally checked-out files can be carried out by either this library or the standard client without causing the other to fail. Any such failure should be considered a bug in this library.
| Constructor Summary | |
StandardAdminHandler()
|
|
| Method Summary | |
java.util.Set |
getAllFiles(java.io.File directory)
Get all the files contained within a given directory that are known to CVS. |
java.util.Iterator |
getEntries(java.io.File directory)
Get the entries for a specified directory. |
Entry[] |
getEntriesAsArray(java.io.File directory)
Get the entries for a specified directory. |
Entry |
getEntry(java.io.File file)
Get the Entry for the specified file, if one exists |
java.lang.String |
getRepositoryForDirectory(java.lang.String directory,
java.lang.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. |
java.lang.String |
getStickyTagForDirectory(java.io.File directory)
Checks for presence of CVS/Tag file and returns it's value. |
void |
removeEntry(java.io.File file)
Remove the Entry for the specified file |
void |
setEntry(java.io.File file,
Entry entry)
Set the Entry for the specified file |
void |
updateAdminData(java.lang.String localDirectory,
java.lang.String repositoryPath,
Entry entry,
GlobalOptions globalOptions)
Create or update the administration files for a particular file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StandardAdminHandler()
| Method Detail |
public void updateAdminData(java.lang.String localDirectory,
java.lang.String repositoryPath,
Entry entry,
GlobalOptions globalOptions)
throws java.io.IOException
updateAdminData in interface AdminHandlerlocalDirectory - the local directory where the file in question
lives (the absolute path). Must not end with a slash.entry - the entry object for that file. If null, there is no
entry to add, and the Entries file will not have any entries added to
it (it will be created if it does not exist, however).repositoryPath - the path of the file in the repositoryglobalOptions - the global command options
java.io.IOException
public Entry getEntry(java.io.File file)
throws java.io.IOException
getEntry in interface AdminHandlerfile - the file
java.io.IOException - if the Entries file cannot be read
public Entry[] getEntriesAsArray(java.io.File directory)
throws java.io.IOException
directory - the directory for which to get the entries
java.io.IOException
public java.util.Iterator getEntries(java.io.File directory)
throws java.io.IOException
getEntries in interface AdminHandlerdirectory - the directory for which to get the entries
java.io.IOException
public void setEntry(java.io.File file,
Entry entry)
throws java.io.IOException
setEntry in interface AdminHandlerfile - the fileentry - the new entry
java.io.IOException - if an error occurs writing the details
public void removeEntry(java.io.File file)
throws java.io.IOException
removeEntry in interface AdminHandlerfile - the file whose entry is to be removed
java.io.IOException - if an error occurs writing the Entries file
public java.lang.String getRepositoryForDirectory(java.lang.String directory,
java.lang.String repository)
throws java.io.IOException
Repositoryin the CVS directory on the client. (This is the case in the standard CVS command-line tool). However, the path stored in that file is relative to the repository path
getRepositoryForDirectory in interface AdminHandlerdirectory - the directory
java.io.IOException
public java.util.Set getAllFiles(java.io.File directory)
throws java.io.IOException
getAllFiles in interface AdminHandlerdirectory - the directory to look in
java.io.IOExceptionpublic java.lang.String getStickyTagForDirectory(java.io.File directory)
getStickyTagForDirectory in interface AdminHandler
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||