org.dspace.content.crosswalk
Class CreativeCommonsRDFStreamDisseminationCrosswalk

java.lang.Object
  extended by org.dspace.content.crosswalk.CreativeCommonsRDFStreamDisseminationCrosswalk
All Implemented Interfaces:
StreamDisseminationCrosswalk

public class CreativeCommonsRDFStreamDisseminationCrosswalk
extends Object
implements StreamDisseminationCrosswalk

Export the item's Creative Commons license, RDF form.

Version:
$Revision: 1.0 $
Author:
Larry Stone

Constructor Summary
CreativeCommonsRDFStreamDisseminationCrosswalk()
           
 
Method Summary
 boolean canDisseminate(Context context, DSpaceObject dso)
          Predicate: Can this disseminator crosswalk the given object.
 void disseminate(Context context, DSpaceObject dso, OutputStream out)
          Execute crosswalk on the given object, sending output to the stream.
 String getMIMEType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreativeCommonsRDFStreamDisseminationCrosswalk

public CreativeCommonsRDFStreamDisseminationCrosswalk()
Method Detail

canDisseminate

public boolean canDisseminate(Context context,
                              DSpaceObject dso)
Description copied from interface: StreamDisseminationCrosswalk
Predicate: Can this disseminator crosswalk the given object.

Specified by:
canDisseminate in interface StreamDisseminationCrosswalk
dso - dspace object, e.g. an Item.
Returns:
true when disseminator is capable of producing metadata.

disseminate

public void disseminate(Context context,
                        DSpaceObject dso,
                        OutputStream out)
                 throws CrosswalkException,
                        IOException,
                        SQLException,
                        AuthorizeException
Description copied from interface: StreamDisseminationCrosswalk
Execute crosswalk on the given object, sending output to the stream.

Specified by:
disseminate in interface StreamDisseminationCrosswalk
Parameters:
context - the DSpace context
dso - the DSpace Object whose metadata to export.
out - output stream to write to
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()
Specified by:
getMIMEType in interface StreamDisseminationCrosswalk


Copyright © 2010 DuraSpace. All Rights Reserved.