java.lang.Object
de.hybris.platform.partyroletmfwebservices.v2.security.PrUserValidator

public class PrUserValidator extends Object
Validates if the authenticated user is authorized to access a resource
Since:
2208
  • Constructor Details

    • PrUserValidator

      public PrUserValidator(de.hybris.platform.servicelayer.user.UserService userService, TuaPartyRoleService partyRoleService)
  • Method Details

    • isOwnerOfPartyRole

      public boolean isOwnerOfPartyRole(org.springframework.security.core.Authentication authentication, String partyRoleId)
      Checks if the authorized client is allowed to access the requested party role.
      Parameters:
      authentication - The authenticated client
      partyRoleId - The unique identifier of the party role
      Returns:
      True if the authorized client is able to access the resource, otherwise false
    • getUserService

      protected de.hybris.platform.servicelayer.user.UserService getUserService()
    • getPartyRoleService

      protected TuaPartyRoleService getPartyRoleService()