public class AgentAuditRecorder extends GenericService implements DataListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
static java.lang.String |
CUSTOMER_PROFILE_ID_PROPERTY_NAME
The name of the property in the audit item that holds the customer profile id
|
static java.lang.String |
EVENT_DATE_PROPERTY_NAME
The name of the property in the audit item that holds the event date
|
static java.lang.String |
IP_ADDRESS_PROPERTY_NAME
The name of the property in the audit item that holds the ipaddress
|
static java.lang.String |
ORGANIZATION_ID_PROPERTY_NAME
The name of the property in the audit item that holds the organization id
|
static java.lang.String |
PARENT_SESSION_ID_PROPERTY_NAME
The name of the property in the audit item that holds the parent session id
|
static java.lang.String |
PROFILE_ID_PROPERTY_NAME
The name of the property in the audit item that holds the profile id
|
static java.lang.String |
SESSION_ID_PROPERTY_NAME
The name of the property in the audit item that holds the session id
|
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
AgentAuditRecorder() |
Modifier and Type | Method and Description |
---|---|
void |
addDataItem(java.lang.Object pAgentEvent)
Creates an audit repository item based on the agent event and adds it to the audit
repository.
|
protected MutableRepositoryItem |
createAgentAuditItem(MutableRepository pAgentAuditRepository,
AgentEvent pAgentEvent)
Creates the mutable audit repository item
|
MutableRepository |
getAgentAuditRepository() |
protected void |
populateBaseProperties(MutableRepository pAgentAuditRepository,
MutableRepositoryItem pAuditItem,
AgentEvent pAgentEvent)
Populates the base properties of the audit repository item from the agent event.
|
protected void |
populateCustomProperties(MutableRepository pAgentAuditRepository,
MutableRepositoryItem pAuditItem,
AgentEvent pAgentEvent)
Method that is used to implement handling of custom properties of the audit item.
|
void |
setAgentAuditRepository(MutableRepository pAgentAuditRepository)
The repository where the agent audit information is stored
|
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static final java.lang.String CLASS_VERSION
public static final java.lang.String PROFILE_ID_PROPERTY_NAME
public static final java.lang.String SESSION_ID_PROPERTY_NAME
public static final java.lang.String PARENT_SESSION_ID_PROPERTY_NAME
public static final java.lang.String CUSTOMER_PROFILE_ID_PROPERTY_NAME
public static final java.lang.String ORGANIZATION_ID_PROPERTY_NAME
public static final java.lang.String IP_ADDRESS_PROPERTY_NAME
public static final java.lang.String EVENT_DATE_PROPERTY_NAME
public void setAgentAuditRepository(MutableRepository pAgentAuditRepository)
pAgentAuditRepository
- the repository where the agent audit information is storedpublic MutableRepository getAgentAuditRepository()
protected MutableRepositoryItem createAgentAuditItem(MutableRepository pAgentAuditRepository, AgentEvent pAgentEvent) throws RepositoryException
pAgentAuditRepository
- the audit repositorypAgentEvent
- the agent event the will be recorded in the itemRepositoryException
protected void populateBaseProperties(MutableRepository pAgentAuditRepository, MutableRepositoryItem pAuditItem, AgentEvent pAgentEvent) throws AgentAuditLoggingException
pAuditItem
- the audit repository itempAgentEvent
- the agent eventAgentAuditLoggingException
protected void populateCustomProperties(MutableRepository pAgentAuditRepository, MutableRepositoryItem pAuditItem, AgentEvent pAgentEvent) throws AgentAuditLoggingException
pAuditItem
- pAgentEvent
- AgentAuditLoggingException
public void addDataItem(java.lang.Object pAgentEvent)
addDataItem
in interface DataListener
pAgentAuditRepository
- pAgentEvent
- AgentAuditLoggingException