Class DefaultUserAttributesRequestHandler

    • Constructor Detail

      • DefaultUserAttributesRequestHandler

        public DefaultUserAttributesRequestHandler​(UserService<User> userService)
    • Method Detail

      • readUserById

        protected User readUserById​(String userId)
        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

        protected void putRequestedUserAttributes​(User user,
                                                  Map<String,​Object> attributesToAdd)
        Save the new attributes into the User's attributes map.
        Parameters:
        user - the user for which to add attributes
        attributesToAdd - the attributes to add to a user