Class URNReference
- java.lang.Object
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.reference.URNReference
-
- All Implemented Interfaces:
Referenceable
public class URNReference extends java.lang.Object implements Referenceable
-
-
Constructor Summary
Constructors Constructor Description URNReference()
-
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
Description copied from interface:Referenceable
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
Description copied from interface:Referenceable
Reject the Approval of thePublicReference
.- 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
Description copied from interface:Referenceable
Validate theMetaData
schema of thePrimaryDataEntityVersion
if it is valid for thisPersistentIdentifier
type.- 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
-
-