public interface ReviewManagementService
Modifier and Type | Method and Description |
---|---|
void |
beginReview(java.lang.String reviewName,
java.lang.String reviewDescription,
java.lang.String deadline,
java.lang.String[] reviewers,
java.lang.String assetPath)
Starts the review.
|
void |
cleanReview(java.lang.String assetPath,
Session session,
boolean updateReviewProperties)
Cleans the review.
|
void |
endReview(java.lang.String assetPath)
Ends the review.
|
java.util.Map<java.lang.String,java.lang.String> |
fetchReviewInfo(ResourceResolver resourceResolver,
java.lang.String assetPath)
Returns all the information related to the ongoing review on the asset.
|
ResourceResolver |
getFnDServiceUserResourceResolver()
This function returns the resource resolver for fd-service system user.
|
boolean |
isUnderReview(ResourceResolver resourceResolver,
java.lang.String assetPath)
Checks if the asset is currently under review or not
|
void |
updateReview(java.lang.String assetPath,
java.lang.String reviewDescription,
java.lang.String deadline,
java.lang.String[] reviewers)
Updates the review.
|
java.util.Map<java.lang.String,java.lang.String> fetchReviewInfo(ResourceResolver resourceResolver, java.lang.String assetPath) throws FormsMgrException
resourceResolver
- assetPath
- Path to the node of the asset.FormsMgrException
boolean isUnderReview(ResourceResolver resourceResolver, java.lang.String assetPath) throws FormsNDocumentsException
resourceResolver
- assetPath
- Asset to be checked if under review or notFormsNDocumentsException
void beginReview(java.lang.String reviewName, java.lang.String reviewDescription, java.lang.String deadline, java.lang.String[] reviewers, java.lang.String assetPath) throws FormsMgrException
reviewName
- Name of the review.reviewDescription
- Description of the review.deadline
- Deadline of the review.reviewers
- Array of reviewers.assetPath
- Asset to start review on.FormsMgrException
void endReview(java.lang.String assetPath) throws FormsMgrException
assetPath
- Asset on which the review needs to be ended.FormsMgrException
void updateReview(java.lang.String assetPath, java.lang.String reviewDescription, java.lang.String deadline, java.lang.String[] reviewers) throws FormsMgrException
assetPath
- Asset on which the review needs to be updated.reviewDescription
- Description of the review.deadline
- New deadline of the review.reviewers
- New array of reviewers.FormsMgrException
void cleanReview(java.lang.String assetPath, Session session, boolean updateReviewProperties) throws FormsMgrException
assetPath
- Asset on which the review needs to be ended.session
- Session of initiator.updateReviewProperties
- Whether review properties need to be updated in clean review
callFormsMgrException
ResourceResolver getFnDServiceUserResourceResolver()
Copyright © 2010 - 2020 Adobe. All Rights Reserved