Interface UserProfileProvider
- 
- All Superinterfaces:
- Provider
 - All Known Implementing Classes:
- AbstractUserProfileProvider,- DeclarativeUserProfileProvider
 
 public interface UserProfileProvider extends Provider The provider responsible for creating UserProfileinstances.- Author:
- Markus Till
- See Also:
- UserProfile
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description UserProfilecreate(UserProfileContext context, Map<String,?> attributes)UserProfilecreate(UserProfileContext context, Map<String,?> attributes, UserModel user)UserProfilecreate(UserProfileContext context, UserModel user)Creates a newUserProfileinstance only for validation purposes to check whether its attributes are in conformance with the givencontextand profile configuration.StringgetConfiguration()Get current UserProfile configuration.voidsetConfiguration(String configuration)Set new UserProfile configuration.
 
- 
- 
- 
Method Detail- 
createUserProfile create(UserProfileContext context, UserModel user) Creates a new UserProfileinstance only for validation purposes to check whether its attributes are in conformance with the givencontextand profile configuration.- Parameters:
- context- the context
- user- an existing user
- Returns:
- the user profile instance
 
 - 
createUserProfile create(UserProfileContext context, Map<String,?> attributes) Creates a new UserProfileinstance for a givencontextandattributesfor validation purposes.Instances created from this method are usually related to contexts where validation and updates are performed in different steps, or when creating new users based on the given attributes.- Parameters:
- context- the context
- attributes- the attributes to associate with the instance returned from this method
- Returns:
- the user profile instance
 
 - 
createUserProfile create(UserProfileContext context, Map<String,?> attributes, UserModel user) Creates a new UserProfileinstance for a givencontextandattributesfor update purposes.Instances created from this method are going to run validations and updates based on the given user. This might be useful when updating an existing user.- Parameters:
- context- the context
- attributes- the attributes to associate with the instance returned from this method
- user- the user to eventually update with the given- attributes
- Returns:
- the user profile instance
 
 - 
getConfigurationString getConfiguration() Get current UserProfile configuration. JSON formatted file is expected, but depends on the implementation.- Returns:
- current UserProfile configuration
- See Also:
- setConfiguration(String)
 
 - 
setConfigurationvoid setConfiguration(String configuration) Set new UserProfile configuration. It is persisted inside of the provider.- Parameters:
- configuration- to be set
- Throws:
- RuntimeException- if configuration is invalid (exact exception class depends on the implementation) or configuration can't be persisted.
- See Also:
- getConfiguration()
 
 
- 
 
-