|  | Aqualogic Interaction API | |
| IPTPreferencesContext.AssignPreferences Method |
This method adds multiple preferences on the current object. It can also delete the old preferences before adding the new preferences. The preferences can be for a specific portlet or not. The preferences can be for all users or for just the current user.
void AssignPreferences(
object[][]
_aoPreferenceNameValuePairs,
bool
_bDeleteOldPreferences,
int
_nPortletID,
PT_PREF_TYPES _prefType);
Parameters
-
_aoPreferenceNameValuePairs
- is an array of Name-Value Pairs of the preferences.
-
_bDeleteOldPreferences
- flags whether the old preferences should be deleted or not. Use true to delete to delete the old preferences, or false to keep them.
-
_nPortletID
- is the Portlet the preference is set on. Use 0 if the preference is not a portlet preference.
-
_prefType
- is the type of the preference. Use PT_PREF_TYPE.PT_PREFTYPE_CURRENT_USER if the preference is a preference for just this user. Use PT_PREF_TYPE.PT_PREFTYPE_ALL_USERS if the preference is a preference for all users.
See Also
IPTPreferencesContext Interface | com.plumtree.server Namespace