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()
int
getScope()
int
Pull fields from thisAuditContext
into a newAuditRecordBuilder
instance, 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 thisAuditContext
when the context of the audit is unknown. It is preferrable to call theunknown(int)
method to provide anApplicationScope
other 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 thisAuditContext
into a newAuditRecordBuilder
instance, which should then be supplied with (at minimum) anaction
,target
, andvalue
. Project specific, or otherwise more 'narrow' systems, should alsoextend
theQualifiedPath
available on thisAuditContext
, to provide more specific context; see alsoWellKnownPathTypes
for inspiration. -
toContextBuilder
- Returns:
- a new
AuditContext.Builder
with all fields set to this context's fields
-
unknown(int)
instead.