Interface B2BUserGroupProvider
- All Known Implementing Classes:
DefaultB2BUserGroupProvider
public interface B2BUserGroupProvider
Provider for B2b User group.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if current user belongs to at least one group that is authorized.booleanChecks if current user belongs to at least one group that is authorized to checkout.booleanisUserAuthorized(UserModel user) Checks if given user belongs to at least one group that is authorized.booleanisUserAuthorized(String loginName) Checks if given user belongs to at least one group that is authorized.booleanChecks if given user belongs to at least one group that is authorized to checkout.booleanisUserAuthorizedToCheckOut(String loginName) Checks if given user belongs to at least one group that is authorized to checkout.booleanisUserEnabled(String userId)
-
Method Details
-
getAllowedUserGroup
- Returns:
- authorized user groups
-
isCurrentUserAuthorized
boolean isCurrentUserAuthorized()Checks if current user belongs to at least one group that is authorized.- Returns:
- true if current user is authorized.
-
isUserAuthorized
Checks if given user belongs to at least one group that is authorized.- Parameters:
user- to verify- Returns:
- true if current user is authorized.
-
isUserAuthorized
Checks if given user belongs to at least one group that is authorized.- Parameters:
loginName- (the user UID) to verify- Returns:
- true if current user is authorized.
-
isUserAuthorizedToCheckOut
Checks if given user belongs to at least one group that is authorized to checkout.- Parameters:
loginName- (the user UID) to verify- Returns:
- true if current user is authorized.
-
isUserAuthorizedToCheckOut
Checks if given user belongs to at least one group that is authorized to checkout.- Parameters:
user- to verify- Returns:
- true if current user is authorized.
-
isCurrentUserAuthorizedToCheckOut
boolean isCurrentUserAuthorizedToCheckOut()Checks if current user belongs to at least one group that is authorized to checkout.- Returns:
- true if current user is authorized.
-
isUserEnabled
- Parameters:
userId- the user UID- Returns:
- true if user is active.
-