public abstract class NonXMLMetadataHandler
extends java.lang.Object
Constructor and Description |
---|
NonXMLMetadataHandler() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
save(java.io.InputStream source,
org.dataone.service.types.v1.SystemMetadata sysmeta,
org.dataone.service.types.v1.Session session,
EventLogData event)
Save the bytes to the disk
|
void |
saveReplication(java.io.InputStream source,
java.lang.String localId,
org.dataone.service.types.v1.SystemMetadata sysmeta,
java.lang.String owner,
int serverCode,
java.lang.String replicationNotificationServer,
EventLogData event)
Save the bytes to the disk from a replication process
|
abstract boolean |
validate(java.io.InputStream source)
The abstract method to validate the non-xml object
|
public java.lang.String save(java.io.InputStream source, org.dataone.service.types.v1.SystemMetadata sysmeta, org.dataone.service.types.v1.Session session, EventLogData event) throws org.dataone.service.exceptions.UnsupportedType, org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.InvalidRequest, org.dataone.service.exceptions.InvalidSystemMetadata, org.dataone.service.exceptions.NotAuthorized
source
- the input stream contains the content of the meta data objectsysmeta
- the sysmeta associated with the input streamsession
- the user's session who makes this callevent
- the event log information associated with this actionorg.dataone.service.exceptions.UnsupportedType
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidRequest
org.dataone.service.exceptions.InvalidSystemMetadata
org.dataone.service.exceptions.NotAuthorized
public void saveReplication(java.io.InputStream source, java.lang.String localId, org.dataone.service.types.v1.SystemMetadata sysmeta, java.lang.String owner, int serverCode, java.lang.String replicationNotificationServer, EventLogData event) throws org.dataone.service.exceptions.UnsupportedType, org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.InvalidRequest, org.dataone.service.exceptions.InvalidSystemMetadata, org.dataone.service.exceptions.NotAuthorized
source
- the input stream contains the content of the meta data objectsysmeta
- the system meta data associated with the sourcereplicationNtofication
- server the server name notifying the replication (only for the replication process)event
- the event log information associated with this actionorg.dataone.service.exceptions.UnsupportedType
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidRequest
org.dataone.service.exceptions.InvalidSystemMetadata
org.dataone.service.exceptions.NotAuthorized
public abstract boolean validate(java.io.InputStream source) throws org.dataone.service.exceptions.InvalidRequest
source
- the input stream contains the content of the meta data objectorg.dataone.service.exceptions.InvalidRequest
- when the content is not validCopyright © 2023 Regents of the University of California. All Rights Reserved.