Package org.dspace.utils

Examples of org.dspace.utils.DSpace


    protected static RDFStorage getRDFStorage()
    {
        if (storage == null)
        {
            ConfigurationService configurationService =
                    new DSpace().getConfigurationService();
            storage = (RDFStorage) initializeClass(configurationService,
                            RDFSTORAGE_KEY, "RDFStorage");
        }
        return storage;
    }
View Full Code Here


     * @return Null if the configuration value was not found or empty. A String
     *         array representing the configuration value splitted on commas. 
     */
    public static String[] loadConfigurationArray(String key)
    {
        String value = (new DSpace()).getConfigurationService().getProperty(key);
        if (StringUtils.isEmpty(value))
        {
            return null;
        }       
        return value.split(",\\s*");
 
View Full Code Here

    protected List<ConverterPlugin> plugins;
    private static final Logger log = Logger.getLogger(RDFConverterImpl.class);
   
    public RDFConverterImpl()
    {
        this.configurationService = new DSpace().getConfigurationService();
        this.plugins = new ArrayList<ConverterPlugin>();
       
        String pluginNames[] = RDFConfiguration.getConverterPlugins();
       
        if (pluginNames == null || pluginNames.length == 0)
View Full Code Here

            usageWorkflowEvent.setEpersonOwners(newOwner);
        }
        if(newOwnerGroup != null){
            usageWorkflowEvent.setGroupOwners(newOwnerGroup);
        }
        new DSpace().getEventService().fireEvent(usageWorkflowEvent);
    }
View Full Code Here

    }


    protected VersionHistory retrieveVersionHistory(Context c, Item item)
    {
        VersioningService versioningService = new DSpace().getSingletonService(VersioningService.class);
        return versioningService.findVersionHistory(c, item.getID());
    }
View Full Code Here

   
    private ConfigurationService configurationService;
   
    public RDFStorageImpl()
    {
        this.configurationService = new DSpace().getConfigurationService();
       
        this.GRAPHSTORE_ENDPOINT = this.configurationService
                .getProperty(RDFConfiguration.STORAGE_GRAPHSTORE_ENDPOINT_KEY);
        if (StringUtils.isEmpty(this.GRAPHSTORE_ENDPOINT))
        {
View Full Code Here

        {
            log.debug("This DSO's identifiers cache is empty, looking for identifiers...");
            identifiers = new String[0];

            IdentifierService identifierService =
                    new DSpace().getSingletonService(IdentifierService.class);

            if (identifierService != null)
            {
                identifiers = identifierService.lookup(context, this);
            } else {
View Full Code Here

        itemsToProcess = null;
    }


    private static org.dspace.versioning.VersionHistory retrieveVersionHistory(Context c, Item item) {
        VersioningService versioningService = new DSpace().getSingletonService(VersioningService.class);
        return versioningService.findVersionHistory(c, item.getID());
    }
View Full Code Here

        if(!StringUtils.isBlank(request.getParameter("page"))){
            searchEvent.setPage(Integer.parseInt(request.getParameter("page")));
        }

        //Fire our event
        new DSpace().getEventService().fireEvent(searchEvent);


        // Finished, allow to pass.
        return null;
    }
View Full Code Here

            System.exit(-1);
        }
        // Started from commandline, don't use the authentication system.
        context.turnOffAuthorisationSystem();

        DOIOrganiser organiser = new DOIOrganiser(context, new DSpace().getSingletonService(DOIIdentifierProvider.class));
       
        // run command line interface
        runCLI(context, organiser, args);
       
        try
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.