org.dspace.content.crosswalk
Class LicenseStreamDisseminationCrosswalk

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

public class LicenseStreamDisseminationCrosswalk
extends Object
implements StreamDisseminationCrosswalk

Export the object's DSpace deposit license.

Version:
$Revision: 1.0 $
Author:
Larry Stone

Constructor Summary
LicenseStreamDisseminationCrosswalk()
           
 
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

LicenseStreamDisseminationCrosswalk

public LicenseStreamDisseminationCrosswalk()
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 © 2011 DuraSpace. All Rights Reserved.