com.sas.edir.content
Class DateExpirationKey
java.lang.Object
|
+--com.sas.edir.content.FileManager.Key
|
+--com.sas.edir.content.DateExpirationKey
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- StoredProcessResultKey
- public class DateExpirationKey
- extends FileManager.Key
Date expiration key.
- Version:
- 1.0
- Author:
- SAS
- See Also:
- Serialized Form
Constructor Summary |
DateExpirationKey(java.lang.String user,
java.lang.Object uid,
java.util.Date expiration)
|
Method Summary |
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. |
void |
expire()
|
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.util.Date |
getExpiration()
|
boolean |
isExpired()
Returns true if this key has expired |
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 |
DateExpirationKey
public DateExpirationKey(java.lang.String user,
java.lang.Object uid,
java.util.Date expiration)
isExpired
public boolean isExpired()
- Description copied from class:
FileManager.Key
- Returns true if this key has expired
- Overrides:
isExpired
in class FileManager.Key
delete
public void delete()
- Description copied from class:
FileManager.Key
- 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.
- Overrides:
delete
in class FileManager.Key
fetch
public java.lang.Object fetch()
- Description copied from class:
FileManager.Key
- 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.
- Overrides:
fetch
in class FileManager.Key
save
public void save()
- Description copied from class:
FileManager.Key
- 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.
- Overrides:
save
in class FileManager.Key
expire
public void expire()
getExpiration
public java.util.Date getExpiration()
toString
public java.lang.String toString()
- Description copied from class:
FileManager.Key
- Return key as a String
- Overrides:
toString
in class FileManager.Key