Class AuditedDataSubject
java.lang.Object
com.sap.cloud.sdk.cloudplatform.auditlog.AuditedDataSubject
This class stores auditing information about who owns the data. Fields should be set such that from the audit log
entry, one can identify the owner of the accessed data.
-
Constructor Summary
ConstructorsConstructorDescriptionAuditedDataSubject(String type, String role) Creates an audited data subject instance with provided type and role and randomly generated identifier.AuditedDataSubject(String type, String role, String id) Creates an audited data subject instance with provided type, role and identifier. -
Method Summary
Modifier and TypeMethodDescriptionGets all properties that identify the data owner.getIdentifier(String propertyName) Gets the value of a property that identifies the data owner.getRole()This represents the role of the owner for the data (e.g.getType()This represents the type of owner for the data (e.g.voidsetIdentifier(String propertyName, String value) Sets a property that identifies the data owner.voidThis represents the role of the owner for the data (e.g.voidThis represents the type of owner for the data (e.g.
-
Constructor Details
-
AuditedDataSubject
Creates an audited data subject instance with provided type and role and randomly generated identifier.- Parameters:
type- The type of owner for the data (e.g. person, company, ...).role- The role of the owner for the data (e.g. administrator, controller, ...).
-
AuditedDataSubject
Creates an audited data subject instance with provided type, role and identifier.- Parameters:
type- The type of owner for the data (e.g. person, company, ...).role- The role of the owner for the data (e.g. administrator, controller, ...).id- The identifier value for property "AuditedDataObject".
-
-
Method Details
-
setIdentifier
Sets a property that identifies the data owner. Entries can be overwritten if the samepropertyNameis passed in.- Parameters:
propertyName- Name of the property.value- Value of the property.
-
getIdentifier
Gets the value of a property that identifies the data owner.- Parameters:
propertyName- Name of the property.- Returns:
- Value of the property.
-
getAllIdentifiers
Gets all properties that identify the data owner.- Returns:
- Map of name-value pairs.
-
getType
This represents the type of owner for the data (e.g. person, company, ...). -
setType
This represents the type of owner for the data (e.g. person, company, ...). -
getRole
This represents the role of the owner for the data (e.g. administrator, controller, ...). -
setRole
This represents the role of the owner for the data (e.g. administrator, controller, ...).
-