Class AuditContext
java.lang.Object
com.inductiveautomation.ignition.gateway.audit.AuditContext
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Supplier<AuditContext>Deprecated.static final String -
Method Summary
Modifier and TypeMethodDescriptiongetActor()getHost()getPath()intgetScope()intPull fields from thisAuditContextinto a newAuditRecordBuilderinstance, which should then be supplied with (at minimum) anaction,target, andvalue.static Supplier<AuditContext>unknown(int scope) Convenience method to create a new unknown AuditContext with the given scope.
-
Field Details
-
UNKNOWN_ACTOR
- See Also:
-
UNKNOWN
Deprecated.useunknown(int)instead. Not slated for removalOnly use thisAuditContextwhen the context of the audit is unknown. It is preferrable to call theunknown(int)method to provide anApplicationScopeother thanApplicationScope.NONE.
-
-
Method Details
-
unknown
Convenience method to create a new unknown AuditContext with the given scope. This will return an AuditContext identical toUNKNOWN, except with the given scope instead of #ApplicationScope.NONE.- Parameters:
scope- The application scope.- Returns:
- The Supplier of the AuditContext.
- See Also:
-
getActor
-
getHost
-
getScope
public int getScope() -
getPath
-
getTimestamp
-
getStatusCode
public int getStatusCode() -
toRecordBuilder
Pull fields from thisAuditContextinto a newAuditRecordBuilderinstance, which should then be supplied with (at minimum) anaction,target, andvalue. Project specific, or otherwise more 'narrow' systems, should alsoextendtheQualifiedPathavailable on thisAuditContext, to provide more specific context; see alsoWellKnownPathTypesfor inspiration. -
toContextBuilder
- Returns:
- a new
AuditContext.Builderwith all fields set to this context's fields
-
unknown(int)instead.