Interface AuditManager
- 
- All Superinterfaces:
 ExtensionPointManager
- All Known Implementing Classes:
 DelegatingAuditManager
public interface AuditManager extends ExtensionPointManager
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddAuditProfileType(AuditProfileType type)` Adds a new type of audit profile to the system.voidclearAuditContext()Removes the threadlocal AuditContextjava.util.Optional<AuditContext>getAuditContext()Returns a populatedAuditContextif the current thread is attached to a valid http session, ie aClientReqSessionorIgnitionSession.java.util.List<java.lang.String>getAvailableAuditProfiles()Return the list of audit profiles known to this manager.AuditProfilegetGatewayAuditProfile()Returns the audit profile specified bySystemPropertiesRecord.GatewayAuditProfile, ornull.AuditProfilegetProfile(java.lang.String name)Returns the named audit profile, or null if none exists with that nameAuditProfilegetProfileForProject(java.lang.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.model.ExtensionPointManager
getExtensionPoint, getExtensionPoints 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getProfile
@Nullable AuditProfile getProfile(java.lang.String name) throws java.lang.Exception
Returns the named audit profile, or null if none exists with that name- Throws:
 java.lang.Exception
 
- 
getProfileForProject
@Nullable AuditProfile getProfileForProject(java.lang.String projectName)
Returns the audit profile for a given project. May be null 
- 
getGatewayAuditProfile
@Nullable AuditProfile getGatewayAuditProfile()
Returns the audit profile specified bySystemPropertiesRecord.GatewayAuditProfile, ornull. 
- 
getAuditContext
java.util.Optional<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. 
- 
setAuditContext
void setAuditContext(AuditContext auditContext)
Sets an threadlocal for AuditContext that will be returned bygetAuditContext()on the calling thread untilclearAuditContext()is invoked. 
- 
clearAuditContext
void clearAuditContext()
Removes the threadlocal AuditContext 
- 
addAuditProfileType
void addAuditProfileType(AuditProfileType type) throws java.lang.Exception
` Adds 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:
 java.lang.Exception- If automatic schema updating fails.
 
- 
getAvailableAuditProfiles
java.util.List<java.lang.String> getAvailableAuditProfiles()
Return the list of audit profiles known to this manager.- Since:
 - 8.0.5
 
 
 - 
 
 -