public class StoredObject extends Object
Constructor and Description |
---|
StoredObject() |
Modifier and Type | Method and Description |
---|---|
Date |
getCreationDate()
Gets the date of the creation
|
Date |
getLastModified()
Gets the date of the last modification
|
String |
getMimeType()
Retrieve the mime type from the store object.
|
long |
getResourceLength()
Gets the length of the resource content
|
boolean |
isFolder()
Determines whether the StoredObject is a folder or a resource
|
boolean |
isNullResource()
Gets the state of the resource
|
boolean |
isResource()
Determines whether the StoredObject is a folder or a resource
|
void |
setCreationDate(Date c)
Sets the date of the creation
|
void |
setFolder(boolean f)
Sets a new StoredObject as a collection or resource
|
void |
setLastModified(Date d)
Sets the date of the last modification
|
void |
setMimeType(String mimeType)
Set the mime type of this object
|
void |
setNullResource(boolean f)
Sets a StoredObject as a lock-null resource
|
void |
setResourceLength(long l)
Sets the length of the resource content
|
public boolean isFolder()
public boolean isResource()
public void setFolder(boolean f)
f
- true - collection ; false - resourcepublic Date getLastModified()
public void setLastModified(Date d)
d
- date of the last modificationpublic Date getCreationDate()
public void setCreationDate(Date c)
c
- date of the creationpublic long getResourceLength()
public void setResourceLength(long l)
l
- the length of the resource contentpublic boolean isNullResource()
public void setNullResource(boolean f)
f
- true to set the resource as lock-null resourcepublic String getMimeType()
public void setMimeType(String mimeType)
mimeType
- the mimeType to setCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.