|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.adobe.livecycle.rca.common.beans.RCADocument
public class RCADocument
A wrapper class over Document. Because it is not possible to add attributes DocumentReference object in flex, to workaround that issue. We have created this wrapper class. This class is used to send information about supporting documents to RCA apis. Supporting documents can be of type links or documents. RCADocument can be used to send information about a uri which points to any publicly accessible url. Or send represent a com.adobe.idp.Document object that will be stored in Review Zone as supporting document. If you want to attach a url as supporting document, to initiateReview or storeReviewTemplate, then you must create RCADocument object as follows: RCADocument supportingDoc = new RCADocument(); supportingDoc.setUri("http://www.adobe.com"); supportingDoc.setType(RCADocument.Type.REF); supportingDoc.setDescription("Link to adobe.com"); supportingDoc.setName("Supporting DOcument One"); if you want to to attach a Document as supporting document, to initiateReview or storeReviewTemplate, then you must create RCADocument object as follows: RCADocument supportingDoc = new RCADocument(); Document idpDoc = new Document(new File("c:\\test.pdf"), false); idpDoc.setContentType("application/pdf"); //make sure that content type is always set supportingDoc.setDocument(); supportingDoc.setType(RCADocument.Type.DOCUMENT); supportingDoc.setDescription("Link to adobe.com"); supportingDoc.setName("Supporting DOcument One");
Nested Class Summary | |
---|---|
static class |
RCADocument.Type
Enumeration that defines type of RCADocument. |
Constructor Summary | |
---|---|
RCADocument()
|
Method Summary | |
---|---|
String |
getDescription()
Gets the description of the document |
com.adobe.idp.Document |
getDocument()
Gets com.adobe.idp.DOcument object wrapped in RCADocument |
String |
getName()
Gets the name of the document |
RCADocument.Type |
getType()
Get the type of RCADocument. |
String |
getUri()
Retrieves the uri of the RCADocument. |
void |
setDescription(String description)
Sets the description of the document |
void |
setDocument(com.adobe.idp.Document document)
Sets com.adobe.idp.DOcument object wrapped in RCADocument. |
void |
setName(String name)
Sets the name of the document |
void |
setType(RCADocument.Type type)
Get the type of RCADocument. |
void |
setUri(String uri)
Sets the uri of the RCADocument |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RCADocument()
Method Detail |
---|
public com.adobe.idp.Document getDocument()
public void setDocument(com.adobe.idp.Document document)
public String getUri()
public void setUri(String uri)
uri
- public RCADocument.Type getType()
public void setType(RCADocument.Type type)
type
- Type is an enum that can have only two values REF,DOCUMENT.public String getName()
public void setName(String name)
name
- name of the documentpublic String getDescription()
public void setDescription(String description)
description
- description of the document
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |