Package org.dspace.content.crosswalk
Interface ParameterizedDisseminationCrosswalk
- All Superinterfaces:
DisseminationCrosswalk
- All Known Implementing Classes:
XSLTDisseminationCrosswalk
Translate DSpace native metadata into an external XML format, with parameters.
This extends
DisseminationCrosswalk by accepting a table of XSL-T global
parameter names and values, which will be passed to the selected transform.- Author:
- mhwood
-
Field Summary
Fields inherited from interface org.dspace.content.crosswalk.DisseminationCrosswalk
XSI_NS -
Method Summary
Modifier and TypeMethodDescriptionorg.jdom2.ElementdisseminateElement(Context context, DSpaceObject dso, Map<String, String> parameters) Execute crosswalk, returning one XML root element as a JDOMElementobject.Methods inherited from interface org.dspace.content.crosswalk.DisseminationCrosswalk
canDisseminate, disseminateElement, disseminateList, getNamespaces, getSchemaLocation, preferList
-
Method Details
-
disseminateElement
org.jdom2.Element disseminateElement(Context context, DSpaceObject dso, Map<String, String> parameters) throws CrosswalkException, IOException, SQLException, AuthorizeExceptionExecute crosswalk, returning one XML root element as a JDOMElementobject. This is typically the root element of a document.- Parameters:
context- The relevant DSpace Context.dso- the DSpace Object whose metadata to export.parameters- names and values of parameters to be passed into the transform.- Returns:
- root Element of the target metadata, never
null. - Throws:
CrosswalkInternalException- (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
-