fr.paris.lutece.plugins.document.web
Class ResourceValueObject

java.lang.Object
  extended by fr.paris.lutece.plugins.document.web.ResourceValueObject
All Implemented Interfaces:
java.io.Serializable

public class ResourceValueObject
extends java.lang.Object
implements java.io.Serializable

Resource Value Object

See Also:
Serialized Form

Constructor Summary
ResourceValueObject()
          Basic constructor
ResourceValueObject(DocumentResource resource)
          Constructor using a document resource object
 
Method Summary
 byte[] getContent()
          Returns the Content
 java.lang.String getContentType()
          Returns the ContentType
 java.lang.String getFilename()
          Returns the Filename
 int getIdObject()
          Returns the IdObject
 long getLastModified()
          Returns the Last modified time
 void setContent(byte[] content)
          Sets the Content
 void setContentType(java.lang.String strContentType)
          Sets the ContentType
 void setFilename(java.lang.String strFilename)
          Sets the Filename
 void setIdObject(int nIdObject)
          Sets the IdObject
 void setLastModified(long lLastModified)
          Sets the Last modified time
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceValueObject

public ResourceValueObject()
Basic constructor


ResourceValueObject

public ResourceValueObject(DocumentResource resource)
Constructor using a document resource object

Parameters:
resource - The document resource
Method Detail

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

public java.lang.String getContentType()
Returns the ContentType

Returns:
The ContentType

setContentType

public void setContentType(java.lang.String strContentType)
Sets the ContentType

Parameters:
strContentType - The ContentType

getFilename

public java.lang.String getFilename()
Returns the Filename

Returns:
The Filename

setFilename

public void setFilename(java.lang.String strFilename)
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


Copyright © 2012 Mairie de Paris. All Rights Reserved.