java.lang.Object
de.hybris.platform.partytmfwebservices.v1.security.PmUserValidator

@Deprecated(since="2208") public class PmUserValidator extends Object
Deprecated.
2208
Validates if the authenticated user is authorized to access a resource
Since:
2108
  • Constructor Details

    • PmUserValidator

      public PmUserValidator(de.hybris.platform.servicelayer.user.UserService userService, PmIndividualService individualService, PmOrganizationService organizationService)
      Deprecated.
  • Method Details

    • isOwnerOfIndividual

      public boolean isOwnerOfIndividual(org.springframework.security.core.Authentication authentication, String individualId)
      Deprecated.
      Checks if the authorized client is allowed to access the requested individual.
      Parameters:
      authentication - The authenticated client
      individualId - The unique identifier of the individual
      Returns:
      True if the authorized client is able to access the resource, otherwise false
    • isOwnerOfOrganization

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

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

      protected PmIndividualService getIndividualService()
      Deprecated.
    • getOrganizationService

      protected PmOrganizationService getOrganizationService()
      Deprecated.