|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.digitalis.dif.utils.extensions.document.DocumentRepositoryEntry
public class DocumentRepositoryEntry
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 |
---|
public DocumentRepositoryEntry()
DocumentRepositoryEntry
.
public DocumentRepositoryEntry(Long id, String creatorID, String name, String description, String fileName, Date creationDate, String mimeType, byte[] bytes)
DocumentRepositoryEntry
.
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.public DocumentRepositoryEntry(String creatorID, String name, String description, String fileName, Date creationDate, String mimeType, byte[] bytes)
DocumentRepositoryEntry
.
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 |
---|
public void calculateMimeType()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public byte[] getBytes()
public Date getCreationDate()
public String getCreatorID()
public String getDescription()
public String getFileName()
public Long getId()
public String getMimeType()
public String getName()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean isDeleteRequested()
public void setBytes(byte[] bytes)
bytes
- the new bytes value to setpublic void setCreationDate(Date creationDate)
creationDate
- the new creationDate value to setpublic void setCreatorID(String creatorID)
creatorID
- the new creatorID value to setpublic void setDeleteRequested(boolean deleteRequested)
deleteRequested
- the new deleteRequested value to setpublic void setDescription(String description)
description
- the new description value to setpublic void setFileName(String fileName)
fileName
- the new fileName value to setpublic void setId(Long id)
id
- the new id value to setpublic void setMimeType(String mimeType)
mimeType
- the new mimeType value to setpublic void setName(String name)
name
- the new name value to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |