|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sas.edir.content.FileManager.Key
This is the abstract class that all keys must extend in order to store content in the FileManager.
Constructor Summary | |
protected |
FileManager.Key()
Null constuctor |
|
FileManager.Key(java.lang.Object uid)
Constuctor to create a new Key based on a unique id. |
|
FileManager.Key(java.lang.String user,
java.lang.Object uid)
Constuctor to create a new Key based on a user and a unique id A null or FileManager.ROOT user will store the data associated with this key in the root directory of the FileManager. |
Method Summary | |
abstract void |
delete()
Notifies the key that the data associated with this key has been deleted Keys will throw an exception if it cannot reconcile the delete and the data will not be removed from the FileManager. |
boolean |
equals(java.lang.Object object)
Compares two Objects for equality. |
abstract java.lang.Object |
fetch()
Notifies the key that the data associated with this key no longer exists in the FileManager, but gives the key a chance to re-fetch the data if desired. |
java.lang.Object |
getUID()
Returns the Unique ID associated with this key |
java.lang.String |
getUser()
Returns the User associated with this key |
int |
hashCode()
Returns a hash code value for the object. |
abstract boolean |
isExpired()
Returns true if this key has expired |
abstract void |
save()
Notifies the key that the data associated with this key has been saved Keys will throw an exception if it cannot reconcile the save and the data will be removed from the FileManager. |
java.lang.String |
toString()
Return key as a String |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected FileManager.Key()
public FileManager.Key(java.lang.Object uid)
public FileManager.Key(java.lang.String user, java.lang.Object uid)
Method Detail |
public final java.lang.String getUser()
public final java.lang.Object getUID()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public abstract boolean isExpired()
public abstract void save() throws java.lang.Exception
public abstract void delete() throws java.lang.Exception
public abstract java.lang.Object fetch()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |