|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jmonks.dms.versioncontrol.ri.DefaultRepositoryEntry
| Field Summary | |
protected java.lang.String |
absoluteConfigFilePath
Holds the absolute path of configuration file. |
protected java.util.Date |
deletedDate
|
static java.lang.String |
ENTRY_DELETE_KEY_NAME
|
static java.lang.String |
ENTRY_DELETED_DATE_KEY_NAME
|
static java.lang.String |
ENTRY_ID_KEY_NAME
|
static java.lang.String |
ENTRY_NAME_KEY_NAME
|
static java.lang.String |
ENTRY_PARENT_ENTRY_ID_KEY_NAME
|
static java.lang.String |
ENTRY_TYPE_DIRECTORY
|
static java.lang.String |
ENTRY_TYPE_FILE
|
static java.lang.String |
ENTRY_TYPE_KEY_NAME
|
protected long |
entryID
|
protected java.lang.String |
entryName
|
protected boolean |
isDeleted
|
private static org.apache.log4j.Logger |
logger
|
protected long |
parentEntryID
|
| Constructor Summary | |
protected |
DefaultRepositoryEntry()
Restrict the instantiaon of Repository Entry. |
| Method Summary | |
boolean |
cancelDelete()
This actually takes off the delete mark on the entry. |
int |
compareTo(java.lang.Object object)
|
boolean |
delete()
This marks the entry for delete. |
java.util.Date |
getDeletedDate()
Gets the deleted date of this entry. |
long |
getEntryID()
This returns the unique ID of the entry. |
java.lang.String |
getEntryName()
This returns name of the entry. |
int |
getEntryType()
Returns the entry type. |
long |
getParentEntryID()
Returns the parent entry ID. |
RepositoryEntry |
getParentRepositoryEntry()
Gets the parent repository entry. |
static DefaultRepositoryEntry |
getRepositoryEntry(java.io.File configFile)
This method will act as a factory method to create the instances of RepositoryEntries based on the configuration file. |
boolean |
isDeleted()
Returns the deleted status of the entry. |
java.lang.String |
toString()
|
private boolean |
updateConfigFileForDelete(boolean delete)
|
| 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 |
remove |
| Field Detail |
protected long entryID
protected java.lang.String entryName
protected long parentEntryID
protected boolean isDeleted
protected java.util.Date deletedDate
protected java.lang.String absoluteConfigFilePath
public static final java.lang.String ENTRY_TYPE_KEY_NAME
public static final java.lang.String ENTRY_ID_KEY_NAME
public static final java.lang.String ENTRY_NAME_KEY_NAME
public static final java.lang.String ENTRY_PARENT_ENTRY_ID_KEY_NAME
public static final java.lang.String ENTRY_DELETE_KEY_NAME
public static final java.lang.String ENTRY_DELETED_DATE_KEY_NAME
public static final java.lang.String ENTRY_TYPE_FILE
public static final java.lang.String ENTRY_TYPE_DIRECTORY
private static final org.apache.log4j.Logger logger
| Constructor Detail |
protected DefaultRepositoryEntry()
| Method Detail |
public static DefaultRepositoryEntry getRepositoryEntry(java.io.File configFile)
public RepositoryEntry getParentRepositoryEntry()
RepositoryEntry
getParentRepositoryEntry in interface RepositoryEntryorg.jmonks.dms.versioncontrol.api.ReposiotryEntry#getParentRespositoryEntry()public long getEntryID()
RepositoryEntry
getEntryID in interface RepositoryEntryRepositoryEntry.getEntryID()public java.lang.String getEntryName()
RepositoryEntry
getEntryName in interface RepositoryEntryRepositoryEntry.getEntryName()public long getParentEntryID()
getParentEntryID in interface RepositoryEntrypublic int getEntryType()
getEntryType in interface RepositoryEntrypublic java.lang.String toString()
Object.toString()public int compareTo(java.lang.Object object)
compareTo in interface java.lang.Comparablejava.util.Comparable#comapreTo(java.lang.Object)public boolean delete()
RepositoryEntry
delete in interface RepositoryEntrypublic boolean isDeleted()
RepositoryEntry
isDeleted in interface RepositoryEntryprivate boolean updateConfigFileForDelete(boolean delete)
public boolean cancelDelete()
RepositoryEntry
cancelDelete in interface RepositoryEntrypublic java.util.Date getDeletedDate()
RepositoryEntry
getDeletedDate in interface RepositoryEntry
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||