public class XSLTDisseminationCrosswalk extends XSLTCrosswalk implements ParameterizedDisseminationCrosswalk
See the XSLTCrosswalk superclass for details on configuration.
crosswalk.dissemination.PluginName.namespace.Prefix = namespace-URI crosswalk.dissemination.PluginName.schemaLocation = schemaLocation value crosswalk.dissemination.PluginName.preferList = boolean (default is false)For example:
crosswalk.dissemination.qdc.namespace.dc = http://purl.org/dc/elements/1.1/
crosswalk.dissemination.qdc.namespace.dcterms = http://purl.org/dc/terms/
crosswalk.dissemination.qdc.schemaLocation = \
http://purl.org/dc/elements/1.1/ http://dublincore.org/schemas/xmls/qdc/2003/04/02/qualifieddc.xsd
crosswalk.dissemination.qdc.preferList = true
XSLTCrosswalk| Modifier and Type | Field and Description |
|---|---|
protected static CollectionService |
collectionService |
protected static CommunityService |
communityService |
protected static ItemService |
itemService |
CONFIG_PREFIX, DIM_NSXSI_NS| Constructor and Description |
|---|
XSLTDisseminationCrosswalk() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDisseminate(DSpaceObject dso)
Determine is this crosswalk can dessiminate the given object.
|
static org.jdom.Element |
createDIM(DSpaceObject dso)
Generate an intermediate representation of a DSpace object.
|
static org.jdom.Element |
createDIM(DSpaceObject dso,
List<MockMetadataValue> dcvs)
Generate an intermediate representation of a DSpace object.
|
org.jdom.Element |
disseminateElement(Context context,
DSpaceObject dso)
Execute crosswalk, returning one XML root element as
a JDOM
Element object. |
org.jdom.Element |
disseminateElement(Context context,
DSpaceObject dso,
Map<String,String> parameters)
Execute crosswalk, returning one XML root element as
a JDOM
Element object. |
List<org.jdom.Element> |
disseminateList(Context context,
DSpaceObject dso)
Disseminate the DSpace item, collection, or community.
|
org.jdom.Namespace[] |
getNamespaces()
Return the namespace used by this crosswalk.
|
static String[] |
getPluginNames() |
String |
getSchemaLocation()
Return the schema location used by this crosswalk.
|
protected static List<MockMetadataValue> |
item2Metadata(Item item) |
static void |
main(String[] argv)
Simple command-line rig for testing the DIM output of a stylesheet.
|
boolean |
preferList()
return true if this crosswalk prefers the list form over an single
element, otherwise false.
|
getTransformer, makeAliasesgetPluginInstanceName, setPluginInstanceNameprotected static final CommunityService communityService
protected static final CollectionService collectionService
protected static final ItemService itemService
public static String[] getPluginNames()
public org.jdom.Namespace[] getNamespaces()
getNamespaces in interface DisseminationCrosswalkDisseminationCrosswalkpublic String getSchemaLocation()
getSchemaLocation in interface DisseminationCrosswalkDisseminationCrosswalkpublic org.jdom.Element disseminateElement(Context context, DSpaceObject dso) throws CrosswalkException, IOException, SQLException, AuthorizeException
DisseminationCrosswalkElement object.
This is typically the root element of a document.
disseminateElement in interface DisseminationCrosswalkcontext - contextdso - the DSpace Object whose metadata to export.nullCrosswalkInternalException - (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.CrosswalkExceptionpublic org.jdom.Element disseminateElement(Context context, DSpaceObject dso, Map<String,String> parameters) throws CrosswalkException, IOException, SQLException, AuthorizeException
ParameterizedDisseminationCrosswalkElement object.
This is typically the root element of a document.
disseminateElement in interface ParameterizedDisseminationCrosswalkdso - the DSpace Object whose metadata to export.parameters - names and values of parameters to be passed into the transform.null.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.CrosswalkExceptionpublic List<org.jdom.Element> disseminateList(Context context, DSpaceObject dso) throws CrosswalkException, IOException, SQLException, AuthorizeException
disseminateList in interface DisseminationCrosswalkcontext - contextdso - the DSpace Object whose metadata to export.CrosswalkException - crosswalk errorIOException - if IO errorSQLException - if database errorAuthorizeException - if authorization errorDisseminationCrosswalkpublic boolean canDisseminate(DSpaceObject dso)
canDisseminate in interface DisseminationCrosswalkdso - dspace object, e.g. an Item.DisseminationCrosswalkpublic boolean preferList()
preferList in interface DisseminationCrosswalkDisseminationCrosswalkpublic static org.jdom.Element createDIM(DSpaceObject dso, List<MockMetadataValue> dcvs)
dso - The dspace object to build a representation of.dcvs - list of metadatapublic static org.jdom.Element createDIM(DSpaceObject dso)
dso - The dspace object to build a representation of.protected static List<MockMetadataValue> item2Metadata(Item item)
Copyright © 2017 DuraSpace. All rights reserved.