public class XSLTIngestionCrosswalk extends XSLTCrosswalk implements IngestionCrosswalk
See the XSLTCrosswalk superclass for details on configuration.
XSLTCrosswalkCONFIG_PREFIX, DIM_NS| Constructor and Description |
|---|
XSLTIngestionCrosswalk() |
| Modifier and Type | Method and Description |
|---|---|
static String[] |
getPluginNames() |
void |
ingest(Context context,
DSpaceObject dso,
org.jdom.Element root)
Ingest a whole document.
|
void |
ingest(Context context,
DSpaceObject dso,
List<org.jdom.Element> metadata)
Translate metadata with XSL stylesheet and ingest it.
|
static void |
ingestDIM(Context context,
DSpaceObject dso,
org.jdom.Element dim)
Ingest a DIM metadata expression directly, without
translating some other format into DIM.
|
static void |
ingestDIM(Context context,
DSpaceObject dso,
List<org.jdom.Element> fields) |
static void |
main(String[] argv)
Simple command-line rig for testing the DIM output of a stylesheet.
|
getTransformer, makeAliasesgetPluginInstanceName, setPluginInstanceNamepublic static String[] getPluginNames()
public void ingest(Context context, DSpaceObject dso, List<org.jdom.Element> metadata) throws CrosswalkException, IOException, SQLException, AuthorizeException
ingest in interface IngestionCrosswalkcontext - DSpace context.dso - DSpace Object (Item, Bitstream, etc) to which new metadata gets attached.metadata - List of XML Elements of metadataCrosswalkInternalException - (CrosswalkException) failure of the crosswalk itself.CrosswalkObjectNotSupported - (CrosswalkException) Cannot crosswalk into this kind of DSpace object.MetadataValidationException - (CrosswalkException) metadata format was not acceptable or missing required elements.IOException - I/O failure in services this callsSQLException - Database failure in services this callsAuthorizeException - current user not authorized for this operation.CrosswalkExceptionpublic void ingest(Context context, DSpaceObject dso, org.jdom.Element root) throws CrosswalkException, IOException, SQLException, AuthorizeException
ingest in interface IngestionCrosswalkcontext - DSpace context.dso - DSpace Object (usually an Item) to which new metadata gets attached.root - root Element of metadata document.CrosswalkInternalException - (CrosswalkException) failure of the crosswalk itself.CrosswalkObjectNotSupported - (CrosswalkException) Cannot crosswalk into this kind of DSpace object.MetadataValidationException - (CrosswalkException) metadata format was not acceptable or missing required elements.IOException - I/O failure in services this callsSQLException - Database failure in services this callsAuthorizeException - current user not authorized for this operation.CrosswalkExceptionpublic static void ingestDIM(Context context, DSpaceObject dso, org.jdom.Element dim) throws CrosswalkException, IOException, SQLException, AuthorizeException
dim element is expected to be be the root of
a DIM document.
Note that this is ONLY implemented for Item, Collection, and Community objects. Also only works for the "dc" metadata schema.
context - the contextdso - object into which to ingest metadatadim - root of a DIM expressionCrosswalkExceptionIOExceptionSQLExceptionAuthorizeExceptionpublic static void ingestDIM(Context context, DSpaceObject dso, List<org.jdom.Element> fields) throws CrosswalkException, IOException, SQLException, AuthorizeException
Copyright © 2015 DuraSpace. All Rights Reserved.