Examples of UsageEvent


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

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,
                        dyn));
       
View Full Code Here

Examples of org.dspace.usage.UsageEvent

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

Examples of org.dspace.usage.UsageEvent

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

Examples of org.dspace.usage.UsageEvent

        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

Examples of org.dspace.usage.UsageEvent

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

Examples of org.dspace.usage.UsageEvent

        {
            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

Examples of org.dspace.usage.UsageEvent

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

Examples of org.dspace.usage.UsageEvent

    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

Examples of org.dspace.usage.UsageEvent

            return;

        try {
         
      new DSpace().getEventService().fireEvent(
          new UsageEvent(
              UsageEvent.Action.VIEW,
              (HttpServletRequest)request,
              ContextUtil.obtainContext((HttpServletRequest)request),
              dso));
     
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.