Class AuditQuery

java.lang.Object
com.sas.lsaf.security.audit.AuditQuery
All Implemented Interfaces:
Serializable

public class AuditQuery extends Object implements Serializable
Audit entry query contains information on how to query the audit trail information. Specifying a source identifier queries the audit trail for a specific object. If no source identifier is specified, the global audit trail is queried.
Since:
1.5
See Also:
  • Constructor Details

    • AuditQuery

      public AuditQuery()
      The default constructor.
  • Method Details

    • getUserId

      public String getUserId()
      Gets the user identifier of the user whose actions to query.
      Returns:
      The user identifier of the user whose actions to query.
    • setUserId

      public void setUserId(String userId)
      Sets the user identifier of the user whose actions to query.
      Parameters:
      userId - the user identifier of the user whose actions to query.
    • getActions

      public List<String> getActions()
      Gets the list of actions to query.
      Returns:
      The list of actions to query.
    • setActions

      public void setActions(List<String> actions)
      Sets the list of actions to query.
      Parameters:
      actions - The list of actions to query.
    • getSourceTypeIds

      public List<String> getSourceTypeIds()
      Gets the list of object types to query.
      Returns:
      The list of object types to query.
    • setSourceTypeIds

      public void setSourceTypeIds(List<String> sourceTypeIds)
      Sets the list of object types to query.
      Parameters:
      sourceTypeIds - the list of object types to query.
    • getSourceName

      public String getSourceName()
      Gets the name of the source object to query.
      Returns:
      The name of the source object to query.
    • setSourceName

      public void setSourceName(String sourceName)
      Sets the name of the source object to query.
      Parameters:
      sourceName - the name of the source object to query.
    • getSourceLocation

      public String getSourceLocation()
      Gets the location of the source object to query.
      Returns:
      The location of the source object to query.
    • setSourceLocation

      public void setSourceLocation(String sourceLocation)
      Sets the location of the source object to query.
      Parameters:
      sourceLocation - the location of the source object to query.
    • getFromDate

      public Date getFromDate()
      Gets the start date of the date range to query.
      Returns:
      The start date of the date range to query.
    • setFromDate

      public void setFromDate(Date fromDate)
      Sets the start date of the date range to query.
      Parameters:
      fromDate - the start date of the date range to query.
    • getToDate

      public Date getToDate()
      Gets the end date of the date range to query.
      Returns:
      The end date of the date range to query.
    • setToDate

      public void setToDate(Date toDate)
      Sets the end date of the date range to query.
      Parameters:
      toDate - the end date of the date range to query.
    • getSourceId

      public String getSourceId()
      Gets the identifier of the source object to query.
      Returns:
      The identifier of the source object to query.
    • setSourceId

      public void setSourceId(String sourceId)
      Sets the identifier of the source object to query.
      Parameters:
      sourceId - the identifier of the source object to query.
    • getMode

      public AuditEntry.Mode getMode()
      Gets the audit mode to query by.
      Returns:
      The audit mode to query by.
    • setMode

      public void setMode(AuditEntry.Mode mode)
      Sets the audit mode to query by.
      Parameters:
      mode - the audit mode to query by.
    • userId

      public AuditQuery userId(String userId)
      Sets the user identifier of the user whose actions to query.
      Parameters:
      userId - the user identifier of the user whose actions to query.
      Returns:
      The audit query for further processing.
    • actions

      public AuditQuery actions(List<String> actions)
      Sets the list of actions to query.
      Parameters:
      actions - the list of actions to query.
      Returns:
      The audit query for further processing.
    • addAction

      public AuditQuery addAction(String action)
      Adds an action to the list of actions to query.
      Parameters:
      action - an action to add.
      Returns:
      The audit query for further processing.
    • sourceTypeIds

      public AuditQuery sourceTypeIds(List<String> sourceTypeIds)
      Sets the list of object types to query.
      Parameters:
      sourceTypeIds - the list of object types to query.
      Returns:
      The audit query for further processing.
    • addSourceTypeId

      public AuditQuery addSourceTypeId(String sourceTypeId)
      Adds a source type to the list of types to query.
      Parameters:
      sourceTypeId - a source type to add.
      Returns:
      The audit query for further processing.
    • sourceName

      public AuditQuery sourceName(String sourceName)
      Sets the name of the source object to query.
      Parameters:
      sourceName - the name of the source object to query.
      Returns:
      The audit query for further processing.
    • sourceLocation

      public AuditQuery sourceLocation(String sourceLocation)
      Sets the location of the source object to query.
      Parameters:
      sourceLocation - the location of the source object to query.
      Returns:
      The audit query for further processing.
    • fromDate

      public AuditQuery fromDate(Date fromDate)
      Sets the start date of the date range to query.
      Parameters:
      fromDate - the start date of the date range to query.
      Returns:
      The audit query for further processing.
    • toDate

      public AuditQuery toDate(Date toDate)
      Sets the end date of the date range to query.
      Parameters:
      toDate - the end date of the date range to query.
      Returns:
      The audit query for further processing.
    • sourceId

      public AuditQuery sourceId(String sourceId)
      Sets the identifier of the source object to query.
      Parameters:
      sourceId - the identifier of the source object to query.
      Returns:
      The audit query for further processing.
    • mode

      public AuditQuery mode(AuditEntry.Mode mode)
      Sets the audit mode to query by.
      Parameters:
      mode - the audit mode to query by.
      Returns:
      The audit query for further processing.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object