Package org.dspace.usage

Examples of org.dspace.usage.UsageEvent


            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


            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

                // 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

       
       
        // 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

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

        {
            log.info(LogManager.getHeader(context, "view_html", "handle="
                    + handle + ",bitstream_id=" + bitstream.getID()));
           
            new DSpace().getEventService().fireEvent(
                new UsageEvent(
                    UsageEvent.Action.VIEW,
                    request,
                    context,
                    bitstream));
           
View Full Code Here

            }
           
            // Log that the bitstream has been viewed, this is none-cached and the complexity
            // of adding it to the sitemap for every possible bitstre uri is not very tractable
            new DSpace().getEventService().fireEvent(
                                new UsageEvent(
                                                UsageEvent.Action.VIEW,
                                                ObjectModelHelper.getRequest(objectModel),
                                                ContextUtil.obtainContext(ObjectModelHelper.getRequest(objectModel)),
                                                bitstream));
View Full Code Here

    if(event instanceof UsageEvent)
    {
      try{
     
          UsageEvent ue = (UsageEvent)event;
     
          EPerson currentUser = ue.getContext() == null ? null : ue.getContext().getCurrentUser();

                SolrLogger.post(ue.getObject(), ue.getRequest(), currentUser);

      }
      catch(Exception e)
      {
        log.error(e.getMessage());
View Full Code Here

            return;

        try {
         
      new DSpace().getEventService().fireEvent(
          new UsageEvent(
              UsageEvent.Action.VIEW,
              (HttpServletRequest)request,
              ContextUtil.obtainContext((HttpServletRequest)request),
              dso));
     
View Full Code Here

TOP

Related Classes of org.dspace.usage.UsageEvent

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.