public class AccessedAttribute extends Object
Therefore this class stores which field was accessed in which way. Information about the initiator of the access as
well as about the access time are handled in the implementation of the AuditLog
interface.
Modifier and Type | Class and Description |
---|---|
static class |
AccessedAttribute.Operation
Enum representing the type of operation performed on the accessed attribute.
|
Modifier and Type | Field and Description |
---|---|
String |
displayName
A human readable representation of the attribute.
|
String |
identifier
An unique identifier of the attribute accessed.
|
Object |
newValue
The value of the attribute after the access.
|
Object |
oldValue
The value of the attribute prior to the access.
|
AccessedAttribute.Operation |
operation
The type of operation performed on the attribute.
|
boolean |
operationSuccessful
Flag indicating whether the operation succeeded.
|
Constructor and Description |
---|
AccessedAttribute(String identifier,
AccessedAttribute.Operation operation)
Creates an AccessedAttribute based on the mandatory fields.
|
AccessedAttribute(String identifier,
AccessedAttribute.Operation operation,
String displayName,
Object oldValue,
Object newValue)
Creates an AccessedAttribute with a successful operation.
|
AccessedAttribute(String identifier,
AccessedAttribute.Operation operation,
String displayName,
Object oldValue,
Object newValue,
boolean operationSuccessful)
Creates an AccessedAttribute instance based on all fields.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
String |
getDisplayName()
A human readable representation of the attribute.
|
String |
getIdentifier()
An unique identifier of the attribute accessed.
|
Object |
getNewValue()
The value of the attribute after the access.
|
Object |
getOldValue()
The value of the attribute prior to the access.
|
AccessedAttribute.Operation |
getOperation()
The type of operation performed on the attribute.
|
int |
hashCode() |
boolean |
isOperationSuccessful()
Flag indicating whether the operation succeeded.
|
String |
toString() |
public final String identifier
public final AccessedAttribute.Operation operation
@Nullable public final String displayName
public final boolean operationSuccessful
public AccessedAttribute(String identifier, AccessedAttribute.Operation operation, @Nullable String displayName, @Nullable Object oldValue, @Nullable Object newValue, boolean operationSuccessful)
identifier
- An identifier for the attribute accessed.operation
- The type of operation performed on the attribute.displayName
- Human readable representation of the attribute.oldValue
- The value of the attribute prior to the access.newValue
- The value of the attribute after the access.operationSuccessful
- Flag indicating whether the operation succeeded.public AccessedAttribute(String identifier, AccessedAttribute.Operation operation, @Nullable String displayName, @Nullable Object oldValue, @Nullable Object newValue)
identifier
- An identifier for the attribute accessed.operation
- The type of operation performed on the attribute.displayName
- Human readable representation of the attribute.oldValue
- The value of the attribute prior to the access.newValue
- The value of the attribute after the access.public AccessedAttribute(String identifier, AccessedAttribute.Operation operation)
identifier
- An identifier for the attribute accessed.operation
- The type of operation performed on the attribute.public String getIdentifier()
public AccessedAttribute.Operation getOperation()
@Nullable public String getDisplayName()
public boolean isOperationSuccessful()
protected boolean canEqual(Object other)
Copyright © 2018 SAP SE. All rights reserved.