Interface B2BUserGroupProvider

    • Method Detail

      • getAllowedUserGroup

        java.util.Set<java.lang.String> 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

        boolean isUserAuthorized​(UserModel user)
        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

        boolean isUserAuthorized​(java.lang.String loginName)
        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

        boolean isUserAuthorizedToCheckOut​(java.lang.String loginName)
        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

        boolean isUserAuthorizedToCheckOut​(UserModel user)
        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

        boolean isUserEnabled​(java.lang.String userId)
        Parameters:
        userId - the user UID
        Returns:
        true if user is active.