Class UserAuditQuery

java.lang.Object
edu.internet2.middleware.grouper.audit.UserAuditQuery

public class UserAuditQuery extends Object
use method chaining and hibernate criteria to query user audits
  • Constructor Details

    • UserAuditQuery

      public UserAuditQuery()
  • Method Details

    • main

      public static void main(String[] args)
    • loggedInMember

      public UserAuditQuery loggedInMember(Member loggedInMember)
      Parameters:
      loggedInMember -
      Returns:
      this for chaining
    • actAsMember

      public UserAuditQuery actAsMember(Member actAsMember)
      Parameters:
      actAsInMember -
      Returns:
      this for chaining
    • setExtraCriterion

      public UserAuditQuery setExtraCriterion(org.hibernate.criterion.Criterion extraCriterion1)
      extra criteria
      Parameters:
      extraCriterion1 -
      Returns:
      this for chaining
    • setFromDate

      public UserAuditQuery setFromDate(Date fromDate1)
      query for records after this date
      Parameters:
      fromDate1 -
      Returns:
      this for chaining
    • setToDate

      public UserAuditQuery setToDate(Date toDate1)
      query for records before this date
      Parameters:
      toDate1 -
      Returns:
      this for chaining
    • setOnDate

      public UserAuditQuery setOnDate(Date onDate)
      query for records on this date
      Parameters:
      onDate -
      Returns:
      this for chaining
    • getQueryOptions

      public QueryOptions getQueryOptions()
      query options
      Returns:
      query options
    • setQueryOptions

      public UserAuditQuery setQueryOptions(QueryOptions queryOptions)
      query options
      Parameters:
      queryOptions -
      Returns:
      this for chaining
    • execute

      public List<AuditEntry> execute()
      Returns:
      the results
    • executeReport

      public String executeReport()
      return one string report (e.g. for gsh)
      Returns:
      the report
    • executeReportExtended

      public String executeReportExtended()
      return one string report (e.g. for gsh)
      Returns:
      the report
    • setAuditTypeCategoryList

      public UserAuditQuery setAuditTypeCategoryList(List<String> auditTypeCategoryList)
      query by audit type category
      Parameters:
      auditTypeCategoryList -
      Returns:
      this for chaining
    • setAuditTypeActionList

      public UserAuditQuery setAuditTypeActionList(List<AuditTypeIdentifier> auditTypeActionList)
      query by audit type action
      Parameters:
      auditTypeActionList -
      Returns:
      this for chaining
    • addAuditTypeCategory

      public UserAuditQuery addAuditTypeCategory(String auditTypeCategory)
      query by audit type category, add a criteria to list
      Parameters:
      auditTypeCategory -
      Returns:
      this for chaining
    • addAuditTypeAction

      public UserAuditQuery addAuditTypeAction(String auditTypeCategory, String auditTypeAction)
      query by audit type action, add a criteria to list
      Parameters:
      auditTypeCategory -
      auditTypeAction -
      Returns:
      this for chaining
    • addAuditTypeFieldValue

      public UserAuditQuery addAuditTypeFieldValue(String auditTypeField, Object auditTypeValue)
      query by audit type action, add a criteria to list
      Parameters:
      auditTypeField -
      auditTypeValue -
      Returns:
      this for chaining