com.adobe.icc.dbforms.obj
Class PortfolioDocument

java.lang.Object
  extended by com.adobe.icc.dbforms.obj.Asset
      extended by com.adobe.icc.dbforms.obj.PortfolioDocument
All Implemented Interfaces:
ILocalizable, ILocalizationResourceContainer, java.io.Serializable
Direct Known Subclasses:
ConditionalDocument

public class PortfolioDocument
extends Asset
implements java.io.Serializable

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.

See Also:
Serialized Form

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

PD_CLASS

public static final java.lang.String PD_CLASS
For internal use.


ASSOCIATION_CUTPOINT

public static final java.lang.String ASSOCIATION_CUTPOINT
For internal use.


HIERARCHY_CUTPOINT

public static final java.lang.String HIERARCHY_CUTPOINT
For internal use.


FIRST_LEVEL_CUTPOINT

public static final java.lang.String FIRST_LEVEL_CUTPOINT
For internal use.

Constructor Detail

PortfolioDocument

public PortfolioDocument()
Default constructor


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)
Constructor from parameters.

Parameters:
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

getDocSource

public PortfolioDocument.DocumentSource getDocSource()
Get the source of the Document.

Returns:
The source of the Document.
See Also:
PortfolioDocument.DocumentSource

setDocSource

public void setDocSource(PortfolioDocument.DocumentSource docSource)
Sets the source of the Document.

Parameters:
docSource - The source of the Document.

getDocContent

public byte[] getDocContent()
Get the content (byte array) of the Document.

Returns:
The content (byte array) of the Document.

setDocContent

public void setDocContent(byte[] docContent)
Sets the content (byte array) of the Document.

Parameters:
docContent - The content (byte array) of the Document.

getDocReference

public java.lang.String getDocReference()
Get the reference (Letter GUID) of the Document (only if docSource is CTD).

Returns:
The reference (Letter GUID) of the Document

setDocReference

public void setDocReference(java.lang.String docReference)
Sets the reference (Letter GUID) of the Document (only if docSource is CTD).

Parameters:
docReference - The reference (Letter GUID) of the Document

getMimeType

public java.lang.String getMimeType()
Get the mime type of the Document.

Returns:
The mime type of the Document.

setMimeType

public void setMimeType(java.lang.String mimeType)
Sets the mime type of the Document.

Parameters:
mimeType - The mime type of the Document.

getLetter

public Letter getLetter()
Get the associated Letter template for the Document (only if docSource is CTD).

Returns:
The associated Letter template for the Document.

setLetter

public void setLetter(Letter letter)
Sets the associated Letter template for the Document (only if docSource is CTD).

Parameters:
letter - The associated Letter template for the Document.


[an error occurred while processing this directive] [an error occurred while processing this directive]