Class DefaultB2BUserGroupProvider

    • Constructor Detail

      • DefaultB2BUserGroupProvider

        public DefaultB2BUserGroupProvider()
    • Method Detail

      • isCurrentUserAuthorized

        public boolean isCurrentUserAuthorized()
        Description copied from interface: B2BUserGroupProvider
        Checks if current user belongs to at least one group that is authorized.
        Specified by:
        isCurrentUserAuthorized in interface B2BUserGroupProvider
        Returns:
        true if current user is authorized.
      • isUserAuthorized

        public boolean isUserAuthorized​(UserModel user)
        Description copied from interface: B2BUserGroupProvider
        Checks if given user belongs to at least one group that is authorized.
        Specified by:
        isUserAuthorized in interface B2BUserGroupProvider
        Parameters:
        user - to verify
        Returns:
        true if current user is authorized.
      • isUserAuthorized

        public boolean isUserAuthorized​(java.lang.String loginName)
        Description copied from interface: B2BUserGroupProvider
        Checks if given user belongs to at least one group that is authorized.
        Specified by:
        isUserAuthorized in interface B2BUserGroupProvider
        Parameters:
        loginName - (the user UID) to verify
        Returns:
        true if current user is authorized.
      • isUserEnabled

        public boolean isUserEnabled​(java.lang.String userId)
        Specified by:
        isUserEnabled in interface B2BUserGroupProvider
        Parameters:
        userId - the user UID
        Returns:
        true if user is active.
      • checkIfUserAuthorized

        protected boolean checkIfUserAuthorized​(UserModel user)
      • isUserAuthorizedToCheckOut

        public boolean isUserAuthorizedToCheckOut​(UserModel user)
        Description copied from interface: B2BUserGroupProvider
        Checks if given user belongs to at least one group that is authorized to checkout.
        Specified by:
        isUserAuthorizedToCheckOut in interface B2BUserGroupProvider
        Parameters:
        user - to verify
        Returns:
        true if current user is authorized.
      • isUserAuthorizedToCheckOut

        public boolean isUserAuthorizedToCheckOut​(java.lang.String loginName)
        Description copied from interface: B2BUserGroupProvider
        Checks if given user belongs to at least one group that is authorized to checkout.
        Specified by:
        isUserAuthorizedToCheckOut in interface B2BUserGroupProvider
        Parameters:
        loginName - (the user UID) to verify
        Returns:
        true if current user is authorized.
      • checkIfUserAuthorizedToCheckOut

        protected boolean checkIfUserAuthorizedToCheckOut​(UserModel user)
      • getAuthorizedGroupsToCheckOut

        public java.util.Set<java.lang.String> getAuthorizedGroupsToCheckOut()
      • setAuthorizedGroupsToCheckOut

        public void setAuthorizedGroupsToCheckOut​(java.util.Set<java.lang.String> authorizedGroupsToCheckOut)
      • getUserService

        protected UserService getUserService()
      • setUserService

        public void setUserService​(UserService userService)
      • getAuthorizedGroups

        protected java.util.Set<java.lang.String> getAuthorizedGroups()
      • setAuthorizedGroups

        public void setAuthorizedGroups​(java.util.Set<java.lang.String> authorizedGroups)