Class PrUserValidator
java.lang.Object
de.hybris.platform.partyroletmfwebservices.v2.security.PrUserValidator
Validates if the authenticated user is authorized to access a resource
- Since:
- 2208
-
Constructor Summary
ConstructorsConstructorDescriptionPrUserValidator(de.hybris.platform.servicelayer.user.UserService userService, TuaPartyRoleService partyRoleService) -
Method Summary
Modifier and TypeMethodDescriptionprotected TuaPartyRoleServiceprotected de.hybris.platform.servicelayer.user.UserServicebooleanisOwnerOfPartyRole(org.springframework.security.core.Authentication authentication, String partyRoleId) Checks if the authorized client is allowed to access the requested party role.
-
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 clientpartyRoleId- 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
-