|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.adobe.livecycle.rca.client.ReviewCommentingAndApprovalServiceClient
public class ReviewCommentingAndApprovalServiceClient
Constructor Summary | |
---|---|
ReviewCommentingAndApprovalServiceClient(com.adobe.idp.dsc.clientsdk.ServiceClientFactory serviceClientFactory)
Create RCACoreClient instance. |
Method Summary | |
---|---|
void |
addApprover(String reviewId,
Integer stageNo,
String domain,
String canonicalName)
Operation to add a new approver in an already running Review Approval Process. |
void |
addReviewer(String reviewId,
Integer stageNo,
String domain,
String canonicalName,
Boolean isOptional)
Operation to add a new reviewer in an already running Review Approval Process. |
com.adobe.idp.Document |
applyReaderExtension(com.adobe.idp.Document document)
Applies reader extension to the document based on the options configured as service configuration parameter. |
Boolean |
deleteReviewTemplate(String templateName)
Deletes a Review Template from the system. |
com.adobe.idp.Document |
getDocument(String reviewID,
Integer revision,
String documentPath)
This is a utility api to retrieve any document from a particular Review Zone. |
ReviewContextTO |
getReviewByProcessId(String assignTaskPid)
Retrieve review context for a given process ID. |
com.adobe.idp.Document |
getReviewContext(String reviewId,
Integer revision)
This Operation returns the review context. |
com.adobe.idp.Document |
getReviewDocument(String reviewId,
Integer revision)
This Operation returns the review document. |
com.adobe.idp.Document |
getReviewStageDocument(String reviewId,
Integer revision,
Integer stageNo)
This Operation returns the review document for a review stage. |
com.adobe.idp.Document |
getReviewTemplate(String templateName)
Retrieves the Review Template from Review Zone. |
com.adobe.idp.Document |
getRevisions(String reviewId)
2nd level Search API Returns XML that has the review_context for all the revision of that review. |
List |
getSupportingDocuments(String reviewID)
Returns a list of urls of supporting documents for review identified by Review ID The urls will be specific to ReviewZoneProvider i.e. |
UserPreferenceTO |
getUserPreference(String domain,
String canonicalName)
Gets the user preferences for a particular user |
String |
initiateReview(com.adobe.idp.Document reviewContext,
com.adobe.idp.Document reviewDocument,
List supportingDocList)
This Operation should be invoked to start an RCA process. |
void |
initiateReviewLongLived(com.adobe.idp.Document reviewContext,
com.adobe.idp.Document reviewDocument,
List supportingDocList)
This is the long-lived version of initiateReview API. |
List |
purgeReviews(List listOfReviewIDs,
Boolean clearReviewZone)
Removes data for a particular review from database and also removes the review zone for particular review from Review Zone Location. |
void |
removeApprover(String reviewId,
Integer stageNo,
String domain,
String canonicalName)
This Operation removes the approver from the running process. |
void |
removeReviewer(String reviewId,
Integer stageNo,
String domain,
String canonicalName)
This Operation removes the reviewer from the running process. |
com.adobe.idp.Document |
retrieveAuditConfig()
This Operation retrieves the audit configuration for RCA. |
void |
reviseReview(String reviewId,
Integer stageNo,
com.adobe.idp.Document reviewDocument,
String changeDescription)
This Operation generates a new revision of a review from a particular stage |
void |
revokeReview(String reviewId)
This Operation can be used for revoking the review. |
com.adobe.idp.Document |
searchReviews(ReviewSearchFilterTO reviewSearchFilter)
1st level Search API Search reviews based on ReviewSearchFilter. |
List |
searchReviewTemplates(TemplateSearchFilter templateSearchFilter)
Search Review Templates based on Review Search Filter |
void |
setUserPreference(String domain,
String canonicalName,
UserPreferenceTO userPreference)
Sets the user preferences for a particular user. |
void |
storeReviewTemplate(com.adobe.idp.Document reviewTemplate,
List supportingDocList,
Boolean overwrite)
This Operation stores a Review Template XML Document in the RCA System. |
void |
updateCustomAttributes(String reviewId,
Integer revision,
List listCustomAttributeTO,
Boolean discardOld)
Updates the searchable custom attributes of a review. |
void |
updateReviewStageDuration(String reviewId,
Integer stageNo,
Integer duration,
String durationUnit)
This operation updates the Review Stage Duration of an already running Review Approval Process. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReviewCommentingAndApprovalServiceClient(com.adobe.idp.dsc.clientsdk.ServiceClientFactory serviceClientFactory)
serviceClientFactory
- serviceClientFactory to be usedMethod Detail |
---|
public String initiateReview(com.adobe.idp.Document reviewContext, com.adobe.idp.Document reviewDocument, List supportingDocList) throws RCAException
reviewContext
- Document
instance of Review Context (XML) (Required Parameter)reviewDocument
- Document
to be reviewed (Required Parameter)supportingDocList
- List of RCADocument
(Required Parameter)
InvalidReviewContextException
- If passed reviewContext is invalid, i.e. it doesn't comply to RCA ReviewContext Schema.
InvalidReviewDocumentException
- If passed reviewDocument is not a valid PDF which can be sent for Shared Review.
ReviewZoneCreationException
- If review zone creation fails
UserNotFoundException
- If a user mentioned in Review Context is not found in LC UM
RCAException
public void initiateReviewLongLived(com.adobe.idp.Document reviewContext, com.adobe.idp.Document reviewDocument, List supportingDocList) throws RCAException
reviewContext
- Same as that of initiateReviewreviewDocument
- Same as that of initiateReviewsupportingDocList
- Same as that of initiateReview
RCAException
public List getSupportingDocuments(String reviewID) throws RCAException
reviewID
- Unique ID of the review
RCAException
public void updateReviewStageDuration(String reviewId, Integer stageNo, Integer duration, String durationUnit) throws RCAException
reviewId
- Unique ID of the review (Required Parameter)stageNo
- ID of the stage within a review (Required Parameter)duration
- stage durationdurationUnit
- Unit of stage duration. valid values are:
RCAException
- Any Exception generated in RCA Corepublic void addReviewer(String reviewId, Integer stageNo, String domain, String canonicalName, Boolean isOptional) throws RCAException
reviewId
- Unique ID of the review. (Required Parameter)stageNo
- Unique identifier of the stage within a review. Integer >= 1. (Required Parameter)domain
- Reviewer domain (Required Parameter)canonicalName
- Canonical Name (Required Parameter)isOptional
- This flag indicates if the reviewer to be added is optional or required.
If null then it is defaulted to false. (Optional Parameter)
RCAException
- Any Exception generated in RCA Core.public void addApprover(String reviewId, Integer stageNo, String domain, String canonicalName) throws RCAException
reviewId
- Unique ID of the review. (Required Parameter)stageNo
- Unique identifier of the stage within a review. Integer >= 1. (Required Parameter)domain
- Reviewer domain (Required Parameter)canonicalName
- Canonical Name (Required Parameter)
RCAException
- Any Exception generated in RCA Core.public void removeReviewer(String reviewId, Integer stageNo, String domain, String canonicalName) throws RCAException
reviewId
- Unique ID of the review. (Required Parameter)stageNo
- Stage Id of the stage (Required parameter)domain
- domain name of the reviewer. (Required parameter)canonicalName
- canonical name of the reviewer. (Required parameter)
RCAException
- Any Exception generated in RCA Core.public void removeApprover(String reviewId, Integer stageNo, String domain, String canonicalName) throws RCAException
reviewId
- Unique ID of the review. (Required Parameter)stageNo
- Stage Id of the stage (Required parameter)domain
- domain name of the approver (Required parameter)canonicalName
- canonical name of the approver (Required parameter)
RCAException
- Any Exception generated in RCA Core.public void revokeReview(String reviewId) throws RCAException
reviewId
- Unique ID of the review. (Required Parameter)
RCAException
- Any Exception generated in RCA Core.public com.adobe.idp.Document searchReviews(ReviewSearchFilterTO reviewSearchFilter) throws RCAException
ReviewSearchFilter
- Filter to be applied while searching. All the attributes of ReviewSearchFilter will be ANDed.
RCAException
public com.adobe.idp.Document getRevisions(String reviewId) throws RCAException
reviewId
-
RCAException
public com.adobe.idp.Document getReviewStageDocument(String reviewId, Integer revision, Integer stageNo) throws RCAException
reviewId
- Unique ID of the review. (Required Parameter)revision
- Revision (Required Parameter)stageNo
- Stage Id of the stage
RCAException
- Any Exception generated in RCA Core.public com.adobe.idp.Document getReviewDocument(String reviewId, Integer revision) throws RCAException
reviewId
- Unique ID of the review. (Required Parameter)revision
- Revision (Required Parameter)
RCAException
- Any Exception generated in RCA Core.public com.adobe.idp.Document getReviewContext(String reviewId, Integer revision) throws RCAException
reviewId
- Unique ID of the review. (Required Parameter)revision
- Revision (Required Parameter)
RCAException
- Any Exception generated in RCA Core.public void reviseReview(String reviewId, Integer stageNo, com.adobe.idp.Document reviewDocument, String changeDescription) throws RCAException
reviewId
- Unique ID of the review. (Required Parameter)stageNo
- Stage Id of the stage (Required parameter)reviewDocument
- New document that would be used in the revision (Required parameter).
RCAException
public void storeReviewTemplate(com.adobe.idp.Document reviewTemplate, List supportingDocList, Boolean overwrite) throws RCAException
Document
in the RCA System. It picks up the review template
name from the XML while storing. So, Review Template Name should be unique unless you want to overwrite
a previously stored review template.
It also hosts the supporting document at template level
reviewTemplate
- Document
instance of Review Template (XML) (Required Parameter)supportingDocList
- Listoverwrite
- If true and a template exists with same name, it silently replaces the old one.
RCAException
public com.adobe.idp.Document retrieveAuditConfig() throws RCAException
RCAException
public com.adobe.idp.Document applyReaderExtension(com.adobe.idp.Document document) throws RCAException
document
- input document
RCAException
- Any Exception generated in RCA Core.public void setUserPreference(String domain, String canonicalName, UserPreferenceTO userPreference) throws RCAException
domain
- User Domain namecanonicalName
- User Canonical NameuserPreference
- User Preferences object
RCAException
- Any Exception generated in RCA Core.public UserPreferenceTO getUserPreference(String domain, String canonicalName) throws RCAException
domain
- User Domain namecanonicalName
- User Canonical Name
RCAException
- Any Exception generated in RCA Core.public ReviewContextTO getReviewByProcessId(String assignTaskPid) throws RCAException
assignTaskPid
- Process ID of the assign Task operation.
RCAException
- Any Exception generated in RCA Core.public void updateCustomAttributes(String reviewId, Integer revision, List listCustomAttributeTO, Boolean discardOld) throws RCAException
reviewId
- Review IDrevision
- Review RevisionlistCustomAttributeTO
- list of CustomAttributeTO
discardOld
- If true, old custom attributes are discarded
RCAException
public List searchReviewTemplates(TemplateSearchFilter templateSearchFilter) throws RCAException
templateSearchFilter
-
RCAException
public Boolean deleteReviewTemplate(String templateName) throws RCAException
templateName
- Name of the template e.g. DemoTemplate
RCAException
- in case of any error while deleting the templatepublic List purgeReviews(List listOfReviewIDs, Boolean clearReviewZone) throws RCAException
listOfReviewIDs
- List of Review IDs to be purgedclearReviewZone
- boolean flag, if true then corresponding review zone folder is also deleted.
RCAException
- in case of any error while purging the reviewspublic com.adobe.idp.Document getReviewTemplate(String templateName) throws RCAException
templateName
- Name of the template e.g. "Demo Template"
RCAException
public com.adobe.idp.Document getDocument(String reviewID, Integer revision, String documentPath) throws RCAException
reviewId
- Unique ID of the review. (Required Parameter)revision
- Revision (Required Parameter)documentPath
- Relative path of document in the review zone
RCAException
- In case of any error while retrieving the document from review zone.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |