Class UserUIDMatchingStrategy

java.lang.Object
de.hybris.platform.commerceservices.strategies.impl.user.UserUIDMatchingStrategy
All Implemented Interfaces:
UserPropertyMatchingStrategy

public class UserUIDMatchingStrategy extends Object implements UserPropertyMatchingStrategy
Matches the user by the uid
  • Constructor Details

    • UserUIDMatchingStrategy

      public UserUIDMatchingStrategy(UserService userService)
  • Method Details

    • getUserByProperty

      public <T extends UserModel> Optional<T> getUserByProperty(String propertyValue, Class<T> clazz)
      Description copied from interface: UserPropertyMatchingStrategy
      Gets the user by the unique property and return as a specified class model
      Specified by:
      getUserByProperty in interface UserPropertyMatchingStrategy
      Type Parameters:
      T - type of returned user model
      Parameters:
      propertyValue - a unique property value for identify a user
      clazz - class of returned user model
      Returns:
      optional with the found user or empty if not found or not supported class model
    • getUserService

      protected UserService getUserService()