Class AgrUserValidator
java.lang.Object
de.hybris.platform.agreementtmfwebservices.v2.security.AgrUserValidator
Validates if the authenticated user is authorized to access a resource
- Since:
- 2208
-
Constructor Summary
ConstructorsConstructorDescriptionAgrUserValidator(de.hybris.platform.servicelayer.user.UserService userService, TuaAgreementsService agreementsService, TuaAgreementSpecificationService agreementSpecificationService) -
Method Summary
Modifier and TypeMethodDescriptionprotected TuaAgreementSpecificationServiceprotected TuaAgreementsServiceprotected de.hybris.platform.servicelayer.user.UserServicebooleanisAgreementOwner(org.springframework.security.core.Authentication authentication, String agreementId) booleanisAgreementSpecificationOwner(org.springframework.security.core.Authentication authentication, String agreementSpecificationId)
-
Constructor Details
-
AgrUserValidator
public AgrUserValidator(de.hybris.platform.servicelayer.user.UserService userService, TuaAgreementsService agreementsService, TuaAgreementSpecificationService agreementSpecificationService)
-
-
Method Details
-
isAgreementOwner
public boolean isAgreementOwner(org.springframework.security.core.Authentication authentication, String agreementId) -
isAgreementSpecificationOwner
public boolean isAgreementSpecificationOwner(org.springframework.security.core.Authentication authentication, String agreementSpecificationId) -
getUserService
protected de.hybris.platform.servicelayer.user.UserService getUserService() -
getAgreementsService
-
getAgreementSpecificationService
-