Class PmUserValidator
java.lang.Object
de.hybris.platform.partytmfwebservices.v1.security.PmUserValidator
Deprecated.
2208
Validates if the authenticated user is authorized to access a resource
- Since:
- 2108
-
Constructor Summary
ConstructorsConstructorDescriptionPmUserValidator(de.hybris.platform.servicelayer.user.UserService userService, PmIndividualService individualService, PmOrganizationService organizationService) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected PmIndividualServiceDeprecated.protected PmOrganizationServiceDeprecated.protected de.hybris.platform.servicelayer.user.UserServiceDeprecated.booleanisOwnerOfIndividual(org.springframework.security.core.Authentication authentication, String individualId) Deprecated.Checks if the authorized client is allowed to access the requested individual.booleanisOwnerOfOrganization(org.springframework.security.core.Authentication authentication, String organizationId) Deprecated.Checks if the authorized client is allowed to access the requested organization.
-
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 clientindividualId- 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 clientorganizationId- 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
Deprecated. -
getOrganizationService
Deprecated.
-