Package edu.ucsb.nceas.metacat
Class EventLogData
java.lang.Object
edu.ucsb.nceas.metacat.EventLogData
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDocid()
Get the current value of the document identifier.getEvent()
Get the current value of the event.Get the current value of the internet protocol address.Get the current value of the principal.void
Set the document identifier.void
Set the current value of the event.void
setIpAddress
(String ipAddress) Set the current value of the internet protocol address.void
setPrincipal
(String principal) Set the current value of the principal.void
setUserAgent
(String userAgent)
-
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 eventprincipal
- the principal for the event (a username, etc)docid
- the identifier of the document to which the event appliesrevision
- the revision of the document to which the event appliesevent
- the string code for the event
-
-
Method Details
-
getDocid
Get the current value of the document identifier.- Returns:
- Returns the docid.
-
setDocid
Set the document identifier.- Parameters:
docid
- The docid to set.
-
getEvent
Get the current value of the event.- Returns:
- Returns the event.
-
setEvent
Set the current value of the event.- Parameters:
event
- The event to set.
-
getIpAddress
Get the current value of the internet protocol address.- Returns:
- Returns the ipAddress.
-
setIpAddress
Set the current value of the internet protocol address.- Parameters:
ipAddress
- The ipAddress to set.
-
getPrincipal
Get the current value of the principal. This will be a username or other user identifier.- Returns:
- Returns the principal.
-
setPrincipal
Set the current value of the principal. This will be a username or other user identifier.- Parameters:
principal
- The principal to set.
-
getUserAgent
-
setUserAgent
-