public interface PreferencesProvider<X extends PreferencesProvider<X>> extends ConfiguredObject<X>
CONTEXT, CREATED_BY, CREATED_TIME, DESCRIPTION, DESIRED_STATE, DURABLE, ID, LAST_UPDATED_BY, LAST_UPDATED_TIME, LIFETIME_POLICY, NAME, OVER_SIZED_ATTRIBUTE_ALTERNATIVE_TEXT, STATE, TYPE
Modifier and Type | Method and Description |
---|---|
String[] |
deletePreferences(String... userIDs)
Delete preferences for given user IDs
|
AuthenticationProvider |
getAuthenticationProvider()
Returns authentication provider associated with this preferences provider
|
Map<String,Object> |
getPreferences(String userId)
Returns preferences
Map for a given user ID |
Set<String> |
listUserIDs()
Returns set of the user IDs having preferences set
|
Map<String,Object> |
setPreferences(String userId,
Map<String,Object> preferences)
Set user preferences as specified in a given
Map |
addChangeListener, asObjectRecord, close, closeAsync, createChild, createChildAsync, decryptSecrets, delete, deleteAsync, findConfiguredObject, getActualAttributes, getAttainedChildById, getAttainedChildByName, getAttribute, getAttributeNames, getCategoryClass, getChildById, getChildByName, getChildExecutor, getChildren, getContext, getContextKeys, getContextValue, getContextValue, getCreatedBy, getCreatedTime, getDescription, getDesiredState, getId, getLastOpenedTime, getLastUpdatedBy, getLastUpdatedTime, getLifetimePolicy, getModel, getName, getObjectFactory, getParent, getState, getStatistics, getTaskExecutor, getType, getTypeClass, isDurable, managesChildStorage, open, openAsync, removeChangeListener, setAttribute, setAttributes, setAttributesAsync
Map<String,Object> getPreferences(String userId)
Map
for a given user IDuserId
- user ID to retrieve preferences forMap
Map<String,Object> setPreferences(String userId, Map<String,Object> preferences)
Map
userId
- user ID to set preferences forpreferences
- new preferencesString[] deletePreferences(String... userIDs)
userIDs
- user IDs to delete preferences forSet<String> listUserIDs()
AuthenticationProvider getAuthenticationProvider()
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.