Class BmUserValidator
java.lang.Object
de.hybris.platform.billmanagementtmfwebservices.v2.security.BmUserValidator
Validates if the authenticated user is authorized to access a resource
- Since:
- 2208
-
Constructor Summary
ConstructorsConstructorDescriptionBmUserValidator(de.hybris.platform.servicelayer.user.UserService userService, TuaPartyBillService partyBillService, TuaPartyBillOnDemandService partyBillOnDemandService) -
Method Summary
Modifier and TypeMethodDescriptionprotected TuaPartyBillOnDemandServiceprotected TuaPartyBillServiceprotected de.hybris.platform.servicelayer.user.UserServicebooleanhasProperAuthorizationForParty(org.springframework.security.core.Authentication authentication, String relatedPartyId) booleanisBillOnDemandOwner(org.springframework.security.core.Authentication authentication, String customerBillOnDemandId) booleanisResourceOwner(org.springframework.security.core.Authentication authentication, String customerBillId)
-
Constructor Details
-
BmUserValidator
public BmUserValidator(de.hybris.platform.servicelayer.user.UserService userService, TuaPartyBillService partyBillService, TuaPartyBillOnDemandService partyBillOnDemandService)
-
-
Method Details
-
isResourceOwner
public boolean isResourceOwner(org.springframework.security.core.Authentication authentication, String customerBillId) -
isBillOnDemandOwner
public boolean isBillOnDemandOwner(org.springframework.security.core.Authentication authentication, String customerBillOnDemandId) -
hasProperAuthorizationForParty
public boolean hasProperAuthorizationForParty(org.springframework.security.core.Authentication authentication, String relatedPartyId) -
getUserService
protected de.hybris.platform.servicelayer.user.UserService getUserService() -
getPartyBillService
-
getPartyBillOnDemandService
-