public class DefaultB2BUserGroupProvider extends java.lang.Object implements B2BUserGroupProvider
| Constructor and Description |
|---|
DefaultB2BUserGroupProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkIfUserAuthorized(UserModel user) |
protected boolean |
checkIfUserAuthorizedToCheckOut(UserModel user) |
java.util.Set<java.lang.String> |
getAllowedUserGroup() |
protected java.util.Set<java.lang.String> |
getAuthorizedGroups() |
java.util.Set<java.lang.String> |
getAuthorizedGroupsToCheckOut() |
B2BCustomerService<B2BCustomerModel,B2BUnitModel> |
getB2BCustomerService() |
protected UserService |
getUserService() |
boolean |
isCurrentUserAuthorized()
Checks if current user belongs to at least one group that is authorized.
|
boolean |
isCurrentUserAuthorizedToCheckOut()
Checks if current user belongs to at least one group that is authorized to checkout.
|
boolean |
isUserAuthorized(java.lang.String loginName)
Checks if given user belongs to at least one group that is authorized.
|
boolean |
isUserAuthorized(UserModel user)
Checks if given user belongs to at least one group that is authorized.
|
boolean |
isUserAuthorizedToCheckOut(java.lang.String loginName)
Checks if given user belongs to at least one group that is authorized to checkout.
|
boolean |
isUserAuthorizedToCheckOut(UserModel user)
Checks if given user belongs to at least one group that is authorized to checkout.
|
boolean |
isUserEnabled(java.lang.String userId) |
void |
setAuthorizedGroups(java.util.Set<java.lang.String> authorizedGroups) |
void |
setAuthorizedGroupsToCheckOut(java.util.Set<java.lang.String> authorizedGroupsToCheckOut) |
void |
setB2BCustomerService(B2BCustomerService<B2BCustomerModel,B2BUnitModel> b2bCustomerService) |
void |
setUserService(UserService userService) |
public java.util.Set<java.lang.String> getAllowedUserGroup()
getAllowedUserGroup in interface B2BUserGroupProviderpublic boolean isCurrentUserAuthorized()
B2BUserGroupProviderisCurrentUserAuthorized in interface B2BUserGroupProviderpublic boolean isUserAuthorized(UserModel user)
B2BUserGroupProviderisUserAuthorized in interface B2BUserGroupProvideruser - to verifypublic boolean isUserAuthorized(java.lang.String loginName)
B2BUserGroupProviderisUserAuthorized in interface B2BUserGroupProviderloginName - (the user UID) to verifypublic boolean isUserEnabled(java.lang.String userId)
isUserEnabled in interface B2BUserGroupProvideruserId - the user UIDprotected boolean checkIfUserAuthorized(UserModel user)
public boolean isCurrentUserAuthorizedToCheckOut()
B2BUserGroupProviderisCurrentUserAuthorizedToCheckOut in interface B2BUserGroupProviderpublic boolean isUserAuthorizedToCheckOut(UserModel user)
B2BUserGroupProviderisUserAuthorizedToCheckOut in interface B2BUserGroupProvideruser - to verifypublic boolean isUserAuthorizedToCheckOut(java.lang.String loginName)
B2BUserGroupProviderisUserAuthorizedToCheckOut in interface B2BUserGroupProviderloginName - (the user UID) to verifyprotected boolean checkIfUserAuthorizedToCheckOut(UserModel user)
public java.util.Set<java.lang.String> getAuthorizedGroupsToCheckOut()
public void setAuthorizedGroupsToCheckOut(java.util.Set<java.lang.String> authorizedGroupsToCheckOut)
protected UserService getUserService()
public void setUserService(UserService userService)
protected java.util.Set<java.lang.String> getAuthorizedGroups()
public void setAuthorizedGroups(java.util.Set<java.lang.String> authorizedGroups)
public B2BCustomerService<B2BCustomerModel,B2BUnitModel> getB2BCustomerService()
public void setB2BCustomerService(B2BCustomerService<B2BCustomerModel,B2BUnitModel> b2bCustomerService)
Copyright © 2018 SAP SE. All Rights Reserved.