@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
ReviewManagementService
isUnderReview
in interface ReviewManagementService
assetPath
- Asset to be checked if under review or notFormsNDocumentsException
public java.util.Map<java.lang.String,java.lang.String> fetchReviewInfo(ResourceResolver resourceResolver, java.lang.String assetPath) throws FormsNDocumentsException
fetchReviewInfo
in interface ReviewManagementService
assetPath
- Path to the node of the asset.FormsNDocumentsException
public 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 ReviewManagementService
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.FormsNDocumentsException
public void endReview(java.lang.String assetPath) throws FormsNDocumentsException
endReview
in interface ReviewManagementService
assetPath
- Asset on which the review needs to be ended.FormsNDocumentsException
public void updateReview(java.lang.String assetPath, java.lang.String reviewDescription, java.lang.String deadline, java.lang.String[] reviewers) throws FormsNDocumentsException
updateReview
in interface ReviewManagementService
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.FormsNDocumentsException
public void cleanReview(java.lang.String assetPath, Session currentSession, boolean updateReviewProperties) throws FormsMgrException
ReviewManagementService
cleanReview
in interface ReviewManagementService
assetPath
- Asset on which the review needs to be ended.currentSession
- Session of initiator.updateReviewProperties
- Whether review properties need to be updated in clean review
callFormsMgrException
public ResourceResolver getFnDServiceUserResourceResolver()
ReviewManagementService
getFnDServiceUserResourceResolver
in interface ReviewManagementService
Copyright © 2010 - 2020 Adobe. All Rights Reserved