Class EventData

java.lang.Object
com.jalios.jcms.analytics.EventData
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
UsageEventData

public class EventData extends Object implements Serializable
See Also:
  • Constructor Details

  • Method Details

    • setData

      public void setData(Data data)
    • getData

      public Data getData()
    • getType

      public String getType()
      Returns:
      the type
    • setType

      public void setType(String type)
      Parameters:
      type - the type to set
    • getActor

      public Member getActor()
      Returns:
      the actor
    • setActor

      public void setActor(Member actor)
      Parameters:
      actor - the actor to set
    • getAction

      public String getAction()
      Returns:
      the action
    • setAction

      public void setAction(String action)
      Parameters:
      action - the action to set
    • getObjectId

      public String getObjectId()
      Returns:
      the objectId
    • setObjectId

      public void setObjectId(String objectId)
      Parameters:
      objectId - the objectId to set
    • getObjectClass

      public String getObjectClass()
      Returns:
      the objectClass
    • setObjectClass

      public void setObjectClass(String objectClass)
      Parameters:
      objectClass - the objectClass to set
    • getContext

      public Map<String,String> getContext()
      Returns:
      the context
    • setContext

      public void setContext(Map<String,String> context)
      Parameters:
      context - the context to set
    • getDate

      public long getDate()
      Returns:
      the date
    • setDate

      public void setDate(long date)
      Parameters:
      date - the date to set
    • getStartDate

      public long getStartDate()
      Returns:
      the startDate
    • setStartDate

      public void setStartDate(long startDate)
      Parameters:
      startDate - the startDate to set
    • getEndDate

      public long getEndDate()
      Returns:
      the endDate
    • setEndDate

      public void setEndDate(long endDate)
      Parameters:
      endDate - the endDate to set
    • getUrid

      public String getUrid()
      Returns:
      the urid
    • setUrid

      public void setUrid(String urid)
      Parameters:
      urid - the urid to set
    • addContext

      public void addContext(Map<String,String> tmpContext)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isType

      public boolean isType(String type)
      Indicates if this event has the provided type
      Parameters:
      type - the type to check
      Returns:
      true if the event type is the same than the parameter
    • isCore

      public boolean isCore()
      Indicates if this event has the type AnalyticsManager.CORE
      Returns:
      true if the event type is AnalyticsManager.CORE
    • isAccess

      public boolean isAccess()
      Indicates if this event has the type AnalyticsManager.ACCESS
      Returns:
      true if the event type is AnalyticsManager.ACCESS
    • isUsage

      public boolean isUsage()
      Indicates if this event has the type AnalyticsManager.USAGE
      Returns:
      true if the event type is AnalyticsManager.USAGE
    • isOpenApi

      public boolean isOpenApi()
      Indicates if this event has the type AnalyticsManager.OPENAPI
      Returns:
      true if the event type is AnalyticsManager.OPENAPI
    • isCreate

      public boolean isCreate()
      returns true if the eventData is a creation event (op is Create and DeepCopy), false otherwise
      Returns:
      true if the eventData is a creation event (op is Create and DeepCopy), false otherwise
    • isDelete

      public boolean isDelete()
      returns true if the eventData is a delete event (op is Delete and DeepDelete), false otherwise
      Returns:
      true if the eventData is a delete event (op is Delete and DeepDelete), false otherwise
    • isUpdate

      public boolean isUpdate()
      returns true if the eventData is a update event (op is Update and Merge), false otherwise
      Returns:
      true if the eventData is a update event (op is Update and Merge), false otherwise
    • isInstanceOf

      public boolean isInstanceOf(Class clazz)
      returns true if the EventData is about the provided class
      Parameters:
      clazz - the Class to check
      Returns:
      true if the EventData is about the provided class
    • getRealObjectClass

      public Class getRealObjectClass()
      Compute real class from object class string
      Returns:
      the computed class, or null if objectClass does not exist