Class EventContext

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class EventContext
    extends java.lang.Object
    implements java.lang.Cloneable
    Event context.
    Since:
    17.0.0
    Version:
    $Revision$ $Date$
    • Constructor Summary

      Constructors 
      Constructor Description
      EventContext​(java.lang.String monitorUserId, java.util.Map<java.lang.String,​java.lang.Object> eventAttributes, java.util.Date date)
      Creates a new instance.
      EventContext​(IMonitorEvent event, java.util.Deque<IMonitorValuesProvider> monitoringValues, Document document)
      Creates a new instance.
    • Constructor Detail

      • EventContext

        public EventContext​(java.lang.String monitorUserId,
                            java.util.Map<java.lang.String,​java.lang.Object> eventAttributes,
                            java.util.Date date)
        Creates a new instance. Used only for testing.
        This constructor is meant to testing purpose only.
        Parameters:
        monitorUserId - the monitor user id.
        eventAttributes - the event data.
        Since:
        17.0.0
    • Method Detail

      • getDate

        public java.util.Date getDate()
                               throws PortalException
        Returns the event date.
        Returns:
        the event date.
        Throws:
        PortalException
        Since:
        17.0.0
      • getEventAttributes

        public java.util.Map<java.lang.String,​java.lang.Object> getEventAttributes()
        Returns the eventAttributes.
        Returns:
        the eventAttributes
        Since:
        17.0.0
      • clone

        public EventContext clone()
        Overrides:
        clone in class java.lang.Object