Class AbstractUserSourceProfile

    • Method Detail

      • addRole

        public void addRole​(java.lang.String groupName,
                            UICallback ui)
                     throws java.lang.Exception
        Specified by:
        addRole in interface UserSourceProfile
        Throws:
        java.lang.Exception
      • removeRole

        public void removeRole​(java.lang.String groupName,
                               UICallback ui)
                        throws java.lang.Exception
        Specified by:
        removeRole in interface UserSourceProfile
        Throws:
        java.lang.Exception
      • renameRole

        public void renameRole​(java.lang.String oldName,
                               java.lang.String newName,
                               UICallback ui)
                        throws java.lang.Exception
        Specified by:
        renameRole in interface UserSourceProfile
        Throws:
        java.lang.Exception
      • alterPassword

        public void alterPassword​(User user,
                                  java.lang.String oldPassword,
                                  java.lang.String newPassword)
                           throws java.lang.Exception
        Specified by:
        alterPassword in interface UserSourceProfile
        Throws:
        java.lang.Exception
      • getUser

        @Nonnull
        public java.util.Optional<User> getUser​(java.lang.String userName)
                                         throws java.lang.Exception
        Description copied from interface: UserSourceProfile
        Fetch a User with the given user name. If more than one user exists with the given user name, the first user returned from the underlying data source is returned.
        Specified by:
        getUser in interface UserSourceProfile
        Parameters:
        userName - the user name of the User to fetch
        Returns:
        an Optional User with the given user name
        Throws:
        java.lang.Exception - if there is an unexpected problem fetching the user with the given user name