public class AuditedDataObject extends Object
Constructor and Description |
---|
AuditedDataObject(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.
|
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getAllIdentifiers()
Gets all properties that identify the accessed object.
|
String |
getIdentifier(String propertyName)
Gets the value of a key property that identifies the accessed object.
|
String |
getType()
This represents the type of the object being accessed.
|
void |
setIdentifier(String propertyName,
String value)
Sets a key property that identifies the accessed object.
|
void |
setType(String type)
This represents the type of the object being accessed.
|
public AuditedDataObject(@Nonnull String type)
type
- The type of the object being accessed.public void setIdentifier(@Nonnull String propertyName, String value)
propertyName
is passed in.propertyName
- Name of the key property.value
- Value of the key property.@Nullable public String getIdentifier(@Nonnull String propertyName)
propertyName
- Name of the key property.@Nonnull public Map<String,String> getAllIdentifiers()
public String getType()
public void setType(String type)
Copyright © 2018 SAP SE. All rights reserved.