atg.userprofiling.dms
Class ProfileUpdateMessage

java.lang.Object
  extended by atg.nucleus.dms.DASMessage
      extended by atg.userprofiling.dms.DPSMessage
          extended by atg.userprofiling.dms.ProfileUpdateMessage
All Implemented Interfaces:
java.io.Serializable

public class ProfileUpdateMessage
extends DPSMessage

This JMS Message will be sent by DPS when a user changes one of his profile traits, like maritalStatus for example.

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
protected  java.util.List mChangedProperties
           
protected  java.util.Map mNewValues
           
protected  java.util.Map mOldValues
           
 
Constructor Summary
ProfileUpdateMessage()
           
ProfileUpdateMessage(java.util.List pChangedProperties, java.util.Map pOldValues, java.util.Map pNewValues, java.lang.String pProfileId)
          Constructs an instance of ProfileUpdateMessage
 
Method Summary
 java.util.List getChangedProperties()
          Gets the ChangedProperties property
 java.util.Map getNewValues()
          Gets the newValues property
 java.util.Map getOldValues()
          Gets the oldValues property
 java.lang.String getReportingChangedProperties()
          Returns a String representation of the changedProperties property, for reporting purposes only.
 java.lang.String getReportingNewValues()
          Returns a String representation of the newValues property, for reporting purposes only.
 java.lang.String getReportingOldValues()
          Returns a String representation of the oldValues property, for reporting purposes only.
 void setChangedProperties(java.util.List pChangedProperties)
          Sets the changedProperties property
 void setNewValues(java.util.Map pNewValues)
          Sets the newValues property
 void setOldValues(java.util.Map pOldValues)
          Sets the oldValues property
protected  java.lang.String toStringProperties()
          Returns the String representation of all the public properties of this message.
 
Methods inherited from class atg.userprofiling.dms.DPSMessage
getParentSessionId, getProfileId, getScenarioPathInfo, getSessionId, setParentSessionId, setProfileId, setScenarioPathInfo, setSessionId
 
Methods inherited from class atg.nucleus.dms.DASMessage
limitSize, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string


mChangedProperties

protected java.util.List mChangedProperties

mOldValues

protected java.util.Map mOldValues

mNewValues

protected java.util.Map mNewValues
Constructor Detail

ProfileUpdateMessage

public ProfileUpdateMessage()

ProfileUpdateMessage

public ProfileUpdateMessage(java.util.List pChangedProperties,
                            java.util.Map pOldValues,
                            java.util.Map pNewValues,
                            java.lang.String pProfileId)
Constructs an instance of ProfileUpdateMessage

Parameters:
pChangedProperties - the path of the property that changed
pOldValues - the value map containing values that existed before being changed
pNewValues - the value map containing values that exist after being changed
Method Detail

setChangedProperties

public void setChangedProperties(java.util.List pChangedProperties)
Sets the changedProperties property

Parameters:
pChangedProperties - the property that has changed (e.g, "maritalStatus" or "homeAddress.city"

getChangedProperties

public java.util.List getChangedProperties()
Gets the ChangedProperties property

Returns:
the ChangedProperties of the property that has changed.

setOldValues

public void setOldValues(java.util.Map pOldValues)
Sets the oldValues property

Parameters:
pOldValues - containing the property value before the change

getOldValues

public java.util.Map getOldValues()
Gets the oldValues property

Returns:
the oldValues containing the property value before the change

setNewValues

public void setNewValues(java.util.Map pNewValues)
Sets the newValues property

Parameters:
pNewValues - containing the value that the property has been changed to.

getNewValues

public java.util.Map getNewValues()
Gets the newValues property

Returns:
the newValues containing the value that the property has been changed to.

getReportingChangedProperties

public java.lang.String getReportingChangedProperties()
Returns a String representation of the changedProperties property, for reporting purposes only.


getReportingOldValues

public java.lang.String getReportingOldValues()
Returns a String representation of the oldValues property, for reporting purposes only.


getReportingNewValues

public java.lang.String getReportingNewValues()
Returns a String representation of the newValues property, for reporting purposes only.


toStringProperties

protected java.lang.String toStringProperties()
Returns the String representation of all the public properties of this message.

Overrides:
toStringProperties in class DPSMessage