Class DelegatingAuditManager
java.lang.Object
com.inductiveautomation.ignition.gateway.audit.DelegatingAuditManager
- All Implemented Interfaces:
AuditManager
,ExtensionPointManager<AuditProfileType<?>>
-
Constructor Summary
Constructors -
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 byAuditManager.getAuditContext()
on the calling thread untilAuditManager.clearAuditContext()
is invoked.
-
Constructor Details
-
DelegatingAuditManager
-
-
Method Details
-
getProfile
Description copied from interface:AuditManager
Returns the named audit profile, or null if none exists with that name- Specified by:
getProfile
in interfaceAuditManager
- Throws:
Exception
-
getProfileForProject
Description copied from interface:AuditManager
Returns the audit profile for a given project. May be null- Specified by:
getProfileForProject
in interfaceAuditManager
-
getGatewayAuditProfile
Description copied from interface:AuditManager
Returns the audit profile specified byGatewaySystemProperties.GatewayAuditProfile
, ornull
.- Specified by:
getGatewayAuditProfile
in interfaceAuditManager
-
getAuditContext
Description copied from interface:AuditManager
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.- Specified by:
getAuditContext
in interfaceAuditManager
-
setAuditContext
Description copied from interface:AuditManager
Sets an threadlocal for AuditContext that will be returned byAuditManager.getAuditContext()
on the calling thread untilAuditManager.clearAuditContext()
is invoked.- Specified by:
setAuditContext
in interfaceAuditManager
-
clearAuditContext
public void clearAuditContext()Description copied from interface:AuditManager
Removes the threadlocal AuditContext- Specified by:
clearAuditContext
in interfaceAuditManager
-
getAvailableAuditProfiles
Description copied from interface:AuditManager
Return the list of audit profiles known to this manager.- Specified by:
getAvailableAuditProfiles
in interfaceAuditManager
-
getExtensionPointResourceType
- Specified by:
getExtensionPointResourceType
in interfaceExtensionPointManager<AuditProfileType<?>>
-
getExtensionPointCollection
- Specified by:
getExtensionPointCollection
in interfaceExtensionPointManager<AuditProfileType<?>>
-