Interface AuditManager
- All Superinterfaces:
ExtensionPointManager<AuditProfileType<?>>
- All Known Implementing Classes:
DelegatingAuditManager
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Removes the threadlocal AuditContextReturns a populatedAuditContext
if the current thread is attached to a valid http session, ie aClientReqSession
(Designer, Vision) orWebUiSession
(web ui since 8.3.0).Return the list of audit profiles known to this manager.Returns the audit profile specified byGatewaySystemProperties.GatewayAuditProfile
, ornull
.getProfile
(String name) Returns the named audit profile, or null if none exists with that namegetProfileForProject
(String projectName) Returns the audit profile for a given project.void
setAuditContext
(AuditContext auditContext) Sets an threadlocal for AuditContext that will be returned bygetAuditContext()
on the calling thread untilclearAuditContext()
is invoked.Methods inherited from interface com.inductiveautomation.ignition.gateway.config.ExtensionPointManager
getExtensionPointCollection, getExtensionPointResourceType
-
Method Details
-
getProfile
Returns the named audit profile, or null if none exists with that name- Throws:
Exception
-
getProfileForProject
Returns the audit profile for a given project. May be null -
getGatewayAuditProfile
Returns the audit profile specified byGatewaySystemProperties.GatewayAuditProfile
, ornull
. -
getAuditContext
Optional<AuditContext> getAuditContext()Returns a populatedAuditContext
if the current thread is attached to a valid http session, ie aClientReqSession
(Designer, Vision) orWebUiSession
(web ui since 8.3.0). Returns an empty optional if no contextual information could be found. -
setAuditContext
Sets an threadlocal for AuditContext that will be returned bygetAuditContext()
on the calling thread untilclearAuditContext()
is invoked. -
clearAuditContext
void clearAuditContext()Removes the threadlocal AuditContext -
getAvailableAuditProfiles
Return the list of audit profiles known to this manager.- Since:
- 8.0.5
-