Class AuditDetails
java.lang.Object
com.illumon.iris.db.v2.permissions.rs.AuditDetails
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionAuditDetails
(io.deephaven.enterprise.auth.UserContext userContext, boolean isAclEditor, String clientHost) A pojo that holds the passed in information, that will later be used in audit loggingUserContext
can be used to identify the various permissions of the user when an api method needs it -
Method Summary
Modifier and TypeMethodDescriptioncom.fishlib.base.log.LogOutput
append
(com.fishlib.base.log.LogOutput logOutput) io.deephaven.enterprise.auth.UserContext
boolean
boolean
isAuthenticatedUser
(String user) Verifies if the given user is same as authenticated user and effective uservoid
setNamespace
(String namespace) void
setTableName
(String tableName) toString()
-
Constructor Details
-
AuditDetails
public AuditDetails(@Nullable io.deephaven.enterprise.auth.UserContext userContext, boolean isAclEditor, @Nullable String clientHost) A pojo that holds the passed in information, that will later be used in audit loggingUserContext
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 tokenisAclEditor
- true if the client is an acl editorclientHost
- the remote host of the client
-
-
Method Details
-
getUserContext
public io.deephaven.enterprise.auth.UserContext getUserContext() -
isAclEditor
public boolean isAclEditor() -
getClientHost
-
toString
-
append
public com.fishlib.base.log.LogOutput append(com.fishlib.base.log.LogOutput logOutput) - Specified by:
append
in interfacecom.fishlib.base.log.LogOutputAppendable
-
isAuthenticatedUser
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
-
setNamespace
-
getTableName
-
setTableName
-