Interface ConverterPlugin

All Known Implementing Classes:
MetadataConverterPlugin, SimpleDSORelationsConverterPlugin, StaticDSOConverterPlugin

public interface ConverterPlugin
Author:
Pascal-Nicolas Becker (dspace -at- pascal -hyphen- becker -dot- de)
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.jena.rdf.model.Model
    convert(Context context, DSpaceObject dso)
    Convert the specified DSpaceObject or a part of it into RDF.
    void
     
    boolean
    supports(int type)
    Returns all type of DSpaceObjects that are supported by this plugin.
  • Method Details

    • setConfigurationService

      void setConfigurationService(ConfigurationService configurationService)
    • convert

      org.apache.jena.rdf.model.Model convert(Context context, DSpaceObject dso) throws SQLException, AuthorizeException
      Convert the specified DSpaceObject or a part of it into RDF.
      Parameters:
      context - Please check the READ permission for the provided context before converting any data!
      dso - The DSpaceObject that should be converted.
      Returns:
      A Jena Model containing the generated RDF.
      Throws:
      SQLException - An exception that provides information on a database access error or other errors.
      AuthorizeException - Exception indicating the current user of the context does not have permission to perform a particular action.
    • supports

      boolean supports(int type)
      Returns all type of DSpaceObjects that are supported by this plugin.
      Parameters:
      type - Resource type as defined in org.dspace.core.Constants.
      Returns:
      A boolean whether the requested type is supported by this plugin.
      See Also: