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 DategetCreationDate()Gets the date of the creationDategetLastModified()Gets the date of the last modificationStringgetMimeType()Retrieve the myme type from the store object.longgetResourceLength()Gets the length of the resource contentbooleanisFolder()Determines whether the StoredObject is a folder or a resourcebooleanisNullResource()Gets the state of the resourcebooleanisResource()Determines whether the StoredObject is a folder or a resourcevoidsetCreationDate(Date c)Sets the date of the creationvoidsetFolder(boolean f)Sets a new StoredObject as a collection or resourcevoidsetLastModified(Date d)Sets the date of the last modificationvoidsetMimeType(String mimeType)Set the mime type of this objectvoidsetNullResource(boolean f)Sets a StoredObject as a lock-null resourcevoidsetResourceLength(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
-
-