pt.digitalis.dif.utils.extensions.document
Class DocumentRepositoryEntry

java.lang.Object
  extended by pt.digitalis.dif.utils.extensions.document.DocumentRepositoryEntry

public class DocumentRepositoryEntry
extends Object

Author:
Galaio da Silva jgalaio@digitalis.pt
Created on:
Jun 15, 2009

Nested Class Summary
static class DocumentRepositoryEntry.Fields
          Document Fields
 
Constructor Summary
DocumentRepositoryEntry()
          Default constructor for DocumentRepositoryEntry.
DocumentRepositoryEntry(Long id, String creatorID, String name, String description, String fileName, Date creationDate, String mimeType, byte[] bytes)
          Constructor for DocumentRepositoryEntry.
DocumentRepositoryEntry(String creatorID, String name, String description, String fileName, Date creationDate, String mimeType, byte[] bytes)
          Constructor for DocumentRepositoryEntry.
 
Method Summary
 void calculateMimeType()
          Automaticaly calculate the Mime Type
 boolean equals(Object obj)
           
 byte[] getBytes()
          Inspector for the 'bytes' attribute.
 Date getCreationDate()
          Inspector for the 'creationDate' attribute.
 String getCreatorID()
          Inspector for the 'creatorID' attribute.
 String getDescription()
          Inspector for the 'description' attribute.
 String getFileName()
          Inspector for the 'fileName' attribute.
 Long getId()
          Inspector for the 'id' attribute.
 String getMimeType()
          Inspector for the 'mimeType' attribute.
 String getName()
          Inspector for the 'name' attribute.
 int hashCode()
           
 boolean isDeleteRequested()
          Inspector for the 'deleteRequested' attribute.
 void setBytes(byte[] bytes)
          Modifier for the 'bytes' attribute.
 void setCreationDate(Date creationDate)
          Modifier for the 'creationDate' attribute.
 void setCreatorID(String creatorID)
          Modifier for the 'creatorID' attribute.
 void setDeleteRequested(boolean deleteRequested)
          Modifier for the 'deleteRequested' attribute.
 void setDescription(String description)
          Modifier for the 'description' attribute.
 void setFileName(String fileName)
          Modifier for the 'fileName' attribute.
 void setId(Long id)
          Modifier for the 'id' attribute.
 void setMimeType(String mimeType)
          Modifier for the 'mimeType' attribute.
 void setName(String name)
          Modifier for the 'name' attribute.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentRepositoryEntry

public DocumentRepositoryEntry()
Default constructor for DocumentRepositoryEntry.


DocumentRepositoryEntry

public DocumentRepositoryEntry(Long id,
                               String creatorID,
                               String name,
                               String description,
                               String fileName,
                               Date creationDate,
                               String mimeType,
                               byte[] bytes)
Constructor for DocumentRepositoryEntry.

Parameters:
id - the document id.
creatorID - the creator id.
name - the document name.
description - the document description.
fileName - the document original fileName.
creationDate - the Document creation date.
mimeType - the document mimeType.
bytes - the document content in bytes.

DocumentRepositoryEntry

public DocumentRepositoryEntry(String creatorID,
                               String name,
                               String description,
                               String fileName,
                               Date creationDate,
                               String mimeType,
                               byte[] bytes)
Constructor for DocumentRepositoryEntry.

Parameters:
creatorID - the creator id.
name - the document name.
description - the document description.
fileName - the document original fileName.
creationDate - the Document creation date.
mimeType - the document mimeType.
bytes - the document content in bytes.
Method Detail

calculateMimeType

public void calculateMimeType()
Automaticaly calculate the Mime Type


equals

public boolean equals(Object obj)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

getBytes

public byte[] getBytes()
Inspector for the 'bytes' attribute.

Returns:
the bytes value

getCreationDate

public Date getCreationDate()
Inspector for the 'creationDate' attribute.

Returns:
the creationDate value

getCreatorID

public String getCreatorID()
Inspector for the 'creatorID' attribute.

Returns:
the creatorID value

getDescription

public String getDescription()
Inspector for the 'description' attribute.

Returns:
the description value

getFileName

public String getFileName()
Inspector for the 'fileName' attribute.

Returns:
the fileName value

getId

public Long getId()
Inspector for the 'id' attribute.

Returns:
the id value

getMimeType

public String getMimeType()
Inspector for the 'mimeType' attribute.

Returns:
the mimeType value

getName

public String getName()
Inspector for the 'name' attribute.

Returns:
the name value

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

isDeleteRequested

public boolean isDeleteRequested()
Inspector for the 'deleteRequested' attribute.

Returns:
the deleteRequested value

setBytes

public void setBytes(byte[] bytes)
Modifier for the 'bytes' attribute.

Parameters:
bytes - the new bytes value to set

setCreationDate

public void setCreationDate(Date creationDate)
Modifier for the 'creationDate' attribute.

Parameters:
creationDate - the new creationDate value to set

setCreatorID

public void setCreatorID(String creatorID)
Modifier for the 'creatorID' attribute.

Parameters:
creatorID - the new creatorID value to set

setDeleteRequested

public void setDeleteRequested(boolean deleteRequested)
Modifier for the 'deleteRequested' attribute.

Parameters:
deleteRequested - the new deleteRequested value to set

setDescription

public void setDescription(String description)
Modifier for the 'description' attribute.

Parameters:
description - the new description value to set

setFileName

public void setFileName(String fileName)
Modifier for the 'fileName' attribute.

Parameters:
fileName - the new fileName value to set

setId

public void setId(Long id)
Modifier for the 'id' attribute.

Parameters:
id - the new id value to set

setMimeType

public void setMimeType(String mimeType)
Modifier for the 'mimeType' attribute.

Parameters:
mimeType - the new mimeType value to set

setName

public void setName(String name)
Modifier for the 'name' attribute.

Parameters:
name - the new name value to set


Copyright © 2014 Digitalis Informática Lda. All Rights Reserved.