public class CreativeCommonsRDFStreamDisseminationCrosswalk extends Object implements StreamDisseminationCrosswalk
Constructor and Description |
---|
CreativeCommonsRDFStreamDisseminationCrosswalk() |
Modifier and Type | Method and Description |
---|---|
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() |
public CreativeCommonsRDFStreamDisseminationCrosswalk()
public boolean canDisseminate(Context context, DSpaceObject dso)
StreamDisseminationCrosswalk
canDisseminate
in interface StreamDisseminationCrosswalk
dso
- dspace object, e.g. an Item
.public void disseminate(Context context, DSpaceObject dso, OutputStream out) throws CrosswalkException, IOException, SQLException, AuthorizeException
StreamDisseminationCrosswalk
disseminate
in interface StreamDisseminationCrosswalk
context
- the DSpace contextdso
- the DSpace Object whose metadata to export.out
- output stream to write toCrosswalkInternalException
- (CrosswalkException
) failure of the crosswalk itself.CrosswalkObjectNotSupported
- (CrosswalkException
) Cannot crosswalk this kind of DSpace object.IOException
- I/O failure in services this callsSQLException
- Database failure in services this callsAuthorizeException
- current user not authorized for this operation.CrosswalkException
public String getMIMEType()
getMIMEType
in interface StreamDisseminationCrosswalk
Copyright © 2016 DuraSpace. All Rights Reserved.