Class AuditContext
- java.lang.Object
-
- com.inductiveautomation.ignition.gateway.audit.AuditContext
-
public final class AuditContext extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AuditContext.Builder
-
Field Summary
Fields Modifier and Type Field Description static java.util.function.Supplier<AuditContext>
UNKNOWN
static java.lang.String
UNKNOWN_ACTOR
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getActor()
java.lang.String
getHost()
QualifiedPath
getPath()
int
getScope()
int
getStatusCode()
java.util.Date
getTimestamp()
AuditRecordBuilder
toRecordBuilder()
Pull fields from thisAuditContext
into a newAuditRecordBuilder
instance, which should then be supplied with (at minimum) anaction
,target
, andvalue
.
-
-
-
Field Detail
-
UNKNOWN_ACTOR
public static final java.lang.String UNKNOWN_ACTOR
- See Also:
- Constant Field Values
-
UNKNOWN
public static final java.util.function.Supplier<AuditContext> UNKNOWN
-
-
Method Detail
-
getActor
@Nonnull public java.lang.String getActor()
-
getHost
@Nonnull public java.lang.String getHost()
-
getScope
public int getScope()
-
getPath
@Nonnull public QualifiedPath getPath()
-
getTimestamp
@Nonnull public java.util.Date getTimestamp()
-
getStatusCode
public int getStatusCode()
-
toRecordBuilder
public AuditRecordBuilder 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.
-
-