Package bucket.user
Class DefaultUserAccessor
- java.lang.Object
-
- bucket.user.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. Usecom.atlassian.confluence.user.UserAccessor
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DefaultUserAccessor(com.atlassian.user.configuration.RepositoryAccessor repositoryAccessor)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
authenticate(String username, String password)
Deprecated.com.atlassian.user.search.SearchResult<com.atlassian.user.Group>
findGroups(com.atlassian.user.search.query.Query<com.atlassian.user.Group> query)
Deprecated.Generates aSearchResult
object for each repository the entityQueryParser can search.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)
Deprecated.Allows specification ofQueryContext
.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)
Deprecated.Allows specification ofQueryContext
.protected com.atlassian.user.security.authentication.Authenticator
getAuthenticator()
Deprecated.protected com.atlassian.user.search.query.EntityQueryParser
getEntityQueryParser()
Deprecated.protected com.atlassian.user.GroupManager
getGroupManager()
Deprecated.com.atlassian.user.search.page.Pager<com.atlassian.user.Group>
getGroups()
Deprecated.Returns a pager of all groups in the system.com.atlassian.user.search.page.Pager<com.atlassian.user.Group>
getGroups(com.atlassian.user.User user)
Deprecated.@Nullable com.atlassian.user.User
getUser(String name)
Deprecated.since 5.2.protected com.atlassian.user.UserManager
getUserManager()
Deprecated.com.atlassian.user.search.page.Pager<String>
getUserNames()
Deprecated.Returns a pager of all usernames in the system.com.atlassian.user.search.page.Pager<com.atlassian.user.User>
getUsers()
Deprecated.Returns a pager of all users in the system.boolean
hasMembership(com.atlassian.user.Group group, com.atlassian.user.User user)
Deprecated.Returnstrue
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).boolean
hasMembership(String groupName, String username)
Deprecated.Returnstrue
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).-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface bucket.user.UserAccessor
addGroup, addMembership, addMembership, addUser, addUser, alterPassword, createGroup, createUser, deactivateUser, findUsers, getGroup, getGroupCreateIfNecessary, getMemberNames, getPropertySet, getUserPreferences, getUsersByEmail, isDeactivated, isDeactivated, isLicensedToAddMoreUsers, isUserRemovable, reactivateUser, removeGroup, removeMembership, removeMembership, removeUser, saveUser
-
-
-
-
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 usingUserAccessor.findUsers(Query)
or the CrowdService API instead.- Specified by:
getUserNames
in interfaceUserAccessor
-
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 usingUserAccessor.findUsers(Query)
or the CrowdService API instead.- Specified by:
getUsers
in interfaceUserAccessor
-
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, ornull
if the user doesn't exist or the name isnull
. 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 interfaceUserAccessor
-
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 usingEntityQueryParser.findGroups(Query)
or the CrowdService API instead.- Specified by:
getGroups
in interfaceUserAccessor
-
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 aSearchResult
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 interfacecom.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 ofQueryContext
.- Specified by:
findUsers
in interfacecom.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 ofQueryContext
.- Specified by:
findGroups
in interfacecom.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 interfaceUserAccessor
-
hasMembership
public boolean hasMembership(com.atlassian.user.Group group, com.atlassian.user.User user)
Deprecated.Description copied from interface:UserAccessor
Returnstrue
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, returnsfalse
.- Specified by:
hasMembership
in interfaceUserAccessor
-
hasMembership
public boolean hasMembership(String groupName, String username)
Deprecated.Description copied from interface:UserAccessor
Returnstrue
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, returnsfalse
.- Specified by:
hasMembership
in interfaceUserAccessor
-
authenticate
public boolean authenticate(String username, String password)
Deprecated.- Specified by:
authenticate
in interfaceUserAccessor
-
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.
-
-