|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.agent.logging.AgentAuditRecorder atg.agent.logging.ItemUpdateRecorder
public class ItemUpdateRecorder
Recorder used to record ItemUpdateAgentEvents.
Field Summary | |
---|---|
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 |
Fields inherited from class atg.agent.logging.AgentAuditRecorder |
---|
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 |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
ItemUpdateRecorder()
|
Method Summary | |
---|---|
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. |
Methods inherited from class atg.agent.logging.AgentAuditRecorder |
---|
addDataItem, createAgentAuditItem, getAgentAuditRepository, populateBaseProperties, setAgentAuditRepository |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public ItemUpdateRecorder()
Method Detail |
---|
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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |