|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class provides the interface to the repository.
Method Summary | |
boolean |
cleanupRepository()
This method helps to cleanup the deleted entries from the repository. |
DirectoryEntry |
createDirectoryEntry(java.lang.String directoryName)
Let users create a directory entry in repository. |
FileEntry |
createFileEntry(java.lang.String fileName,
java.lang.String authorName,
java.lang.String description,
java.util.Date versionDate,
java.io.InputStream inputStream)
Let users create a file entry in repository. |
java.util.List |
getAllEntries()
Gets all repository entries available right under the repository. |
java.util.Map |
getCompleteDirectoryEntryList()
It returns all the directory entries in the repository as a map which holds the entryID as key and entryName as the value. |
java.lang.String |
getEntryNameToShowInUI(RepositoryEntry entry)
It returns the string representation of the input entry to be shown in UI. |
RepositoryEntry |
getRepositoryEntry(long entryID)
Gets the requested Repository Entry in the repository. |
boolean |
moveEntry(RepositoryEntry sourceEntry,
RepositoryEntry targetEntry)
Moves the contents of sourceEntry to the targetEntry. |
Method Detail |
public RepositoryEntry getRepositoryEntry(long entryID)
entryID
- ID which identifies the entry.
public java.util.List getAllEntries()
public DirectoryEntry createDirectoryEntry(java.lang.String directoryName)
directoryName
- Name with which the directory entry needs to be created.
public FileEntry createFileEntry(java.lang.String fileName, java.lang.String authorName, java.lang.String description, java.util.Date versionDate, java.io.InputStream inputStream)
fileName
- Entry name with which the file entry needs to be created.authorName
- Author name to be stored with meta info of the first version of the file.description
- Description to be stored with meta info of the first version of the file.versionDate
- Version Date to be stored with meta info of the first version of the file.inputStream
- InputStream of the information to be checked-in as the first version of the file.
public boolean cleanupRepository()
public boolean moveEntry(RepositoryEntry sourceEntry, RepositoryEntry targetEntry) throws java.lang.IllegalArgumentException
sourceEntry
- RepositoryEntry that needs to be moved.targetEntry
- RepositoryEntry where the source needs to be moved.
java.lang.IllegalArgumentException
- if the targetEntry is not a directory Entry.public java.util.Map getCompleteDirectoryEntryList()
Key Value --- ----- 1234 REPOSITORY/abc/xyz.txt
public java.lang.String getEntryNameToShowInUI(RepositoryEntry entry)
entry
- The entry would like to be shown in UI.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |