public class DefaultUserAttributesRequestHandler extends Object implements UserAttributesRequestHandler
Constructor and Description |
---|
DefaultUserAttributesRequestHandler(UserService<User> userService) |
Modifier and Type | Method and Description |
---|---|
protected UserService<User> |
getUserService() |
void |
handle(UserAttributesRequest request)
Puts the requested attributes into the attributes map for the specified
User . |
protected void |
putRequestedUserAttributes(User user,
Map<String,Object> attributesToAdd)
Save the new attributes into the
User's attributes map. |
protected User |
readUserById(String userId)
Retrieve the requested User to add additional attributes.
|
public DefaultUserAttributesRequestHandler(UserService<User> userService)
public void handle(UserAttributesRequest request)
User
.handle
in interface UserAttributesRequestHandler
request
- the request for adjusting attributes for a userUser.getAttributes()
protected User readUserById(String userId)
userId
- The user idcom.broadleafcommerce.data.tracking.core.exception.EntityMissingException
- if there was no user matching the supplied ID.protected void putRequestedUserAttributes(User user, Map<String,Object> attributesToAdd)
User's
attributes map.user
- the user for which to add attributesattributesToAdd
- the attributes to add to a userprotected UserService<User> getUserService()
Copyright © 2021. All rights reserved.