|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jmonks.dms.versioncontrol.ri.DefaultRepositoryEntry org.jmonks.dms.versioncontrol.ri.DefaultDirectoryEntry
This represents Directory entry in repository. It lets the users to create directory entries and file entries. This expects entry details in "entryID.vc" configuration file. Following is the format in the file.
124.vc: entry.id=1133921622742 entry.name=stu entry.type=0
Field Summary | |
protected java.lang.String |
absoluteDirectoryName
|
private static org.apache.log4j.Logger |
logger
|
Fields inherited from class org.jmonks.dms.versioncontrol.ri.DefaultRepositoryEntry |
absoluteConfigFilePath, deletedDate, ENTRY_DELETE_KEY_NAME, ENTRY_DELETED_DATE_KEY_NAME, ENTRY_ID_KEY_NAME, ENTRY_NAME_KEY_NAME, ENTRY_PARENT_ENTRY_ID_KEY_NAME, ENTRY_TYPE_DIRECTORY, ENTRY_TYPE_FILE, ENTRY_TYPE_KEY_NAME, entryID, entryName, isDeleted, parentEntryID |
Constructor Summary | |
protected |
DefaultDirectoryEntry()
Default constructor to support the creation on singleton Default Repository object. |
protected |
DefaultDirectoryEntry(java.io.File configFile,
java.util.ResourceBundle configBundle)
Create the instance of DirectoryEntry from configuration file to load existing directory entry in repository. |
protected |
DefaultDirectoryEntry(java.lang.Object parent,
java.lang.String directoryName,
java.lang.String parentName)
Create the instance of DirectoryEntry to create new Directory Entry in repository. |
Method Summary | |
DirectoryEntry |
createDirectoryEntry(java.lang.String directoryName)
Let users create a directory entry in the system. |
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 the system. |
(package private) java.lang.String |
getAbosluteConfigFileName()
|
(package private) java.lang.String |
getAbsoluteDirectoryEntryName()
|
java.util.List |
getAllEntries()
Gets all repository entries available under this entry. |
boolean |
isExistingEntry(java.lang.String entryName,
java.lang.String entryType)
To find out the is the entry already exist in repository. |
(package private) boolean |
moveEntry(DefaultRepositoryEntry sourceEntry)
This moves the entry specified in sourceEntry onto itself. |
boolean |
remove()
This process actually permanently delete the entry from repository. |
java.lang.String |
toString()
|
Methods inherited from class org.jmonks.dms.versioncontrol.ri.DefaultRepositoryEntry |
cancelDelete, compareTo, delete, getDeletedDate, getEntryID, getEntryName, getEntryType, getParentEntryID, getParentRepositoryEntry, getRepositoryEntry, isDeleted |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jmonks.dms.versioncontrol.api.RepositoryEntry |
cancelDelete, delete, getDeletedDate, getEntryID, getEntryName, getEntryType, getParentEntryID, getParentRepositoryEntry, isDeleted |
Field Detail |
private static final org.apache.log4j.Logger logger
protected java.lang.String absoluteDirectoryName
Constructor Detail |
protected DefaultDirectoryEntry()
protected DefaultDirectoryEntry(java.io.File configFile, java.util.ResourceBundle configBundle)
configFile
- File to find out the absolute paths.configBundle
- Resource bundle to read the properties in configuration file.protected DefaultDirectoryEntry(java.lang.Object parent, java.lang.String directoryName, java.lang.String parentName)
directoryName
- name of the entry needs to be created.parentName
- Location where the directory needs to be created.Method Detail |
public java.util.List getAllEntries()
DirectoryEntry
getAllEntries
in interface DirectoryEntry
DirectoryEntry.getAllEntries()
public FileEntry createFileEntry(java.lang.String fileName, java.lang.String authorName, java.lang.String description, java.util.Date versionDate, java.io.InputStream inputStream)
DirectoryEntry
createFileEntry
in interface DirectoryEntry
fileName
- Entry name with which the file entry needs to be created.authorName
- Authro 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.
org.jmonks.dms.versioncontrol.api.DirectoryEntry#createFileEntry()
public DirectoryEntry createDirectoryEntry(java.lang.String directoryName)
DirectoryEntry
createDirectoryEntry
in interface DirectoryEntry
directoryName
- Name with which the directory entry needs to be created.
org.jmonks.dms.versioncontrol.api.DirectoryEntry#createDirectoryEntry()
public boolean isExistingEntry(java.lang.String entryName, java.lang.String entryType)
isExistingEntry
in interface DirectoryEntry
entryName
- Entry name to create.entryType
- Type of the entry to find out.
java.lang.String getAbsoluteDirectoryEntryName()
java.lang.String getAbosluteConfigFileName()
public boolean remove()
RepositoryEntry
remove
in interface RepositoryEntry
RepositoryEntry.remove()
public java.lang.String toString()
toString
in class DefaultRepositoryEntry
Object.toString()
boolean moveEntry(DefaultRepositoryEntry sourceEntry)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |