|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.statcvs.model.CvsContent
Representation of a CVS Repository. The content is stored in a HashMap. The keys are the filenames and the values a reference to a CvsFile object.
CvsFile
Field Summary | |
static int |
DEFAULT_FILES
The default number of files a repository module has. |
Constructor Summary | |
CvsContent(java.lang.String name)
The CvsContent constructor. |
Method Summary | |
java.util.Vector |
getChangesPerUser(java.lang.String user)
Returns a list of files, the user commited in repository. |
java.util.Collection |
getDirectories()
Returns all directories of this repository |
java.util.Collection |
getDirectories(java.lang.String user)
Returns a Collection of directories for the specified user |
CvsFile |
getFile(java.lang.String file)
Returns the information for this file without deleting it. |
int |
getFileCount()
Returns the number of files in the repository. |
java.util.List |
getFilesByPrefix(java.lang.String prefix)
Returns a list of CvsFile objects which share
a given filename prefix, for example "dir/small_file.txt" and
"dir/subdir/file.txt" would be returned for prefix "dir/s". |
java.util.List |
getFilesInModule(java.lang.String module)
Returns a list of CvsFile objects which are
in a given directory. |
java.util.Iterator |
getFilesIterator()
Returns an iterator on the files in this repository. |
java.util.Date |
getFirstDate()
Returns the first Date when there
were changes on the repository. |
java.util.Date |
getLastDate()
Returns the latest Date when there
were changes on the repository. |
java.lang.String |
getModuleName()
Returns the name of currnet module. |
RevisionIterator |
getRevisionIterator()
Returns a RevisionIterator on all revisions
in the repository. |
RevisionIterator |
getRevisionIteratorByFilePrefix(java.lang.String prefix)
Returns a RevisionIterator which is filtered by
filename. |
RevisionIterator |
getRevisionIteratorByModule(java.lang.String module)
Returns a RevisionIterator which is filtered by
filename. |
java.util.HashSet |
getUserNames()
Returns the list of users, working on the repository. |
void |
insertFile(CvsFile entry)
Inserts the information about one file into the set of existing fileinformation. |
CvsFile |
removeFile(java.lang.String file)
Returns and deletes the information about the file. |
java.lang.String |
toString()
Returns a string representation of all files in the repository. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int DEFAULT_FILES
DEFAULT_FILES
in a module.
Constructor Detail |
public CvsContent(java.lang.String name)
name
- The name of the moduleMethod Detail |
public java.lang.String getModuleName()
public void insertFile(CvsFile entry)
entry
- The representation of the fileinformation.public java.util.Date getLastDate()
Date
when there
were changes on the repository.
public java.util.Date getFirstDate()
Date
when there
were changes on the repository.
public CvsFile getFile(java.lang.String file)
file
- The name of the file to get information from.
public CvsFile removeFile(java.lang.String file)
file
- The name of the file to delete and to get information from.
public java.util.Vector getChangesPerUser(java.lang.String user)
user
- The user.
public java.util.List getFilesInModule(java.lang.String module)
CvsFile
objects which are
in a given directory. Files in subdirectories are not included.
module
- A directory name to search for files
public java.util.List getFilesByPrefix(java.lang.String prefix)
CvsFile
objects which share
a given filename prefix, for example "dir/small_file.txt" and
"dir/subdir/file.txt" would be returned for prefix "dir/s".
prefix
- a filename prefix to search for
public int getFileCount()
public java.util.Iterator getFilesIterator()
public RevisionIterator getRevisionIterator()
RevisionIterator
on all revisions
in the repository. The revisions are in no particular order.
public RevisionIterator getRevisionIteratorByFilePrefix(java.lang.String prefix)
RevisionIterator
which is filtered by
filename. It contains only files that have a filename
starting with or equal to prefix
.
prefix
- a filename prefix
prefix
public RevisionIterator getRevisionIteratorByModule(java.lang.String module)
RevisionIterator
which is filtered by
filename. It contains only files that have a filename
starting with or equal to prefix
.
module
- name of the module to use
RevisionIterator
which is filtered by
filename. It contains only files that have a filename
starting with or equal to prefix
.public java.util.Collection getDirectories(java.lang.String user)
user
- to use as filter
public java.util.Collection getDirectories()
public java.lang.String toString()
public java.util.HashSet getUserNames()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |