Plumtree PEIs  
 

IUserProfileActions.OnBeforeStoreUserProfile Method 

This functions was created to allow for some kind of verification of data to occur before a user tries to store their user profile. It gets called every time the editor is finished.

Warning: Values in _htFormData are String Arrays (String[]).
e.g.:
String[] arrVals = (String[]) _htFormData.GetElement(sKey);
String sVal = arrVals[0];

string OnBeforeStoreUserProfile(
   AActivitySpace _asCurrentSpace,
   IPTSession _ptUserSession,
   XPHashtable _htPropObjs
);

Parameters

_asCurrentSpace
- Provides access to the current MVC classes as well as the Application and the HTTP Session
_ptUserSession
- Plumtree session object for the current user
_htPropObjs
- This parameter is a hashtable containing all of the necessary Property data, using the Property ID as the key. With the Property object, information such as the id, name, and type can be retrieved.

Return Value

String - This will be a string containing a error message if the data was incorrect or if the process should not continue otherwise it will be null or "".

See Also

IUserProfileActions Interface | com.plumtree.portalpages.pei Namespace