Class DelegatingAuditManager
java.lang.Object
com.inductiveautomation.ignition.gateway.audit.DelegatingAuditManager
- All Implemented Interfaces:
AuditManager,ExtensionPointManager
-
Constructor Summary
Constructors -
Method Summary
Modifier 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.getExtensionPoint(String typeId) List<? extends ExtensionPointType>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 byAuditManager.getAuditContext()on the calling thread untilAuditManager.clearAuditContext()is invoked.
-
Constructor Details
-
DelegatingAuditManager
-
-
Method Details
-
getProfile
Description copied from interface:AuditManagerReturns the named audit profile, or null if none exists with that name- Specified by:
getProfilein interfaceAuditManager- Throws:
Exception
-
getProfileForProject
Description copied from interface:AuditManagerReturns the audit profile for a given project. May be null- Specified by:
getProfileForProjectin interfaceAuditManager
-
getGatewayAuditProfile
Description copied from interface:AuditManagerReturns the audit profile specified bySystemPropertiesRecord.GatewayAuditProfile, ornull.- Specified by:
getGatewayAuditProfilein interfaceAuditManager
-
getAuditContext
Description copied from interface:AuditManagerReturns 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.- Specified by:
getAuditContextin interfaceAuditManager
-
setAuditContext
Description copied from interface:AuditManagerSets an threadlocal for AuditContext that will be returned byAuditManager.getAuditContext()on the calling thread untilAuditManager.clearAuditContext()is invoked.- Specified by:
setAuditContextin interfaceAuditManager
-
clearAuditContext
public void clearAuditContext()Description copied from interface:AuditManagerRemoves the threadlocal AuditContext- Specified by:
clearAuditContextin interfaceAuditManager
-
addAuditProfileType
Description copied from interface:AuditManagerAdds 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- Specified by:
addAuditProfileTypein interfaceAuditManager- Parameters:
type- The new type of audit profile to add.- Throws:
Exception- If automatic schema updating fails.
-
removeAuditProfileType
Description copied from interface:AuditManagerRemove an audit profile type with the given type ID.- Specified by:
removeAuditProfileTypein interfaceAuditManager- Parameters:
typeId- The typeId associated with the audit profile to remove.
-
getAvailableAuditProfiles
Description copied from interface:AuditManagerReturn the list of audit profiles known to this manager.- Specified by:
getAvailableAuditProfilesin interfaceAuditManager
-
getExtensionPoint
- Specified by:
getExtensionPointin interfaceExtensionPointManager- Returns:
- the
ExtensionPointTypeidentified bytypeId, ornullif none exists for that name. - See Also:
-
getExtensionPoints
- Specified by:
getExtensionPointsin interfaceExtensionPointManager- Returns:
- all
ExtensionPointTypes managed by thisExtensionPointManager.
-