Class ResourceValueObject
java.lang.Object
fr.paris.lutece.plugins.document.web.ResourceValueObject
- All Implemented Interfaces:
Serializable
Resource Value Object
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBasic constructorResourceValueObject(DocumentResource resource) Constructor using a document resource object -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Returns the ContentReturns the ContentTypeReturns the FilenameintReturns the IdObjectlongReturns the Last modified timevoidsetContent(byte[] content) Sets the ContentvoidsetContentType(String strContentType) Sets the ContentTypevoidsetFilename(String strFilename) Sets the FilenamevoidsetIdObject(int nIdObject) Sets the IdObjectvoidsetLastModified(long lLastModified) Sets the Last modified time
-
Constructor Details
-
ResourceValueObject
public ResourceValueObject()Basic constructor -
ResourceValueObject
Constructor using a document resource object- Parameters:
resource- The document resource
-
-
Method Details
-
getIdObject
public int getIdObject()Returns the IdObject- Returns:
- The IdObject
-
setIdObject
public void setIdObject(int nIdObject) Sets the IdObject- Parameters:
nIdObject- The IdObject
-
getContent
public byte[] getContent()Returns the Content- Returns:
- The Content
-
setContent
public void setContent(byte[] content) Sets the Content- Parameters:
content- The content
-
getContentType
Returns the ContentType- Returns:
- The ContentType
-
setContentType
Sets the ContentType- Parameters:
strContentType- The ContentType
-
getFilename
Returns the Filename- Returns:
- The Filename
-
setFilename
Sets the Filename- Parameters:
strFilename- The Filename
-
setLastModified
public void setLastModified(long lLastModified) Sets the Last modified time- Parameters:
lLastModified- Last modified time
-
getLastModified
public long getLastModified()Returns the Last modified time- Returns:
- The Last modified time
-