public interface ApprovalServiceProvider
| Modifier and Type | Method and Description |
|---|---|
void |
accept(String ticket,
int reviewerID)
Accept a
PublicReference and publish to public. |
void |
approve(PublicReference reference,
javax.mail.internet.InternetAddress emailNotificationAddress)
Initialize a request to approve a
PublicReference. |
void |
checkOpenReviewProcesses(Map<PublicReference,List<ReviewStatus>> results)
|
Map<PublicReference,List<ReviewStatus>> |
getAllOpenReviewProcesses()
Load all open
PublicReferences that are not yet accepted or
rejected. |
String |
getNewURL(PublicReference reference) |
PublicReference |
getPublicReferenceByInternalId(String internalId) |
void |
reject(String ticket,
int reviewerID)
Reject a
PublicReference. |
String |
storeNewDOI(PublicReference reference,
String doi,
int year) |
void accept(String ticket, int reviewerID) throws EdalApprovalException
PublicReference and publish to public.ticket - the ticket number to identify the approved
PublicReference.reviewerID - the ID to identify the reviewer.EdalApprovalException - if unable to accept the ticket.void approve(PublicReference reference, javax.mail.internet.InternetAddress emailNotificationAddress) throws EdalApprovalException
PublicReference.reference - the PublicReference to approve.emailNotificationAddress - the eMail address of the requesting userEdalApprovalException - if unable to initialize the approval request.void reject(String ticket, int reviewerID) throws EdalApprovalException
PublicReference.ticket - the ticket number to identify the rejected
PublicReference.reviewerID - the ID to identify the reviewer.EdalApprovalException - if unable to reject the ticket.Map<PublicReference,List<ReviewStatus>> getAllOpenReviewProcesses()
PublicReferences that are not yet accepted or
rejected.Map with all open PublicReferences and the
corresponding List with the ReviewStatus.void checkOpenReviewProcesses(Map<PublicReference,List<ReviewStatus>> results) throws EdalApprovalException
results - a Map with all open PublicReferences and their
ReviewStatus.EdalApprovalException - if unable to check open review processes.String getNewURL(PublicReference reference) throws EdalApprovalException
EdalApprovalExceptionString storeNewDOI(PublicReference reference, String doi, int year) throws EdalApprovalException
EdalApprovalExceptionPublicReference getPublicReferenceByInternalId(String internalId) throws EdalException
EdalExceptionCopyright © 2014 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK). All rights reserved.