org.dspace.content.crosswalk
Class CreativeCommonsRDFStreamIngestionCrosswalk

java.lang.Object
  extended by org.dspace.content.crosswalk.CreativeCommonsRDFStreamIngestionCrosswalk
All Implemented Interfaces:
StreamIngestionCrosswalk

public class CreativeCommonsRDFStreamIngestionCrosswalk
extends Object
implements StreamIngestionCrosswalk

Ingest a Creative Commons license, RDF form.

Note that this is NOT needed when ingesting a DSpace AIP, since the CC license is stored as a Bitstream (or two) in a dedicated Bundle; the normal apparatus of ingestig the AIP will restore that Bitstream with its proper name and thus the presence of the CC license.

This crosswalk should only be used when ingesting other kinds of SIPs.

Version:
$Revision: 1.0 $
Author:
Larry Stone

Constructor Summary
CreativeCommonsRDFStreamIngestionCrosswalk()
           
 
Method Summary
 String getMIMEType()
           
 void ingest(Context context, DSpaceObject dso, InputStream in, String MIMEType)
          Execute crosswalk on the given object, taking input from the stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreativeCommonsRDFStreamIngestionCrosswalk

public CreativeCommonsRDFStreamIngestionCrosswalk()
Method Detail

ingest

public void ingest(Context context,
                   DSpaceObject dso,
                   InputStream in,
                   String MIMEType)
            throws CrosswalkException,
                   IOException,
                   SQLException,
                   AuthorizeException
Description copied from interface: StreamIngestionCrosswalk
Execute crosswalk on the given object, taking input from the stream.

Specified by:
ingest in interface StreamIngestionCrosswalk
Parameters:
context - the DSpace context
dso - the DSpace Object whose metadata is being ingested.
in - input stream containing the metadata.
MIMEType - MIME type of the ???
Throws:
CrosswalkInternalException - (CrosswalkException) failure of the crosswalk itself.
CrosswalkObjectNotSupported - (CrosswalkException) Cannot crosswalk this kind of DSpace object.
IOException - I/O failure in services this calls
SQLException - Database failure in services this calls
AuthorizeException - current user not authorized for this operation.
CrosswalkException

getMIMEType

public String getMIMEType()


Copyright © 2012 DuraSpace. All Rights Reserved.