Package org.dspace.utils

Examples of org.dspace.utils.DSpace


            log.warn("DOIConsumer got an event whose subject was not an item, "
                    + "skipping: " + event.toString());
        }
        Item item = (Item) dso;
       
        DOIIdentifierProvider provider = new DSpace().getSingletonService(
                DOIIdentifierProvider.class);
       
        String doi = null;
        try {
            doi = provider.lookup(ctx, dso);
View Full Code Here


                item.setArchived(true);
                item.update();
            }

            // assign tombstone to the Identifier and reset canonical to the previous version only if there is a previous version
            IdentifierService identifierService = new DSpace().getSingletonService(IdentifierService.class);
            Item itemToDelete=versionToDelete.getItem();
            identifierService.delete(c, itemToDelete);
        } catch (SQLException e) {
            throw new RuntimeException(e.getMessage(), e);
        } catch (AuthorizeException e) {
View Full Code Here

    {
        try
        {
            copyMetadata(itemNew, previousItem);
            createBundlesAndAddBitstreams(c, itemNew, previousItem);
            IdentifierService identifierService = new DSpace().getSingletonService(IdentifierService.class);
            try
            {
                identifierService.reserve(c, itemNew);
            } catch (IdentifierException e) {
                throw new RuntimeException("Can't create Identifier!");
View Full Code Here

        return RDFConfiguration.loadConfigurationArray(CONVERTER_PLUGINS_KEY);
    }
   
    public static String[] getDSOTypesToConvert()
    {
        String dsoTypes = (new DSpace()).getConfigurationService().getProperty(
                CONVERTER_DSOTYPES_KEY);
        if (StringUtils.isEmpty(dsoTypes))
        {
            log.warn("Property rdf." + CONVERTER_DSOTYPES_KEY + " was not found "
                    + "or is empty. Will convert all type of DSpace Objects.");
View Full Code Here

    }
   
    public static boolean isContentNegotiationEnabled()
    {
        ConfigurationService configurationService =
                new DSpace().getConfigurationService();
        return configurationService.getPropertyAsType(CONTENT_NEGOTIATION_KEY,
                false);
    }
View Full Code Here

    }
   
    public static String getPublicSparqlEndpointAddress()
    {
        ConfigurationService configurationService =
                    new DSpace().getConfigurationService();
        return configurationService.getProperty(SPARQL_ENDPOINT_KEY);
    }
View Full Code Here

    }
   
    public static String getInternalSparqlEndpointAddress()
    {
        ConfigurationService configurationService =
                new DSpace().getConfigurationService();
        String internalSparqlEndpoint =
                configurationService.getProperty(STORAGE_SPARQL_ENDPOINT_KEY);
        String externalSparqlEndpoint =
                configurationService.getProperty(SPARQL_ENDPOINT_KEY);
        return StringUtils.isEmpty(internalSparqlEndpoint) ?
View Full Code Here

    }
   
    public static String getDSpaceRDFModuleURI()
    {
        ConfigurationService configurationService =
                    new DSpace().getConfigurationService();
        return configurationService.getProperty(CONTEXT_PATH_KEY);
    }
View Full Code Here

    protected static RDFConverter getRDFConverter()
    {
        if (converter == null)
        {
            ConfigurationService configurationService =
                    new DSpace().getConfigurationService();
            converter = (RDFConverter) initializeClass(configurationService,
                    RDFCONVERTER_KEY, "RDFConverter");
        }
        return converter;
    }
View Full Code Here

    protected static URIGenerator getURIGenerator()
    {
        if (generator == null)
        {
            ConfigurationService configurationService =
                    new DSpace().getConfigurationService();
            generator = (URIGenerator) initializeClass(configurationService,
                    URIGENERATOR_KEY, "URIGenerator");
        }
        return generator;
    }
View Full Code Here

TOP

Related Classes of org.dspace.utils.DSpace

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.