Package org.dspace.app.cris.integration.statistics

Examples of org.dspace.app.cris.integration.statistics.CrisStatComponentsService


                statBean.setType(object.getType());
                               
                selectedObject = new HashMap<String, Map<String,ObjectCount[]>>();
               
                CrisStatComponentsService statsComponentsService = null;
                switch (type)
                {
                case 9:
                    statsComponentsService = researcher.getRPStatsComponents();
                    break;
                case 10:
                    statsComponentsService = researcher.getPJStatsComponents();
                    break;
                case 11:
                    statsComponentsService = researcher.getOUStatsComponents();
                    break;
                default:
                    break;
                }
                selectedObject.put(AStatComponentService._SELECTED_OBJECT, statsComponentsService.getSelectedObjectComponent().getStatsViewComponent().queryFacetDate(statsLogger, object, dateType, dateStart, dateEnd, gap));
                selectedObject.get(AStatComponentService._SELECTED_OBJECT).putAll(statsComponentsService.getSelectedObjectComponent().getStatsDownloadComponent().queryFacetDate(statsLogger, object, dateType, dateStart, dateEnd, gap));               
                for(String key : statsComponentsService.getComponents().keySet()) {
                    IStatsComponent dual = statsComponentsService.getComponents().get(key).getStatsViewComponent();
                    topObject.put(key, dual.queryFacetDate(statsLogger, object, dateType, dateStart, dateEnd, gap));
                    dual = statsComponentsService.getComponents().get(key).getStatsDownloadComponent();
                    topObject.get(key).putAll(dual.queryFacetDate(statsLogger, object, dateType, dateStart, dateEnd, gap));
                }
            }
            else
            {
View Full Code Here


                "org.dspace.app.cris.service.RelationPreferenceService", RelationPreferenceService.class);
    }
   
   
    public CrisStatComponentsService getRPStatsComponents() {
        CrisStatComponentsService compService = dspace.getServiceManager().getServiceByName("rpStatsComponent", CrisStatComponentsService.class);
        if (compService == null)
        {
            return null;
        }
        return compService;       
View Full Code Here

        }
        return compService;
    }
   
    public CrisStatComponentsService getPJStatsComponents() {
        CrisStatComponentsService compService = dspace.getServiceManager().getServiceByName("pjStatsComponent", CrisStatComponentsService.class);
        if (compService == null)
        {
            return null;
        }
        return compService;       
View Full Code Here

        }
        return compService;       
    }
   
    public CrisStatComponentsService getOUStatsComponents() {
        CrisStatComponentsService compService = dspace.getServiceManager().getServiceByName("ouStatsComponent", CrisStatComponentsService.class);
        if (compService == null)
        {
            return null;
        }
        return compService;       
View Full Code Here

        }
        return compService;       
    }

    public CrisStatComponentsService getDOStatsComponents() {
        CrisStatComponentsService compService = dspace.getServiceManager().getServiceByName("doStatsComponent", CrisStatComponentsService.class);
        if (compService == null)
        {
            return null;
        }
        return compService;       
View Full Code Here

TOP

Related Classes of org.dspace.app.cris.integration.statistics.CrisStatComponentsService

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.