Class DataCiteReference
- java.lang.Object
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.reference.DataCiteReference
-
- All Implemented Interfaces:
Referenceable
public class DataCiteReference extends java.lang.Object implements Referenceable
DataCite implementation of theReferenceableinterface, to connect the system with the DataCite interface.
-
-
Constructor Summary
Constructors Constructor Description DataCiteReference()
-
Method Summary
Modifier and Type Method Description java.lang.StringacceptApprovalRequest(PublicReference publicReference)Accept the Approval of thePublicReference.java.lang.StringBuffernegotiateContent(PublicReference publicReference, ContentNegotiationType type)voidrejectApprovalRequest(PublicReference publicReference)Reject the Approval of thePublicReference.voidvalidateMetaData(PrimaryDataEntityVersion entityVersion)Validate theMetaDataschema of thePrimaryDataEntityVersionif it is valid for thisPersistentIdentifiertype.
-
-
-
Method Detail
-
acceptApprovalRequest
public java.lang.String acceptApprovalRequest(PublicReference publicReference) throws ReferenceableException
Accept the Approval of thePublicReference.- Specified by:
acceptApprovalRequestin interfaceReferenceable- Parameters:
publicReference- thePublicReferenceto accept.- Returns:
- the generated identifier
- Throws:
ReferenceableException- if unable to accept the request.
-
rejectApprovalRequest
public void rejectApprovalRequest(PublicReference publicReference) throws ReferenceableException
Reject the Approval of thePublicReference.no implementation for DataCite necessary: impossible to reserve IDs
- Specified by:
rejectApprovalRequestin interfaceReferenceable- Parameters:
publicReference- thePublicReferenceto reject.- Throws:
ReferenceableException- if unable to reject the request.
-
validateMetaData
public void validateMetaData(PrimaryDataEntityVersion entityVersion) throws EdalPublicationMetaDataException
Validate theMetaDataschema of thePrimaryDataEntityVersionif it is valid for thisPersistentIdentifiertype.Check the
MetaDataschema against theDataCiteXmlMapperschema.- Specified by:
validateMetaDatain interfaceReferenceable- Parameters:
entityVersion- thePrimaryDataEntityVersionto check theMetaData.- Throws:
EdalPublicationMetaDataException- if validation failed.
-
negotiateContent
public java.lang.StringBuffer negotiateContent(PublicReference publicReference, ContentNegotiationType type)
- Specified by:
negotiateContentin interfaceReferenceable
-
-