public class AuditLogBase extends Object implements AuditLog
| Constructor and Description |
|---|
AuditLogBase(String name,
String serverURL)
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLogMessage(String message)
Creates an Audit log record for the caller.
|
String |
getCallerId()
Return setting for the callerId.
|
String |
getCallerName()
Return setting for the callerName.
|
String |
getCallerType()
Return setting of the callerType.
|
String |
getContextId()
Returns the current context id associated with the Audit log.
|
String |
getProperty(String propertyName)
Retrieve a property stored in the Audit log.
|
List<String> |
getPropertyNames()
Request a list of property names stored in the Audit log.
|
String |
getResourceId()
Return setting for the resourceId.
|
String |
getResourceName()
Return setting for the resourceName.
|
String |
getResourceType()
Return setting of the resourceType.
|
void |
setCallerId(String newCallerId)
Set up the identifier of the caller.
|
void |
setCallerName(String newCallerName)
Set up a meaningful name for the caller.
|
void |
setCallerType(String newCallerType)
Set up the type of caller.
|
void |
setContextId(String newContextId)
Set a context id for the activity that the Audit log relates to.
|
void |
setProperty(String newPropertyName,
String newPropertyValue)
Add or update a property in the Audit log.
|
void |
setResourceId(String newResourceId)
Set up the identifier of the related resource, such as the connector to access data.
|
void |
setResourceName(String newResourceName)
Set up a meaningful name for the related resource.
|
void |
setResourceType(String newResourceType)
Set up the type of the related resource.
|
public void setCallerId(String newCallerId)
setCallerId in interface AuditLognewCallerId - - guid of the callerpublic String getCallerId()
getCallerId in interface AuditLogpublic void setCallerName(String newCallerName)
setCallerName in interface AuditLognewCallerName - - meaningful name of the caller - such as the name of the application using the Audit log.public String getCallerName()
getCallerName in interface AuditLogpublic void setCallerType(String newCallerType)
setCallerType in interface AuditLognewCallerType - - meaningful descriptive type name - such as the type of the application using the Audit log.public String getCallerType()
getCallerType in interface AuditLogpublic void setResourceId(String newResourceId)
setResourceId in interface AuditLognewResourceId - - guid of the callerpublic String getResourceId()
getResourceId in interface AuditLogpublic void setResourceName(String newResourceName)
setResourceName in interface AuditLognewResourceName - - meaningful name of the resource - may be class name or (preferably) a name from related
metadata entity.public String getResourceName()
getResourceName in interface AuditLogpublic void setResourceType(String newResourceType)
setResourceType in interface AuditLognewResourceType - - meaningful descriptive type name - such as "connector".public String getResourceType()
getResourceType in interface AuditLogpublic List<String> getPropertyNames()
getPropertyNames in interface AuditLogpublic void setProperty(String newPropertyName, String newPropertyValue)
setProperty in interface AuditLognewPropertyName - - name of the property - if the property exists, it will update; otherwise add a new
propertynewPropertyValue - - value to associate with the property name. If null is passed the property is deleted.public String getProperty(String propertyName)
getProperty in interface AuditLogpropertyName - - name of property to return.public void setContextId(String newContextId)
setContextId in interface AuditLognewContextId - - identifier for the current activity.public String getContextId()
getContextId in interface AuditLogpublic void addLogMessage(String message)
addLogMessage in interface AuditLogmessage - - log record contentCopyright © 2018–2020 ODPi. All rights reserved.