Class EventLogData

java.lang.Object
edu.ucsb.nceas.metacat.EventLogData

public class EventLogData extends Object
A data structure holding the information to be logged about an event. TODO: add a timestamp field for when the event occurred.
Author:
jones
  • Constructor Details

    • EventLogData

      public EventLogData(String ipAddress, String userAgent, String principal, String docid, String event)
      Construct an EventLogData object with event log information.
      Parameters:
      ipAddress - the internet protocol address for the event
      principal - the principal for the event (a username, etc)
      docid - the identifier of the document to which the event applies
      revision - the revision of the document to which the event applies
      event - the string code for the event
  • Method Details

    • getDocid

      public String getDocid()
      Get the current value of the document identifier.
      Returns:
      Returns the docid.
    • setDocid

      public void setDocid(String docid)
      Set the document identifier.
      Parameters:
      docid - The docid to set.
    • getEvent

      public String getEvent()
      Get the current value of the event.
      Returns:
      Returns the event.
    • setEvent

      public void setEvent(String event)
      Set the current value of the event.
      Parameters:
      event - The event to set.
    • getIpAddress

      public String getIpAddress()
      Get the current value of the internet protocol address.
      Returns:
      Returns the ipAddress.
    • setIpAddress

      public void setIpAddress(String ipAddress)
      Set the current value of the internet protocol address.
      Parameters:
      ipAddress - The ipAddress to set.
    • getPrincipal

      public String getPrincipal()
      Get the current value of the principal. This will be a username or other user identifier.
      Returns:
      Returns the principal.
    • setPrincipal

      public void setPrincipal(String principal)
      Set the current value of the principal. This will be a username or other user identifier.
      Parameters:
      principal - The principal to set.
    • getUserAgent

      public String getUserAgent()
    • setUserAgent

      public void setUserAgent(String userAgent)