public class ItemUpdateRecorder extends AgentAuditRecorder
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
protected ProfileTools |
mProfileTools |
static java.lang.String |
NEW_VALUE_PROPERTY_NAME
The name of the property in the property update item descriptor that holds the new value
|
static java.lang.String |
OLD_VALUE_PROPERTY_NAME
The name of the property in the property update item descriptor that holds the old value
|
static java.lang.String |
OWNER_PROPERTY_NAME
The name of the property in the property update item descriptor that holds the owner
|
static java.lang.String |
PROPERTY_UPDATES_PROPERTY_NAME
The name of the property in the audit item that holds the collecton of property update items
|
static java.lang.String |
UPDATE_TYPE_PROPERT_NAME
The name of the property in the property update item descriptor that holds the updated type
|
static java.lang.String |
UPDATED_ITEM_ID_PROPERTY_NAME
The name of the property in the audit item that holds the updated item id
|
static java.lang.String |
UPDATED_PROPERTY_PROPERTY_NAME
The name of the property in the property update item descriptor that holds the property name
|
CUSTOMER_PROFILE_ID_PROPERTY_NAME, EVENT_DATE_PROPERTY_NAME, IP_ADDRESS_PROPERTY_NAME, ORGANIZATION_ID_PROPERTY_NAME, PARENT_SESSION_ID_PROPERTY_NAME, PROFILE_ID_PROPERTY_NAME, SESSION_ID_PROPERTY_NAME
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 |
---|
ItemUpdateRecorder() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
convertToString(java.lang.Object pObject)
Deprecated.
in favor of ProfileTools#convertNewValueToString and ProfileTools#convertOldValueToString
|
protected MutableRepositoryItem |
createPropertyUpdateItem(MutableRepository pAgentAuditRepository,
MutableRepositoryItem pAuditItem,
atg.userprofiling.PropertyUpdate pPropertyUpdate)
Creates a property update repository item.
|
protected java.lang.String |
getItemDescriptorType(RepositoryItem pItem,
java.lang.String pPropertyName)
This method determines the item descriptor type for the property on the given item.
|
ProfileTools |
getProfileTools() |
boolean |
isRecordOldNewValues()
Returns property RecordOldNewValues
|
protected void |
populateCustomProperties(MutableRepository pAgentAuditRepository,
MutableRepositoryItem pAuditItem,
AgentEvent pAgentEvent)
Fills in the base properties of the audit item and creates the property update repository items
based on the propertyUpdates in the event.
|
void |
setProfileTools(ProfileTools pProfileTools)
Sets the property ProfileTools.
|
void |
setRecordOldNewValues(boolean pRecordOldNewValues)
Sets property RecordOldNewValues.
|
addDataItem, createAgentAuditItem, getAgentAuditRepository, populateBaseProperties, setAgentAuditRepository
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, toString
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 PROPERTY_UPDATES_PROPERTY_NAME
public static final java.lang.String UPDATED_PROPERTY_PROPERTY_NAME
public static final java.lang.String OLD_VALUE_PROPERTY_NAME
public static final java.lang.String NEW_VALUE_PROPERTY_NAME
public static final java.lang.String OWNER_PROPERTY_NAME
public static final java.lang.String UPDATED_ITEM_ID_PROPERTY_NAME
public static final java.lang.String UPDATE_TYPE_PROPERT_NAME
protected ProfileTools mProfileTools
public void setProfileTools(ProfileTools pProfileTools)
public ProfileTools getProfileTools()
public void setRecordOldNewValues(boolean pRecordOldNewValues)
The default setting is true.
pRecordOldNewValues
- boolean determining if the old and new property values are recorded in the audit tablepublic boolean isRecordOldNewValues()
protected void populateCustomProperties(MutableRepository pAgentAuditRepository, MutableRepositoryItem pAuditItem, AgentEvent pAgentEvent) throws AgentAuditLoggingException
populateCustomProperties
in class AgentAuditRecorder
AgentAuditLoggingException
protected MutableRepositoryItem createPropertyUpdateItem(MutableRepository pAgentAuditRepository, MutableRepositoryItem pAuditItem, atg.userprofiling.PropertyUpdate pPropertyUpdate)
The item is not created if both the old an new values convert to empty strings.
pAgentAuditRepository
- the audit repositorypAuditItem
- the parent audit item.pPropertyUpdate
- the property update object used to populate the new repository item.protected java.lang.String getItemDescriptorType(RepositoryItem pItem, java.lang.String pPropertyName)
pItem
- the repository item that contains the property.pPropertyName
- the name of the property for which you want the type.protected java.lang.String convertToString(java.lang.Object pObject)
pObject
- the object to convert to a string.ProfileTools.convertNewValueToString(PropertyUpdate)
,
ProfileTools.convertOldValueToString(PropertyUpdate)