Package org.dspace.utils

Examples of org.dspace.utils.DSpace


    @Override
    public void doJSONRequest(Context context, HttpServletRequest req,
            HttpServletResponse resp) throws AuthorizeException, IOException           
    {

        DSpace dspace = new DSpace();
        ApplicationService service = dspace.getServiceManager()
                .getServiceByName("applicationService",
                        ApplicationService.class);

        String researcher = req.getParameter("researcher");
View Full Code Here


  @Override
  public void doJSONRequest(Context context, HttpServletRequest req,
      HttpServletResponse respthrows AuthorizeException, IOException      
    {

    DSpace dspace = new DSpace();
    ApplicationService service = dspace.getServiceManager()
        .getServiceByName("applicationService",
            ApplicationService.class);

    String dept = req.getParameter("dept");
   
View Full Code Here

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

   
    public ApplicationService getApplicationService()
    {
        if (applicationService == null)
        {
            DSpace dspace = new DSpace();
            applicationService = dspace.getServiceManager().getServiceByName(
                    "applicationService", ApplicationService.class);
        }
        return applicationService;
    }
View Full Code Here

    public SearchService getSearchService()
    {
        if (searchService == null)
        {
            DSpace dspace = new DSpace();
            searchService = dspace.getServiceManager().getServiceByName(
                    SearchService.class.getName(), CrisSearchService.class);
        }
        return searchService;
    }
View Full Code Here

     *             If something goes wrong
     */
    public static void main(String[] args) throws Exception
    {

        DSpace dspace = new DSpace();

        SolrLogger indexer = dspace.getServiceManager().getServiceByName(
                SolrLogger.class.getName(), SolrLogger.class);

        CommandLineParser parser = new PosixParser();

        Options options = new Options();
View Full Code Here

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

                AWidgetFileCris widget = (AWidgetFileCris) tp.getRendering();
                // Fire usage event.
                if (widget.isUseInStatistics())
                {
                    request.setAttribute("sectionid", tp.getId());
                    new DSpace().getEventService().fireEvent(
                            new UsageEvent(UsageEvent.Action.VIEW, request,
                                    UIUtil.obtainContext(request),
                                    applicationService.getEntityByCrisId(id,
                                            getTargetObject())));
                }
View Full Code Here

                                .getBooleanProperty(SolrLogger.CFG_STAT_MODULE,"authorization.admin"));
       
       
        // Fire usage event.
        request.setAttribute("sectionid", StatsConfig.DETAILS_SECTION);
        new DSpace().getEventService().fireEvent(
                    new UsageEvent(
                            UsageEvent.Action.VIEW,
                            request,
                            context,
                            researcher));
View Full Code Here

      
        if (found)
        {
            // Fire usage event.
            request.setAttribute("sectionid", StatsConfig.COLLABORATION_NETWORK_SECTION);
            new DSpace().getEventService().fireEvent(
                        new UsageEvent(
                                UsageEvent.Action.VIEW,
                                request,
                                context,
                                researcher));       
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.