Interface AuditManager
- All Superinterfaces:
- ExtensionPointManager
- All Known Implementing Classes:
- DelegatingAuditManager
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdds a new type of audit profile to the system.voidRemoves the threadlocal AuditContextReturns a populatedAuditContextif the current thread is attached to a valid http session, ie aClientReqSessionorIgnitionSession.Return the list of audit profiles known to this manager.Returns the audit profile specified bySystemPropertiesRecord.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.voidremoveAuditProfileType(String typeId) Remove an audit profile type with the given type ID.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.model.ExtensionPointManagergetExtensionPoint, getExtensionPoints
- 
Method Details- 
getProfileReturns the named audit profile, or null if none exists with that name- Throws:
- Exception
 
- 
getProfileForProjectReturns the audit profile for a given project. May be null
- 
getGatewayAuditProfileReturns the audit profile specified bySystemPropertiesRecord.GatewayAuditProfile, ornull.
- 
getAuditContextOptional<AuditContext> getAuditContext()Returns a populatedAuditContextif the current thread is attached to a valid http session, ie aClientReqSessionorIgnitionSession. Returns an empty optional if no contextual information could be found.
- 
setAuditContextSets an threadlocal for AuditContext that will be returned bygetAuditContext()on the calling thread untilclearAuditContext()is invoked.
- 
clearAuditContextvoid clearAuditContext()Removes the threadlocal AuditContext
- 
addAuditProfileTypeAdds a new type of audit profile to the system. Also makes sure that the persistent settings record indicated in the type is known by the internal schema manager- Parameters:
- type- The new type of audit profile to add.
- Throws:
- Exception- If automatic schema updating fails.
 
- 
removeAuditProfileTypeRemove an audit profile type with the given type ID.- Parameters:
- typeId- The typeId associated with the audit profile to remove.
- Throws:
- IllegalArgumentException- if the typeId to remove is associated with a built-in audit profile type or a type which does not exist
 
- 
getAvailableAuditProfilesReturn the list of audit profiles known to this manager.- Since:
- 8.0.5
 
 
-