Package bucket.user

Class DefaultUserAccessor

  • All Implemented Interfaces:
    UserAccessor, com.atlassian.user.search.query.EntityQueryParser
    Direct Known Subclasses:
    DefaultUserAccessor

    @Deprecated
    @Transactional
    public abstract class DefaultUserAccessor
    extends Object
    implements UserAccessor
    Deprecated.
    since 6.10.0. Use com.atlassian.confluence.user.UserAccessor
    • Constructor Detail

      • DefaultUserAccessor

        protected DefaultUserAccessor​(com.atlassian.user.configuration.RepositoryAccessor repositoryAccessor)
        Deprecated.
    • Method Detail

      • getUserNames

        public com.atlassian.user.search.page.Pager<String> getUserNames()
        Deprecated.
        Description copied from interface: UserAccessor
        Returns a pager of all usernames in the system. Clients should not normally use this method, but perform a search using UserAccessor.findUsers(Query) or the CrowdService API instead.
        Specified by:
        getUserNames in interface UserAccessor
      • getUsers

        public com.atlassian.user.search.page.Pager<com.atlassian.user.User> getUsers()
        Deprecated.
        Description copied from interface: UserAccessor
        Returns a pager of all users in the system. Clients should not normally use this method, but perform a search using UserAccessor.findUsers(Query) or the CrowdService API instead.
        Specified by:
        getUsers in interface UserAccessor
      • getUser

        @Deprecated
        public @Nullable com.atlassian.user.User getUser​(String name)
        Deprecated.
        since 5.2. Use Confluence core UserAccessor.getUserByName(String) instead.
        Description copied from interface: UserAccessor
        Returns the user with the specified name, or null if the user doesn't exist or the name is null. Note that username lookups are case-insensitive, so the user you get back may not have exactly the same name as the name passed to this method.
        Specified by:
        getUser in interface UserAccessor
      • getGroups

        public com.atlassian.user.search.page.Pager<com.atlassian.user.Group> getGroups()
        Deprecated.
        Description copied from interface: UserAccessor
        Returns a pager of all groups in the system. Clients should not normally use this method, but perform a search using EntityQueryParser.findGroups(Query) or the CrowdService API instead.
        Specified by:
        getGroups in interface UserAccessor
      • findGroups

        public com.atlassian.user.search.SearchResult<com.atlassian.user.Group> findGroups​(com.atlassian.user.search.query.Query<com.atlassian.user.Group> query)
                                                                                    throws com.atlassian.user.EntityException
        Deprecated.
        Generates a SearchResult object for each repository the entityQueryParser can search. These are grouped in an array and returned.

        Thus, if the entityQueryParser only knows about one configuration, the array will either have a size of 0 (no sucesses) or 1.

        Specified by:
        findGroups in interface com.atlassian.user.search.query.EntityQueryParser
        Throws:
        com.atlassian.user.EntityException
      • findUsers

        public com.atlassian.user.search.SearchResult<com.atlassian.user.User> findUsers​(com.atlassian.user.search.query.Query<com.atlassian.user.User> query,
                                                                                         com.atlassian.user.search.query.QueryContext context)
                                                                                  throws com.atlassian.user.EntityException
        Deprecated.
        Allows specification of QueryContext.
        Specified by:
        findUsers in interface com.atlassian.user.search.query.EntityQueryParser
        Throws:
        com.atlassian.user.EntityException
      • findGroups

        public com.atlassian.user.search.SearchResult<com.atlassian.user.Group> findGroups​(com.atlassian.user.search.query.Query<com.atlassian.user.Group> query,
                                                                                           com.atlassian.user.search.query.QueryContext context)
                                                                                    throws com.atlassian.user.EntityException
        Deprecated.
        Allows specification of QueryContext.
        Specified by:
        findGroups in interface com.atlassian.user.search.query.EntityQueryParser
        Throws:
        com.atlassian.user.EntityException
      • getGroups

        public com.atlassian.user.search.page.Pager<com.atlassian.user.Group> getGroups​(com.atlassian.user.User user)
        Deprecated.
        Specified by:
        getGroups in interface UserAccessor
      • hasMembership

        public boolean hasMembership​(com.atlassian.user.Group group,
                                     com.atlassian.user.User user)
        Deprecated.
        Description copied from interface: UserAccessor
        Returns true if the specified user and group both exist, and the user is a member of the group (either directly or as a member of a nested group). In all other circumstances, returns false.
        Specified by:
        hasMembership in interface UserAccessor
      • hasMembership

        public boolean hasMembership​(String groupName,
                                     String username)
        Deprecated.
        Description copied from interface: UserAccessor
        Returns true if the specified user and group both exist, and the user is a member of the group (either directly or as a member of a nested group). In all other circumstances, returns false.
        Specified by:
        hasMembership in interface UserAccessor
      • getUserManager

        protected com.atlassian.user.UserManager getUserManager()
        Deprecated.
      • getGroupManager

        protected com.atlassian.user.GroupManager getGroupManager()
        Deprecated.
      • getAuthenticator

        protected com.atlassian.user.security.authentication.Authenticator getAuthenticator()
        Deprecated.
      • getEntityQueryParser

        protected com.atlassian.user.search.query.EntityQueryParser getEntityQueryParser()
        Deprecated.