Class AccessedAttribute
java.lang.Object
com.sap.cloud.sdk.cloudplatform.auditlog.AccessedAttribute
This class represents the access to a security relevant attribute in the context of an audit log.
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum representing the type of operation performed on the accessed attribute. -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringA human readable representation of the attribute.final StringAn unique identifier of the attribute accessed.final ObjectThe value of the attribute after the access.final ObjectThe value of the attribute prior to the access.The type of operation performed on the attribute.final booleanFlag indicating whether the operation succeeded. -
Constructor Summary
ConstructorsConstructorDescriptionAccessedAttribute(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. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanA human readable representation of the attribute.An unique identifier of the attribute accessed.The value of the attribute after the access.The value of the attribute prior to the access.The type of operation performed on the attribute.inthashCode()booleanFlag indicating whether the operation succeeded.toString()
-
Field Details
-
identifier
An unique identifier of the attribute accessed. -
operation
The type of operation performed on the attribute. Not logged on Cloud Foundry. -
displayName
A 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
public final boolean operationSuccessfulFlag indicating whether the operation succeeded.
-
-
Constructor Details
-
AccessedAttribute
public AccessedAttribute(@Nonnull String identifier, @Nonnull AccessedAttribute.Operation operation, @Nullable String displayName, @Nullable Object oldValue, @Nullable Object newValue, boolean operationSuccessful) Creates an AccessedAttribute instance based on all fields.- Parameters:
identifier- An identifier for the attribute accessed.operation- The type of operation performed on the attribute. Not logged on Cloud Foundry.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.
-
AccessedAttribute
public AccessedAttribute(@Nonnull String identifier, @Nonnull AccessedAttribute.Operation operation, @Nullable String displayName, @Nullable Object oldValue, @Nullable Object newValue) Creates an AccessedAttribute with a successful operation.- Parameters:
identifier- An identifier for the attribute accessed.operation- The type of operation performed on the attribute. Not logged on Cloud Foundry.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.
-
AccessedAttribute
public AccessedAttribute(@Nonnull String identifier, @Nonnull AccessedAttribute.Operation operation) Creates an AccessedAttribute based on the mandatory fields.- Parameters:
identifier- An identifier for the attribute accessed.operation- The type of operation performed on the attribute. Not logged on Cloud Foundry.
-
-
Method Details
-
getIdentifier
An unique identifier of the attribute accessed. -
getOperation
The type of operation performed on the attribute. Not logged on Cloud Foundry. -
getDisplayName
A human readable representation of the attribute. -
getOldValue
The value of the attribute prior to the access. -
getNewValue
The value of the attribute after the access. -
isOperationSuccessful
public boolean isOperationSuccessful()Flag indicating whether the operation succeeded. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-