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 protectedDefaultUserAccessor(com.atlassian.user.configuration.RepositoryAccessor repositoryAccessor)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanauthenticate(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 aSearchResultobject 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.AuthenticatorgetAuthenticator()Deprecated.protected com.atlassian.user.search.query.EntityQueryParsergetEntityQueryParser()Deprecated.protected com.atlassian.user.GroupManagergetGroupManager()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.UsergetUser(String name)Deprecated.since 5.2.protected com.atlassian.user.UserManagergetUserManager()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.booleanhasMembership(com.atlassian.user.Group group, com.atlassian.user.User user)Deprecated.Returnstrueif 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).booleanhasMembership(String groupName, String username)Deprecated.Returnstrueif 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:UserAccessorReturns 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:
getUserNamesin interfaceUserAccessor
-
getUsers
public com.atlassian.user.search.page.Pager<com.atlassian.user.User> getUsers()
Deprecated.Description copied from interface:UserAccessorReturns 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:
getUsersin 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:UserAccessorReturns the user with the specified name, ornullif 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:
getUserin interfaceUserAccessor
-
getGroups
public com.atlassian.user.search.page.Pager<com.atlassian.user.Group> getGroups()
Deprecated.Description copied from interface:UserAccessorReturns 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:
getGroupsin 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.EntityExceptionDeprecated.Generates aSearchResultobject 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:
findGroupsin 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.EntityExceptionDeprecated.Allows specification ofQueryContext.- Specified by:
findUsersin 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.EntityExceptionDeprecated.Allows specification ofQueryContext.- Specified by:
findGroupsin 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:
getGroupsin interfaceUserAccessor
-
hasMembership
public boolean hasMembership(com.atlassian.user.Group group, com.atlassian.user.User user)Deprecated.Description copied from interface:UserAccessorReturnstrueif 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:
hasMembershipin interfaceUserAccessor
-
hasMembership
public boolean hasMembership(String groupName, String username)
Deprecated.Description copied from interface:UserAccessorReturnstrueif 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:
hasMembershipin interfaceUserAccessor
-
authenticate
public boolean authenticate(String username, String password)
Deprecated.- Specified by:
authenticatein 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.
-
-