public interface ApprovalServiceProvider
| Modifier and Type | Method and Description |
|---|---|
void |
accept(String ticket,
int reviewerID)
Accept a
PublicReference and publish to public. |
void |
acceptTicketByUser(String ticket,
int reviewerHashCode) |
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)
Get a
PublicReference object by the internal UUID for
generating HTML template |
void |
reject(String ticket,
int reviewerID)
Reject a
PublicReference. |
void |
rejectTicketByUser(String ticket,
int reviewerHashCode) |
String |
storeNewDOI(PublicReference reference,
String doi,
int year)
Store the generated
DataCiteReference in to the eDAL system. |
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
reference - StringEdalApprovalExceptionString storeNewDOI(PublicReference reference, String doi, int year) throws EdalApprovalException
DataCiteReference in to the eDAL system.reference - the corresponding PublicReferencedoi - the DOI as Stringyear - the year of the DOIStringEdalApprovalException - if unable to store DOIPublicReference getPublicReferenceByInternalId(String internalId) throws EdalException
PublicReference object by the internal UUID for
generating HTML templateinternalId - as StringPublicReferenceEdalExceptionvoid acceptTicketByUser(String ticket, int reviewerHashCode) throws EdalApprovalException
EdalApprovalExceptionvoid rejectTicketByUser(String ticket, int reviewerHashCode) throws EdalApprovalException
EdalApprovalExceptionCopyright © 2015 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK). All rights reserved.