public class SimpleDSORelationsConverterPlugin extends Object implements ConverterPlugin
| Constructor and Description |
|---|
SimpleDSORelationsConverterPlugin() |
| Modifier and Type | Method and Description |
|---|---|
String |
bitstreamURI(Context context,
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 String SIMPLE_RELATIONS_PREFIXES_KEY
public static final String SIMPLE_RELATIONS_SITE2COMMUNITY_KEY
public static final String SIMPLE_RELATIONS_COMMUNITY2SITE_KEY
public static final String SIMPLE_RELATIONS_COMMUNITY2SUBCOMMUNITY_KEY
public static final String SIMPLE_RELATIONS_SUBCOMMUNITY2COMMUNITY_KEY
public static final String SIMPLE_RELATIONS_COMMUNITY2COLLECTION_KEY
public static final String SIMPLE_RELATIONS_COLLECTION2COMMUNITY_KEY
public static final String SIMPLE_RELATIONS_COLLECTION2ITEM_KEY
public static final String SIMPLE_RELATIONS_ITEM2COLLECTION_KEY
public static final String SIMPLE_RELATIONS_ITEM2BITSTREAM_KEY
protected ConfigurationService configurationService
protected String[] site2community
protected String[] community2site
protected String[] community2subcommunity
protected String[] subcommunity2community
protected String[] community2collection
protected String[] collection2community
protected String[] collection2item
protected String[] item2collection
protected String[] item2bitstream
protected BitstreamService bitstreamService
protected ItemService itemService
protected CommunityService communityService
protected SiteService siteService
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 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 com.hp.hpl.jena.rdf.model.Model convertSite(Context context, Site site) throws SQLException
SQLExceptionpublic com.hp.hpl.jena.rdf.model.Model convertCommunity(Context context, Community community) throws SQLException
SQLExceptionpublic com.hp.hpl.jena.rdf.model.Model convertCollection(Context context, Collection collection) throws SQLException
SQLExceptionpublic com.hp.hpl.jena.rdf.model.Model convertItem(Context context, Item item) throws SQLException
SQLExceptionpublic String bitstreamURI(Context context, Bitstream bitstream) throws SQLException
bitstream - Bitstream for which a URL should be generated.SQLExceptionpublic boolean supports(int type)
ConverterPluginsupports in interface ConverterPlugintype - Resource type as defined in org.dspace.core.Constants.ConstantsCopyright © 2016 DuraSpace. All Rights Reserved.