public interface ApprovalServiceProvider
| Modifier and Type | Method and Description |
|---|---|
void |
accept(java.lang.String ticket,
int reviewerId)
Accept a
PublicReference and publish to public. |
void |
acceptTicketByUser(java.lang.String ticket,
int reviewerId)
Accept an open ticket by the user who requested the data publication to
get a final persistent ID
|
void |
approve(PublicReference reference,
javax.mail.internet.InternetAddress emailNotificationAddress)
Initialize a request to approve a
PublicReference. |
void |
checkOpenReviews(java.util.Map<PublicReference,java.util.List<ReviewStatus>> results)
|
java.util.Map<PublicReference,java.util.List<ReviewStatus>> |
getAllOpenReviews()
Load all open
PublicReferences that are not yet accepted or
rejected. |
java.lang.String |
getNewURL(PublicReference reference)
|
PublicReference |
getPublicReferenceByInternalId(java.lang.String internalId)
Get a
PublicReference object by the internal UUID for
generating HTML template |
void |
reject(java.lang.String ticket,
int reviewerId)
Reject a
PublicReference. |
void |
rejectTicketByUser(java.lang.String ticket,
int reviewerId)
Reject an open ticket by the user who requested to discard the process
and not getting a persistent ID
|
java.lang.String |
storePersistentID(PublicReference reference,
java.lang.String id,
int year)
Store the generated
DataCiteReference in to the eDAL system. |
void accept(java.lang.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(java.lang.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.java.util.Map<PublicReference,java.util.List<ReviewStatus>> getAllOpenReviews()
PublicReferences that are not yet accepted or
rejected.Map with all open PublicReferences and the
corresponding List with the ReviewStatus.void checkOpenReviews(java.util.Map<PublicReference,java.util.List<ReviewStatus>> results) throws EdalApprovalException
results - a Map with all open PublicReferences and their
ReviewStatus.EdalApprovalException - if unable to check open review processes.java.lang.String getNewURL(PublicReference reference) throws EdalApprovalException
reference - the PublicReference to get a URLStringEdalApprovalException - if unable to get a URLjava.lang.String storePersistentID(PublicReference reference, java.lang.String id, int year) throws EdalApprovalException
DataCiteReference in to the eDAL system.reference - the corresponding PublicReferenceid - the ID as Stringyear - the year of the IDStringEdalApprovalException - if unable to store the IDPublicReference getPublicReferenceByInternalId(java.lang.String internalId) throws EdalException
PublicReference object by the internal UUID for
generating HTML templateinternalId - as StringPublicReferenceEdalException - if unable get PublicReferencevoid acceptTicketByUser(java.lang.String ticket,
int reviewerId)
throws EdalApprovalException
ticket - the ticket of the open requestreviewerId - the id of the reviewerEdalApprovalException - if unable to accept the requestvoid rejectTicketByUser(java.lang.String ticket,
int reviewerId)
throws EdalApprovalException
ticket - the ticket of the open requestreviewerId - the id of the reviewerEdalApprovalException - if unable to accept the request