public class SimpleDSORelationsConverterPlugin extends java.lang.Object implements ConverterPlugin
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String[] |
collection2community |
protected java.lang.String[] |
collection2item |
protected java.lang.String[] |
community2collection |
protected java.lang.String[] |
community2site |
protected java.lang.String[] |
community2subcommunity |
protected ConfigurationService |
configurationService |
protected java.lang.String[] |
item2bitstream |
protected java.lang.String[] |
item2collection |
static java.lang.String |
SIMPLE_RELATIONS_COLLECTION2COMMUNITY_KEY |
static java.lang.String |
SIMPLE_RELATIONS_COLLECTION2ITEM_KEY |
static java.lang.String |
SIMPLE_RELATIONS_COMMUNITY2COLLECTION_KEY |
static java.lang.String |
SIMPLE_RELATIONS_COMMUNITY2SITE_KEY |
static java.lang.String |
SIMPLE_RELATIONS_COMMUNITY2SUBCOMMUNITY_KEY |
static java.lang.String |
SIMPLE_RELATIONS_ITEM2BITSTREAM_KEY |
static java.lang.String |
SIMPLE_RELATIONS_ITEM2COLLECTION_KEY |
static java.lang.String |
SIMPLE_RELATIONS_PREFIXES_KEY |
static java.lang.String |
SIMPLE_RELATIONS_SITE2COMMUNITY_KEY |
static java.lang.String |
SIMPLE_RELATIONS_SUBCOMMUNITY2COMMUNITY_KEY |
protected java.lang.String[] |
site2community |
protected java.lang.String[] |
subcommunity2community |
| Constructor and Description |
|---|
SimpleDSORelationsConverterPlugin() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
bitstreamURI(Bitstream bitstream)
This methods generataes a link to the provieded Bitstream.
|
com.hp.hpl.jena.rdf.model.Model |
convert(Context context,
DSpaceObject dso)
Convert the specified DSpaceObject or a part of it into RDF.
|
com.hp.hpl.jena.rdf.model.Model |
convertCollection(Context context,
Collection collection) |
com.hp.hpl.jena.rdf.model.Model |
convertCommunity(Context context,
Community community) |
com.hp.hpl.jena.rdf.model.Model |
convertItem(Context context,
Item item) |
com.hp.hpl.jena.rdf.model.Model |
convertSite(Context context,
Site site) |
protected com.hp.hpl.jena.rdf.model.Model |
getPrefixes()
Loads the prefixes that should be used by the
SimpleDSORelationsConverterPlugin.
|
void |
setConfigurationService(ConfigurationService configurationService) |
boolean |
supports(int type)
Returns all type of DSpaceObjects that are supported by this plugin.
|
public static final java.lang.String SIMPLE_RELATIONS_PREFIXES_KEY
public static final java.lang.String SIMPLE_RELATIONS_SITE2COMMUNITY_KEY
public static final java.lang.String SIMPLE_RELATIONS_COMMUNITY2SITE_KEY
public static final java.lang.String SIMPLE_RELATIONS_COMMUNITY2SUBCOMMUNITY_KEY
public static final java.lang.String SIMPLE_RELATIONS_SUBCOMMUNITY2COMMUNITY_KEY
public static final java.lang.String SIMPLE_RELATIONS_COMMUNITY2COLLECTION_KEY
public static final java.lang.String SIMPLE_RELATIONS_COLLECTION2COMMUNITY_KEY
public static final java.lang.String SIMPLE_RELATIONS_COLLECTION2ITEM_KEY
public static final java.lang.String SIMPLE_RELATIONS_ITEM2COLLECTION_KEY
public static final java.lang.String SIMPLE_RELATIONS_ITEM2BITSTREAM_KEY
protected ConfigurationService configurationService
protected java.lang.String[] site2community
protected java.lang.String[] community2site
protected java.lang.String[] community2subcommunity
protected java.lang.String[] subcommunity2community
protected java.lang.String[] community2collection
protected java.lang.String[] collection2community
protected java.lang.String[] collection2item
protected java.lang.String[] item2collection
protected java.lang.String[] item2bitstream
protected com.hp.hpl.jena.rdf.model.Model getPrefixes()
public void setConfigurationService(ConfigurationService configurationService)
setConfigurationService in interface ConverterPluginpublic com.hp.hpl.jena.rdf.model.Model convert(Context context, DSpaceObject dso) throws java.sql.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.java.sql.SQLExceptionpublic com.hp.hpl.jena.rdf.model.Model convertSite(Context context, Site site) throws java.sql.SQLException
java.sql.SQLExceptionpublic com.hp.hpl.jena.rdf.model.Model convertCommunity(Context context, Community community) throws java.sql.SQLException
java.sql.SQLExceptionpublic com.hp.hpl.jena.rdf.model.Model convertCollection(Context context, Collection collection) throws java.sql.SQLException
java.sql.SQLExceptionpublic com.hp.hpl.jena.rdf.model.Model convertItem(Context context, Item item) throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.String bitstreamURI(Bitstream bitstream) throws java.sql.SQLException
bitstream - Bitstream for which a URL should be generated.java.sql.SQLExceptionpublic boolean supports(int type)
ConverterPluginsupports in interface ConverterPlugintype - Resource type as defined in org.dspace.core.Constants.ConstantsCopyright © 2018 DuraSpace. All Rights Reserved.