Package org.dspace.xoai.services.api.context

Examples of org.dspace.xoai.services.api.context.ContextServiceException


            @Override
            public ItemRepository getItemRepository() throws ContextServiceException {
                try {
                    return null;
                } catch (Exception e) {
                    throw new ContextServiceException(e);
                }
            }
        };
    }
View Full Code Here


        Object value = request.getAttribute(OAI_CONTEXT);
        if (value == null || !(value instanceof Context)) {
            try {
                request.setAttribute(OAI_CONTEXT, new Context());
            } catch (SQLException e) {
                throw new ContextServiceException(e);
            }
        }
        return (Context) request.getAttribute(OAI_CONTEXT);
    }
View Full Code Here

            String storage = configurationService.getProperty("oai", "storage");
            if (storage == null || !storage.trim().toLowerCase().equals("database")) {
                try {
                    itemRepository = new DSpaceItemSolrRepository(solrServerResolver.getServer(), collectionsService, handleResolver, solrQueryResolver);
                } catch (SolrServerException e) {
                    throw new ContextServiceException(e.getMessage(), e);
                }
            } else
                itemRepository = new DSpaceItemDatabaseRepository(configurationService, collectionsService, handleResolver, cacheService, databaseQueryResolver, contextService);
        }
View Full Code Here

TOP

Related Classes of org.dspace.xoai.services.api.context.ContextServiceException

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.