@Distributive public abstract class AbstractTranslator extends AbstractCurationTask
curator, taskId| Constructor and Description |
|---|
AbstractTranslator() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(Curator curator,
String taskId)
Initialize task - parameters inform the task of it's invoking curator.
|
protected void |
initApi() |
int |
perform(DSpaceObject dso)
Perform the curation task upon passed DSO
|
protected String |
translateText(String from,
String to,
String text) |
dereference, distribute, perform, performItem, performObject, report, setResult, taskBooleanProperty, taskIntProperty, taskLongProperty, taskPropertypublic void init(Curator curator, String taskId) throws IOException
CurationTaskinit in interface CurationTaskinit in class AbstractCurationTaskcurator - the Curator controlling this tasktaskId - identifier task should use in invoking servicesIOExceptionpublic int perform(DSpaceObject dso) throws IOException
CurationTaskperform in interface CurationTaskperform in class AbstractCurationTaskdso - the DSpace objectIOExceptionprotected void initApi()
protected String translateText(String from, String to, String text) throws IOException
IOExceptionCopyright © 2013 DuraSpace. All Rights Reserved.