public class AuditedDataSubject extends Object
Constructor and Description |
---|
AuditedDataSubject(String type,
String role)
Creates an audited data subject instance with provided type and role.
|
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. administrator, controller, ...).
|
String |
getType()
This represents the type of owner for the data (e.g. person, company, ...).
|
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. administrator, controller, ...).
|
void |
setType(String type)
This represents the type of owner for the data (e.g. person, company, ...).
|
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 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 © 2018 SAP SE. All rights reserved.