public class AuditedDataSubject extends Object
Constructor and Description |
---|
AuditedDataSubject(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.
|
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getAllIdentifiers()
Gets all properties that identify the data owner.
|
String |
getIdentifier(String propertyName)
Gets the value of a property that identifies the data owner.
|
String |
getRole()
This represents the role of the owner for the data (e.g.
|
String |
getType()
This represents the type of owner for the data (e.g.
|
void |
setIdentifier(String propertyName,
String value)
Sets a property that identifies the data owner.
|
void |
setRole(String role)
This represents the role of the owner for the data (e.g.
|
void |
setType(String type)
This represents the type of owner for the data (e.g.
|
public AuditedDataSubject(@Nonnull String type, @Nonnull String role)
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, ...).public AuditedDataSubject(@Nonnull String type, @Nonnull String role, @Nonnull String id)
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".public void setIdentifier(@Nonnull String propertyName, String value)
propertyName
is
passed in.propertyName
- Name of the property.value
- Value of the property.@Nullable public String getIdentifier(@Nonnull String propertyName)
propertyName
- Name of the property.@Nonnull public Map<String,String> getAllIdentifiers()
public String getType()
public void setType(String type)
public String getRole()
public void setRole(String role)
Copyright © 2019 SAP SE. All rights reserved.