|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.adobe.icc.dbforms.obj.Asset com.adobe.icc.dbforms.obj.PortfolioDocument
public class PortfolioDocument
POJO representation of a Document that is part of a Portfolio.
A Document may either be a file or a Letter template, determined by the docSource
.
If it is a file, the docContent
determines the content of the Document, else the letter
reference determines the final content for the Document.
Nested Class Summary | |
---|---|
static class |
PortfolioDocument.DocumentSource
Enum to specify the source of this document. |
Field Summary | |
---|---|
static java.lang.String |
ASSOCIATION_CUTPOINT
For internal use. |
static java.lang.String |
FIRST_LEVEL_CUTPOINT
For internal use. |
static java.lang.String |
HIERARCHY_CUTPOINT
For internal use. |
static java.lang.String |
PD_CLASS
For internal use. |
Fields inherited from class com.adobe.icc.dbforms.obj.Asset |
---|
ASSET_CLASS, FIRST_LEVEL_WITH_CAT_NAMES_CUTPOINT |
Constructor Summary | |
---|---|
PortfolioDocument()
Default constructor |
|
PortfolioDocument(java.lang.String id,
java.lang.String name,
java.lang.String desc,
java.lang.String comment,
int state,
PortfolioDocument.DocumentSource docSource,
byte[] docContent,
java.lang.String docReference,
Category ucat,
Category lcat,
int version,
java.util.Date activeStartDate,
java.util.Date activeEndDate,
java.lang.String lastChangeBy,
java.lang.String mimeType)
Constructor from parameters. |
Method Summary | |
---|---|
byte[] |
getDocContent()
Get the content (byte array) of the Document. |
java.lang.String |
getDocReference()
Get the reference (Letter GUID) of the Document (only if docSource is CTD). |
PortfolioDocument.DocumentSource |
getDocSource()
Get the source of the Document. |
Letter |
getLetter()
Get the associated Letter template for the Document (only if docSource is CTD). |
java.lang.String |
getMimeType()
Get the mime type of the Document. |
void |
setDocContent(byte[] docContent)
Sets the content (byte array) of the Document. |
void |
setDocReference(java.lang.String docReference)
Sets the reference (Letter GUID) of the Document (only if docSource is CTD). |
void |
setDocSource(PortfolioDocument.DocumentSource docSource)
Sets the source of the Document. |
void |
setLetter(Letter letter)
Sets the associated Letter template for the Document (only if docSource is CTD). |
void |
setMimeType(java.lang.String mimeType)
Sets the mime type of the Document. |
Methods inherited from class com.adobe.icc.dbforms.obj.Asset |
---|
getActiveEndDate, getActiveStartDate, getComment, getCrxVersion, getDesc, getExtendedProperties, getId, getLastChangeBy, getLastPublishDate, getLastUpdateDate, getLcat, getLocalizationPrefix, getLocalizationResourceInfoList, getName, getState, getUcat, getUpdatedBy, getVersion, setActiveEndDate, setActiveStartDate, setComment, setCrxVersion, setDesc, setExtendedProperties, setId, setLastChangeBy, setLastPublishDate, setLastUpdateDate, setLcat, setLocalizationPrefix, setLocalizationResourceInfoList, setName, setState, setUcat, setUpdatedBy, setVersion |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PD_CLASS
public static final java.lang.String ASSOCIATION_CUTPOINT
public static final java.lang.String HIERARCHY_CUTPOINT
public static final java.lang.String FIRST_LEVEL_CUTPOINT
Constructor Detail |
---|
public PortfolioDocument()
public PortfolioDocument(java.lang.String id, java.lang.String name, java.lang.String desc, java.lang.String comment, int state, PortfolioDocument.DocumentSource docSource, byte[] docContent, java.lang.String docReference, Category ucat, Category lcat, int version, java.util.Date activeStartDate, java.util.Date activeEndDate, java.lang.String lastChangeBy, java.lang.String mimeType)
id
- unique identifier of the Document.name
- name of the Document.desc
- description of the Document.comment
- comment for the Document.state
- state of the Document.docSource
- data source of the Document.docContent
- content of of the Document if the docSource is FILE.docReference
- id of the Letter, if the docSource is CTD.ucat
- Category of the Document.lcat
- Subcategory of the Document.version
- version of the Document.activeStart
- activation start date of the Document.activeEnd
- activation end date of the Document.lastChangeBy
- user creating the Document.mimeType
- mime type of the Document.Method Detail |
---|
public PortfolioDocument.DocumentSource getDocSource()
PortfolioDocument.DocumentSource
public void setDocSource(PortfolioDocument.DocumentSource docSource)
docSource
- The source of the Document.public byte[] getDocContent()
public void setDocContent(byte[] docContent)
docContent
- The content (byte array) of the Document.public java.lang.String getDocReference()
docSource
is CTD).
public void setDocReference(java.lang.String docReference)
docSource
is CTD).
docReference
- The reference (Letter GUID) of the Documentpublic java.lang.String getMimeType()
public void setMimeType(java.lang.String mimeType)
mimeType
- The mime type of the Document.public Letter getLetter()
docSource
is CTD).
public void setLetter(Letter letter)
docSource
is CTD).
letter
- The associated Letter template for the Document.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |