Package org.dspace.utils

Examples of org.dspace.utils.DSpace


            model.put("subscribed", subscribed);
          
        }
       
        request.setAttribute("sectionid", StatsConfig.DETAILS_SECTION);
        new DSpace().getEventService().fireEvent(
                new UsageEvent(
                        UsageEvent.Action.VIEW,
                        request,
                        context,
                        grant));
View Full Code Here


     */
    private void init()
    {
        if (applicationService == null && searchService == null)
        {
            DSpace dspace = new DSpace();
            applicationService = dspace.getServiceManager().getServiceByName(
                    "applicationService", ApplicationService.class);
            searchService = dspace.getServiceManager().getServiceByName(
                    "org.dspace.discovery.SearchService", SearchService.class);

            configurationService = dspace.getServiceManager().getServiceByName(
                    "org.dspace.services.ConfigurationService",
                    ConfigurationService.class);
        }
    }
View Full Code Here

  public static void main(String[] args) throws ParseException, SQLException {
    // TODO move logic in ImportExportUtils
    log.info("#### START IMPORT: -----" + new Date() + " ----- ####");
    Context dspaceContext = new Context();
    dspaceContext.setIgnoreAuthorization(true);
    DSpace dspace = new DSpace();
    ApplicationService applicationService = dspace.getServiceManager()
        .getServiceByName("applicationService",
            ApplicationService.class);
    CommandLineParser parser = new PosixParser();

    String xmlFilePath = null;
View Full Code Here

                                + item.getPublicPath()))
                        {
                            continue;
                        }

                        boolean ignoreAuthority = new DSpace()
                                .getConfigurationService()
                                .getPropertyAsType(
                                        "discovery.browse.authority.ignore."
                                                + bi.getName(),
                                        new DSpace()
                                                .getConfigurationService()
                                                .getPropertyAsType(
                                                        "discovery.browse.authority.ignore",
                                                        new Boolean(false)),
                                        true);
View Full Code Here

  public static void main(String[] args) throws ParseException, SQLException {
    // TODO move logic in ImportExportUtils
    log.info("#### START IMPORT: -----" + new Date() + " ----- ####");
    Context dspaceContext = new Context();
    dspaceContext.setIgnoreAuthorization(true);
    DSpace dspace = new DSpace();
        ApplicationService applicationService = dspace.getServiceManager().getServiceByName(
                "applicationService", ApplicationService.class);
       
    String excelFilePath = null;

    CommandLineParser parser = new PosixParser();
View Full Code Here

     */
    private void init()
    {
        if (applicationService == null && searchService == null)
        {
            DSpace dspace = new DSpace();
            applicationService = dspace.getServiceManager().getServiceByName(
                    "applicationService", ApplicationService.class);
            searchService = dspace.getServiceManager().getServiceByName(
                    "org.dspace.discovery.SearchService", SearchService.class);

            configurationService = dspace.getServiceManager().getServiceByName(
                    "org.dspace.services.ConfigurationService",
                    ConfigurationService.class);

            relationPreferenceService = dspace
                    .getServiceManager()
                    .getServiceByName(
                            "org.dspace.app.cris.service.RelationPreferenceService",
                            RelationPreferenceService.class);
        }
View Full Code Here

    private static final Logger log = Logger
            .getLogger(CrisItemEnhancerUtility.class);

    public static List<String> getAllCrisMetadata()
    {
        DSpace dspace = new DSpace();
        List<String> result = new ArrayList<String>();
        List<CrisItemEnhancer> enhancers = dspace.getServiceManager()
                .getServicesByType(CrisItemEnhancer.class);
        if (enhancers != null)
        {
            for (CrisItemEnhancer enhancer : enhancers)
            {
View Full Code Here

        }

        List<String[]> result = new ArrayList<String[]>();
        if (validAuthorities.size() > 0)
        {
            DSpace dspace = new DSpace();
            String path = enh.getQualifiers2path().get(qualifier);
            ApplicationService as = dspace.getServiceManager()
                    .getServiceByName("applicationService",
                            ApplicationService.class);
            for (String authKey : validAuthorities)
            {
View Full Code Here

        return result;
    }

    private static List<CrisItemEnhancer> getEnhancers(String alias)
    {
        DSpace dspace = new DSpace();
        List<CrisItemEnhancer> enhancers = dspace.getServiceManager()
                .getServicesByType(CrisItemEnhancer.class);
        if (Item.ANY.equals(alias))
        {
            return enhancers;
        }
View Full Code Here

    {

        log.info("#### START Script index collaboration network: -----"
                + new Date() + " ----- ####");

        DSpace dspace = new DSpace();
        VisualizationGraphSolrService service = dspace.getServiceManager()
                .getServiceByName("visualNetworkSolrService",
                        VisualizationGraphSolrService.class);

        CommandLineParser parser = new PosixParser();
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.