Class DelegatingAuditManager
- java.lang.Object
- 
- com.inductiveautomation.ignition.gateway.audit.DelegatingAuditManager
 
- 
- All Implemented Interfaces:
- AuditManager,- ExtensionPointManager
 
 public class DelegatingAuditManager extends java.lang.Object implements AuditManager 
- 
- 
Constructor SummaryConstructors Constructor Description DelegatingAuditManager(AuditManager delegate)
 - 
Method SummaryAll Methods Instance Methods Concrete 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.ExtensionPointTypegetExtensionPoint(java.lang.String typeId)java.util.List<? extends ExtensionPointType>getExtensionPoints()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 byAuditManager.getAuditContext()on the calling thread untilAuditManager.clearAuditContext()is invoked.
 
- 
- 
- 
Constructor Detail- 
DelegatingAuditManagerpublic DelegatingAuditManager(AuditManager delegate) 
 
- 
 - 
Method Detail- 
getProfile@Nullable public AuditProfile getProfile(java.lang.String name) throws java.lang.Exception Description copied from interface:AuditManagerReturns the named audit profile, or null if none exists with that name- Specified by:
- getProfilein interface- AuditManager
- Throws:
- java.lang.Exception
 
 - 
getProfileForProject@Nullable public AuditProfile getProfileForProject(java.lang.String projectName) Description copied from interface:AuditManagerReturns the audit profile for a given project. May be null- Specified by:
- getProfileForProjectin interface- AuditManager
 
 - 
getGatewayAuditProfile@Nullable public AuditProfile getGatewayAuditProfile() Description copied from interface:AuditManagerReturns the audit profile specified bySystemPropertiesRecord.GatewayAuditProfile, ornull.- Specified by:
- getGatewayAuditProfilein interface- AuditManager
 
 - 
getAuditContextpublic java.util.Optional<AuditContext> 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 interface- AuditManager
 
 - 
setAuditContextpublic void setAuditContext(AuditContext auditContext) 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 interface- AuditManager
 
 - 
clearAuditContextpublic void clearAuditContext() Description copied from interface:AuditManagerRemoves the threadlocal AuditContext- Specified by:
- clearAuditContextin interface- AuditManager
 
 - 
addAuditProfileTypepublic void addAuditProfileType(AuditProfileType type) throws java.lang.Exception Description copied from interface:AuditManager` 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- Specified by:
- addAuditProfileTypein interface- AuditManager
- Parameters:
- type- The new type of audit profile to add.
- Throws:
- java.lang.Exception- If automatic schema updating fails.
 
 - 
getAvailableAuditProfilespublic java.util.List<java.lang.String> getAvailableAuditProfiles() Description copied from interface:AuditManagerReturn the list of audit profiles known to this manager.- Specified by:
- getAvailableAuditProfilesin interface- AuditManager
 
 - 
getExtensionPoint@Nullable public ExtensionPointType getExtensionPoint(java.lang.String typeId) - Specified by:
- getExtensionPointin interface- ExtensionPointManager
- Returns:
- the ExtensionPointTypeidentified bytypeId, ornullif none exists for that name.
- See Also:
- ExtensionPointType.getTypeId()
 
 - 
getExtensionPointspublic java.util.List<? extends ExtensionPointType> getExtensionPoints() - Specified by:
- getExtensionPointsin interface- ExtensionPointManager
- Returns:
- all ExtensionPointTypes managed by thisExtensionPointManager.
 
 
- 
 
-