Class StaticDSOConverterPlugin

  • All Implemented Interfaces:
    ConverterPlugin

    public class StaticDSOConverterPlugin
    extends Object
    implements ConverterPlugin
    Author:
    Pascal-Nicolas Becker (dspace -at- pascal -hyphen- becker -dot- de)
    • Constructor Detail

      • StaticDSOConverterPlugin

        public StaticDSOConverterPlugin()
    • Method Detail

      • convert

        public com.hp.hpl.jena.rdf.model.Model convert​(Context context,
                                                       DSpaceObject dso)
                                                throws SQLException
        Description copied from interface: ConverterPlugin
        Convert the specified DSpaceObject or a part of it into RDF.
        Specified by:
        convert in interface ConverterPlugin
        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.
      • readFile

        protected com.hp.hpl.jena.rdf.model.Model readFile​(String fileSuffix,
                                                           String base)
      • supports

        public boolean supports​(int type)
        Description copied from interface: ConverterPlugin
        Returns all type of DSpaceObjects that are supported by this plugin.
        Specified by:
        supports in interface ConverterPlugin
        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:
        Constants