|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.dms.DASMessage atg.userprofiling.dms.DPSMessage atg.userprofiling.dms.ProfilePropertyUpdateMessage
public class ProfilePropertyUpdateMessage
This JMS Message will be sent by DPS when a user changes one of his profile traits, like maritalStatus for example.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
protected double |
mChangeAmount
|
protected double |
mChangePercentage
|
protected int |
mChangeSign
|
protected java.lang.Object[] |
mElementsAdded
|
protected java.lang.Object[] |
mElementsRemoved
|
protected java.lang.Object |
mNewValue
|
protected java.lang.Object |
mOldValue
|
protected java.lang.String |
mPropertyPath
|
Constructor Summary | |
---|---|
ProfilePropertyUpdateMessage()
|
|
ProfilePropertyUpdateMessage(java.lang.String pPropertyPath,
java.lang.Object pOldValue,
java.lang.Object pNewValue,
int pChangeSign,
double pChangeAmount,
double pChangePercentage,
java.lang.Object[] pElementsAdded,
java.lang.Object[] pElementsRemoved,
java.lang.String pProfileId)
Constructs an instance of ProfileUpdateMessage |
Method Summary | |
---|---|
double |
getChangeAmount()
Gets the changeAmount property |
double |
getChangePercentage()
Gets the changePercentage property |
int |
getChangeSign()
Gets the changeSign property |
java.lang.Object[] |
getElementsAdded()
Gets the elements added property |
java.lang.Object[] |
getElementsRemoved()
Gets the elements removed property |
java.lang.Object |
getNewValue()
Gets the newValue property |
java.lang.Object |
getOldValue()
Gets the oldValue property |
java.lang.String |
getPropertyPath()
Gets the propertyPath property |
java.lang.Double |
getReportingChangeAmount()
Returns a Double representation of the changeAmount property, for reporting purposes only. |
java.lang.Double |
getReportingChangePercentage()
Returns a Double representation of the changePercentage property, for reporting purposes only. |
java.lang.String |
getReportingChangeSign()
Returns a String representation of the changeSign property, for reporting purposes only. |
java.lang.String |
getReportingElementsAdded()
Returns a String representation of the elementsAdded property, for reporting purposes only. |
java.lang.String |
getReportingElementsRemoved()
Returns a String representation of the elementsRemoved property, for reporting purposes only. |
java.lang.String |
getReportingNewValue()
Returns a String representation of the newValue property, for reporting purposes only. |
java.lang.String |
getReportingOldValue()
Returns a String representation of the oldValue property, for reporting purposes only. |
void |
setChangeAmount(double pChangeAmount)
Sets the changeAmount property |
void |
setChangePercentage(double pChangePercentage)
Sets the changePercentage property |
void |
setChangeSign(int pChangeSign)
Sets the changeSign property |
void |
setElementsAdded(java.lang.Object[] pElementsAdded)
Sets the elements Added property |
void |
setElementsRemoved(java.lang.Object[] pElementsRemoved)
Sets the elements Removed property |
void |
setNewValue(java.lang.Object pNewValue)
Sets the newValue property |
void |
setOldValue(java.lang.Object pOldValue)
Sets the oldValue property |
void |
setPropertyPath(java.lang.String pPropertyPath)
Sets the propertyPath 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, getSiteId, setParentSessionId, setProfileId, setScenarioPathInfo, setSessionId, setSiteId, setSiteIdFromSiteContextManager |
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 |
---|
public static java.lang.String CLASS_VERSION
protected java.lang.String mPropertyPath
protected java.lang.Object mOldValue
protected java.lang.Object mNewValue
protected int mChangeSign
protected double mChangeAmount
protected double mChangePercentage
protected java.lang.Object[] mElementsAdded
protected java.lang.Object[] mElementsRemoved
Constructor Detail |
---|
public ProfilePropertyUpdateMessage()
public ProfilePropertyUpdateMessage(java.lang.String pPropertyPath, java.lang.Object pOldValue, java.lang.Object pNewValue, int pChangeSign, double pChangeAmount, double pChangePercentage, java.lang.Object[] pElementsAdded, java.lang.Object[] pElementsRemoved, java.lang.String pProfileId)
pPropertyPath
- the path of the property that changedpOldValue
- the value that this property was before the changepNewValue
- the value that this property was changed topChangeSign
- for comparable types, indicates
whether the value has increased or decreased, zero indicates no change or not comparablepChangeAmount
- if property is a Number type,
the absolute value of the difference between oldValue and newValuepChangePercentage
- if property is a Number type,
the absolute value of the percent difference between oldValue and newValuepElementsAdded
- if property is an array or Collection type,
an array of elements which are members of newValue but not members of oldvaluepElementsRemoved
- if property is an array or Collection type,
an array of elements which are members of oldValue but not members of newValueMethod Detail |
---|
public void setPropertyPath(java.lang.String pPropertyPath)
pPropertyPath
- the property that has changed (e.g, "maritalStatus" or "homeAddress.city"public java.lang.String getPropertyPath()
public void setOldValue(java.lang.Object pOldValue)
pOldValue
- containing the property value before the changepublic java.lang.Object getOldValue()
public void setNewValue(java.lang.Object pNewValue)
pNewValue
- containing the value that the property has been changed to.public java.lang.Object getNewValue()
public void setChangeSign(int pChangeSign)
pChangeSign,
- for comparable type properties, indicates if the
value has increased or decreased.
A zero value indicates either "no change", or "not comparable"
A positive value indicates an increase
A negative value indicates a decreasepublic int getChangeSign()
public void setChangeAmount(double pChangeAmount)
pChangeAmount
- for number type properties, the absolute value of the difference between old and new valuepublic double getChangeAmount()
public void setChangePercentage(double pChangePercentage)
pChangePercentage,
- for number type properties, the absolute value of the percent difference between old and new valuepublic double getChangePercentage()
public void setElementsAdded(java.lang.Object[] pElementsAdded)
pElementsAdded
- for array or collection type properties, an array of elements which memebers are of newValue but not members of oldValuepublic java.lang.Object[] getElementsAdded()
public void setElementsRemoved(java.lang.Object[] pElementsRemoved)
pElementsRemoved
- for array or collection type properties, an array of elements which memebers are of oldValue but not members of newValuepublic java.lang.Object[] getElementsRemoved()
public java.lang.String getReportingOldValue()
public java.lang.String getReportingNewValue()
public java.lang.String getReportingChangeSign()
public java.lang.Double getReportingChangeAmount()
public java.lang.Double getReportingChangePercentage()
public java.lang.String getReportingElementsAdded()
public java.lang.String getReportingElementsRemoved()
protected java.lang.String toStringProperties()
toStringProperties
in class DPSMessage
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |