@Service(value=ReviewManagementService.class) public class ReviewManagementServiceImpl extends java.lang.Object implements ReviewManagementService
ReviewManagementService is the service which provides
functionality to support Review Management.| Constructor and Description |
|---|
ReviewManagementServiceImpl() |
| 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 currentSession,
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.
|
public boolean isUnderReview(ResourceResolver resourceResolver, java.lang.String assetPath) throws FormsNDocumentsException
ReviewManagementServiceisUnderReview in interface ReviewManagementServiceassetPath - Asset to be checked if under review or notFormsNDocumentsExceptionpublic java.util.Map<java.lang.String,java.lang.String> fetchReviewInfo(ResourceResolver resourceResolver, java.lang.String assetPath) throws FormsNDocumentsException
fetchReviewInfo in interface ReviewManagementServiceassetPath - Path to the node of the asset.FormsNDocumentsExceptionpublic void beginReview(java.lang.String reviewName,
java.lang.String reviewDescription,
java.lang.String deadline,
java.lang.String[] reviewers,
java.lang.String assetPath)
throws FormsNDocumentsException
beginReview in interface ReviewManagementServicereviewName - Name of the review.reviewDescription - Description of the review.deadline - Deadline of the review.reviewers - Array of reviewers.assetPath - Asset to start review on.FormsNDocumentsExceptionpublic void endReview(java.lang.String assetPath)
throws FormsNDocumentsException
endReview in interface ReviewManagementServiceassetPath - Asset on which the review needs to be ended.FormsNDocumentsExceptionpublic void updateReview(java.lang.String assetPath,
java.lang.String reviewDescription,
java.lang.String deadline,
java.lang.String[] reviewers)
throws FormsNDocumentsException
updateReview in interface ReviewManagementServiceassetPath - 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.FormsNDocumentsExceptionpublic void cleanReview(java.lang.String assetPath,
Session currentSession,
boolean updateReviewProperties)
throws FormsMgrException
ReviewManagementServicecleanReview in interface ReviewManagementServiceassetPath - Asset on which the review needs to be ended.currentSession - Session of initiator.updateReviewProperties - Whether review properties need to be updated in clean review
callFormsMgrExceptionpublic ResourceResolver getFnDServiceUserResourceResolver()
ReviewManagementServicegetFnDServiceUserResourceResolver in interface ReviewManagementServiceCopyright © 2010 - 2023 Adobe. All Rights Reserved