Class AuditedDataObject
java.lang.Object
com.sap.cloud.sdk.cloudplatform.auditlog.AuditedDataObject
This class stores auditing information about the object being accessed. The type and keys should be set such that
from the audit log entry, one can find the object in the application's persistence (e.g. database).
-
Constructor Summary
ConstructorsConstructorDescriptionAuditedDataObject(String type) Creates an audited data object instance with provided object type and randomly generated identifier.AuditedDataObject(String type, String id) Creates an audited data object instance with provided object type and identifier. -
Method Summary
Modifier and TypeMethodDescriptionGets all properties that identify the accessed object.getIdentifier(String propertyName) Gets the value of a key property that identifies the accessed object.getType()This represents the type of the object being accessed.voidsetIdentifier(String propertyName, String value) Sets a key property that identifies the accessed object.voidThis represents the type of the object being accessed.
-
Constructor Details
-
AuditedDataObject
Creates an audited data object instance with provided object type and randomly generated identifier.- Parameters:
type- The type of the object being accessed.
-
AuditedDataObject
Creates an audited data object instance with provided object type and identifier.- Parameters:
type- The type of the object being accessed.id- The identifier value for property "AuditedDataObject".
-
-
Method Details
-
setIdentifier
Sets a key property that identifies the accessed object. Entries can be overwritten if the samepropertyNameis passed in.- Parameters:
propertyName- Name of the key property.value- Value of the key property.
-
getIdentifier
Gets the value of a key property that identifies the accessed object.- Parameters:
propertyName- Name of the key property.- Returns:
- Value of the key property.
-
getAllIdentifiers
Gets all properties that identify the accessed object.- Returns:
- Map of name-value pairs.
-
getType
This represents the type of the object being accessed. -
setType
This represents the type of the object being accessed.
-