Class AuditDetails

java.lang.Object
com.illumon.iris.db.v2.permissions.rs.AuditDetails
All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable

public class AuditDetails extends Object implements com.fishlib.base.log.LogOutputAppendable
A simple pojo that holds the UserContext, client host and if client is an AclEditor An instance is created for each verified AclEditor and maintained until the request goes out of scope
  • Constructor Details

    • AuditDetails

      public AuditDetails(@Nullable UserContext userContext, boolean isAclEditor, @Nullable String clientHost)
      A pojo that holds the passed in information, that will later be used in audit logging UserContext can be used to identify the various permissions of the user when an api method needs it
      Parameters:
      userContext - the user context information from auth token
      isAclEditor - true if the client is an acl editor
      clientHost - the remote host of the client
  • Method Details

    • getUserContext

      public UserContext getUserContext()
    • isAclEditor

      public boolean isAclEditor()
    • getClientHost

      public String getClientHost()
    • toString

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

      public com.fishlib.base.log.LogOutput append(com.fishlib.base.log.LogOutput logOutput)
      Specified by:
      append in interface com.fishlib.base.log.LogOutputAppendable
    • isAuthenticatedUser

      public boolean isAuthenticatedUser(@Nullable String user)
      Verifies if the given user is same as authenticated user and effective user
      Parameters:
      user - The user to compare against authenticated and effective users
      Returns:
      true if given user is same as authenticated user and effective user
    • getNamespace

      public String getNamespace()
    • setNamespace

      public void setNamespace(String namespace)
    • getTableName

      public String getTableName()
    • setTableName

      public void setTableName(String tableName)