Interface AuditManager
- All Superinterfaces:
ExtensionPointManager<AuditProfileType<?>>
- All Known Implementing Classes:
DelegatingAuditManager
-
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves the threadlocal AuditContextReturns a populatedAuditContextif 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.voidsetAuditContext(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 populatedAuditContextif 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
-