Class DefaultUserAttributesRequestHandler
java.lang.Object
com.broadleafcommerce.auth.user.service.DefaultUserAttributesRequestHandler
- All Implemented Interfaces:
UserAttributesRequestHandler
public class DefaultUserAttributesRequestHandler
extends Object
implements UserAttributesRequestHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected UserService<User>
void
handle
(UserAttributesRequest request) Puts the requested attributes into the attributes map for the specifiedUser
.protected void
putRequestedUserAttributes
(User user, Map<String, Object> attributesToAdd) Save the new attributes into theUser's
attributes map.protected User
readUserById
(String userId) Retrieve the requested User to add additional attributes.
-
Constructor Details
-
DefaultUserAttributesRequestHandler
-
-
Method Details
-
handle
Puts the requested attributes into the attributes map for the specifiedUser
.- Specified by:
handle
in interfaceUserAttributesRequestHandler
- Parameters:
request
- the request for adjusting attributes for a user- See Also:
-
readUserById
Retrieve the requested User to add additional attributes.- Parameters:
userId
- The user id- Returns:
- the user for which to add attributes
- Throws:
com.broadleafcommerce.data.tracking.core.exception.EntityMissingException
- if there was no user matching the supplied ID.
-
putRequestedUserAttributes
Save the new attributes into theUser's
attributes map.- Parameters:
user
- the user for which to add attributesattributesToAdd
- the attributes to add to a user
-
getUserService
-