Class AccessedAttribute

java.lang.Object
com.sap.cloud.sdk.cloudplatform.auditlog.AccessedAttribute

public class AccessedAttribute extends Object
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.

  • Field Details

    • identifier

      public final String identifier
      An unique identifier of the attribute accessed.
    • operation

      public final AccessedAttribute.Operation operation
      The type of operation performed on the attribute. Not logged on Cloud Foundry.
    • displayName

      @Nullable public final String displayName
      A human readable representation of the attribute.
    • oldValue

      @Nullable public final Object oldValue
      The value of the attribute prior to the access.
    • newValue

      @Nullable public final Object newValue
      The value of the attribute after the access.
    • operationSuccessful

      public final boolean operationSuccessful
      Flag 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

      public String getIdentifier()
      An unique identifier of the attribute accessed.
    • getOperation

      public AccessedAttribute.Operation getOperation()
      The type of operation performed on the attribute. Not logged on Cloud Foundry.
    • getDisplayName

      @Nullable public String getDisplayName()
      A human readable representation of the attribute.
    • getOldValue

      @Nullable public Object getOldValue()
      The value of the attribute prior to the access.
    • getNewValue

      @Nullable public Object getNewValue()
      The value of the attribute after the access.
    • isOperationSuccessful

      public boolean isOperationSuccessful()
      Flag indicating whether the operation succeeded.
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(@Nullable Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object