public class StaticDSOConverterPlugin extends Object implements ConverterPlugin
| Modifier and Type | Field and Description |
|---|---|
protected ConfigurationService |
configurationService |
static String |
CONSTANT_DATA_FILENAME_KEY_PREFIX |
static String |
CONSTANT_DATA_GENERAL_KEY_SUFFIX |
| Constructor and Description |
|---|
StaticDSOConverterPlugin() |
| Modifier and Type | Method and Description |
|---|---|
com.hp.hpl.jena.rdf.model.Model |
convert(Context context,
DSpaceObject dso)
Convert the specified DSpaceObject or a part of it into RDF.
|
protected com.hp.hpl.jena.rdf.model.Model |
readFile(String fileSuffix,
String base) |
void |
setConfigurationService(ConfigurationService configurationService) |
boolean |
supports(int type)
Returns all type of DSpaceObjects that are supported by this plugin.
|
public static final String CONSTANT_DATA_FILENAME_KEY_PREFIX
public static final String CONSTANT_DATA_GENERAL_KEY_SUFFIX
@Autowired(required=true) protected ConfigurationService configurationService
public void setConfigurationService(ConfigurationService configurationService)
setConfigurationService in interface ConverterPluginpublic com.hp.hpl.jena.rdf.model.Model convert(Context context, DSpaceObject dso) throws SQLException
ConverterPluginconvert in interface ConverterPlugincontext - Please check the READ permission for the provided context
before converting any data!dso - The DSpaceObject that should be converted.SQLExceptionpublic boolean supports(int type)
ConverterPluginsupports in interface ConverterPlugintype - Resource type as defined in org.dspace.core.Constants.ConstantsCopyright © 2017 DuraSpace. All rights reserved.