public class SimpleObjectInfo extends java.lang.Object implements StoreObject
SimpleObjectStoreService.KEY_ID, KEY_SIZE, KEY_TIMESTAMP| Constructor and Description |
|---|
SimpleObjectInfo(java.io.File file,
java.lang.String id)
constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getId() |
long |
getSize() |
java.util.Date |
getTimestamp() |
AnyMap |
toAny()
Create an
AnyMap with the contents of this StoreObject. |
public SimpleObjectInfo(java.io.File file,
java.lang.String id)
public java.lang.String getId()
getId in interface StoreObjectpublic long getSize()
getSize in interface StoreObjectpublic java.util.Date getTimestamp()
getTimestamp in interface StoreObjectpublic AnyMap toAny()
AnyMap with the contents of this StoreObject. In JSON, it should look like this:
{
"id" : "name-of-object",
"size" : 42,
"timestamp" : "2011-06-20T09:22:42.123+0100"
}
Service implementations that extend the ObjectInfo should still use this structure as a base and add specific
information as they like.toAny in interface StoreObject