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 theReferenceable
interface, to connect the system with the DataCite interface.
-
-
Constructor Summary
Constructors Constructor Description DataCiteReference()
-
Method Summary
Modifier and Type Method Description java.lang.String
acceptApprovalRequest(PublicReference publicReference)
Accept the Approval of thePublicReference
.java.lang.StringBuffer
negotiateContent(PublicReference publicReference, ContentNegotiationType type)
void
rejectApprovalRequest(PublicReference publicReference)
Reject the Approval of thePublicReference
.void
validateMetaData(PrimaryDataEntityVersion entityVersion)
Validate theMetaData
schema of thePrimaryDataEntityVersion
if it is valid for thisPersistentIdentifier
type.
-
-
-
Method Detail
-
acceptApprovalRequest
public java.lang.String acceptApprovalRequest(PublicReference publicReference) throws ReferenceableException
Accept the Approval of thePublicReference
.- Specified by:
acceptApprovalRequest
in interfaceReferenceable
- Parameters:
publicReference
- thePublicReference
to 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:
rejectApprovalRequest
in interfaceReferenceable
- Parameters:
publicReference
- thePublicReference
to reject.- Throws:
ReferenceableException
- if unable to reject the request.
-
validateMetaData
public void validateMetaData(PrimaryDataEntityVersion entityVersion) throws EdalPublicationMetaDataException
Validate theMetaData
schema of thePrimaryDataEntityVersion
if it is valid for thisPersistentIdentifier
type.Check the
MetaData
schema against theDataCiteXmlMapper
schema.- Specified by:
validateMetaData
in interfaceReferenceable
- Parameters:
entityVersion
- thePrimaryDataEntityVersion
to check theMetaData
.- Throws:
EdalPublicationMetaDataException
- if validation failed.
-
negotiateContent
public java.lang.StringBuffer negotiateContent(PublicReference publicReference, ContentNegotiationType type)
- Specified by:
negotiateContent
in interfaceReferenceable
-
-