@Mutative @Suspendable public class MetadataWebService extends AbstractCurationTask implements NamespaceContext
| Modifier and Type | Field and Description |
|---|---|
protected List<MetadataWebServiceDataInfo> |
dataList |
protected DocumentBuilder |
docBuilder |
protected String |
fieldSeparator |
protected Map<String,String> |
headers |
protected String |
lang |
protected String |
lookupField |
protected String |
lookupTransform |
protected Map<String,String> |
nsMap |
protected String |
templateParam |
protected Pattern |
ttPattern |
protected String |
urlTemplate |
communityService, configurationService, curator, handleService, itemService, taskId| Constructor and Description |
|---|
MetadataWebService() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
callService(String value,
Item item,
StringBuilder resultSb) |
protected void |
checkNamespaces(Document document) |
protected int |
getMapIndex(String mapping) |
String |
getNamespaceURI(String prefix) |
String |
getPrefix(String uri) |
Iterator |
getPrefixes(String uri) |
void |
init(Curator curator,
String taskId)
Initializes task
|
protected String |
mangleExpr(String expr,
String prefix) |
protected String[] |
parseTransform(String field) |
int |
perform(DSpaceObject dso)
Perform the curation task upon passed DSO
|
protected int |
processResponse(Document doc,
Item item,
StringBuilder resultSb) |
protected String[] |
tokenize(String text) |
protected String |
transform(String value,
String transDef) |
dereference, distribute, perform, performItem, performObject, report, setResult, taskArrayProperty, taskBooleanProperty, taskIntProperty, taskLongProperty, taskPropertyprotected Pattern ttPattern
protected String urlTemplate
protected String templateParam
protected String lookupField
protected String lookupTransform
protected List<MetadataWebServiceDataInfo> dataList
protected DocumentBuilder docBuilder
protected String lang
protected String fieldSeparator
public void init(Curator curator, String taskId) throws IOException
init in interface CurationTaskinit in class AbstractCurationTaskcurator - Curator object performing this tasktaskId - the configured local name of the taskIOExceptionpublic int perform(DSpaceObject dso) throws IOException
perform in interface CurationTaskperform in class AbstractCurationTaskdso - the DSpace objectIOExceptionprotected int callService(String value, Item item, StringBuilder resultSb) throws IOException
IOExceptionprotected int processResponse(Document doc, Item item, StringBuilder resultSb) throws IOException
IOExceptionprotected int getMapIndex(String mapping)
protected void checkNamespaces(Document document) throws IOException
IOExceptionpublic String getNamespaceURI(String prefix)
getNamespaceURI in interface NamespaceContextpublic String getPrefix(String uri)
getPrefix in interface NamespaceContextpublic Iterator getPrefixes(String uri)
getPrefixes in interface NamespaceContextCopyright © 2016 DuraSpace. All Rights Reserved.