Package org.drjekyll.webdav.store
Class StoredObject
- java.lang.Object
-
- org.drjekyll.webdav.store.StoredObject
-
public class StoredObject extends Object
-
-
Constructor Summary
Constructors Constructor Description StoredObject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
getCreationDate()
Gets the date of the creationDate
getLastModified()
Gets the date of the last modificationString
getMimeType()
Retrieve the myme type from the store object.long
getResourceLength()
Gets the length of the resource contentboolean
isFolder()
Determines whether the StoredObject is a folder or a resourceboolean
isNullResource()
Gets the state of the resourceboolean
isResource()
Determines whether the StoredObject is a folder or a resourcevoid
setCreationDate(Date c)
Sets the date of the creationvoid
setFolder(boolean f)
Sets a new StoredObject as a collection or resourcevoid
setLastModified(Date d)
Sets the date of the last modificationvoid
setMimeType(String mimeType)
Set the mime type of this objectvoid
setNullResource(boolean f)
Sets a StoredObject as a lock-null resourcevoid
setResourceLength(long l)
Sets the length of the resource content
-
-
-
Method Detail
-
isFolder
public boolean isFolder()
Determines whether the StoredObject is a folder or a resource- Returns:
- true if the StoredObject is a collection
-
setFolder
public void setFolder(boolean f)
Sets a new StoredObject as a collection or resource- Parameters:
f
- true - collection ; false - resource
-
isResource
public boolean isResource()
Determines whether the StoredObject is a folder or a resource- Returns:
- true if the StoredObject is a resource
-
getLastModified
public Date getLastModified()
Gets the date of the last modification- Returns:
- last modification Date
-
setLastModified
public void setLastModified(Date d)
Sets the date of the last modification- Parameters:
d
- date of the last modification
-
getCreationDate
public Date getCreationDate()
Gets the date of the creation- Returns:
- creation Date
-
setCreationDate
public void setCreationDate(Date c)
Sets the date of the creation- Parameters:
c
- date of the creation
-
getResourceLength
public long getResourceLength()
Gets the length of the resource content- Returns:
- length of the resource content
-
setResourceLength
public void setResourceLength(long l)
Sets the length of the resource content- Parameters:
l
- the length of the resource content
-
isNullResource
public boolean isNullResource()
Gets the state of the resource- Returns:
- true if the resource is in lock-null state
-
setNullResource
public void setNullResource(boolean f)
Sets a StoredObject as a lock-null resource- Parameters:
f
- true to set the resource as lock-null resource
-
getMimeType
public String getMimeType()
Retrieve the myme type from the store object. Can also return NULL if the store does not handle mime type stuff. In that case the mime type is determined by the servletcontext- Returns:
- the mimeType
-
setMimeType
public void setMimeType(String mimeType)
Set the mime type of this object- Parameters:
mimeType
- the mimeType to set
-
-