com.atlassian.confluence.user.UserAccessor
@Deprecated public interface UserAccessor extends com.atlassian.user.search.query.EntityQueryParser
User
, Group
, or membership. It is also capable
of relaying Query
objects to underlying components which can generate SearchResult
objects in reply.Modifier and Type | Method and Description |
---|---|
com.atlassian.user.Group |
addGroup(String name)
Deprecated.
Creates a group with the specified name and returns it.
|
void |
addMembership(com.atlassian.user.Group group,
com.atlassian.user.User user)
Deprecated.
|
void |
addMembership(String groupname,
String username)
Deprecated.
|
com.atlassian.user.User |
addUser(String username,
String password,
String email,
String fullname)
Deprecated.
since 3.5 use
createUser(User, Credential) |
com.atlassian.user.User |
addUser(String username,
String password,
String email,
String fullname,
String[] groups)
Deprecated.
since 3.5 use
createUser(User, Credential) and addMembership(Group, User) |
void |
alterPassword(com.atlassian.user.User user,
String plainTextPassword)
Deprecated.
|
boolean |
authenticate(String username,
String password)
Deprecated.
|
com.atlassian.user.Group |
createGroup(String groupname)
Deprecated.
|
com.atlassian.user.User |
createUser(com.atlassian.user.User userTemplate,
com.atlassian.user.security.password.Credential password)
Deprecated.
|
void |
deactivateUser(com.atlassian.user.User user)
Deprecated.
Deactivate the specified user, which prevents them logging in.
|
com.atlassian.user.search.SearchResult<com.atlassian.user.User> |
findUsers(com.atlassian.user.search.query.Query<com.atlassian.user.User> search)
Deprecated.
|
com.atlassian.user.Group |
getGroup(String name)
Deprecated.
Returns the group with the specified name, or
null if the user doesn't exist or the name is null . |
com.atlassian.user.Group |
getGroupCreateIfNecessary(String name)
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.
|
com.atlassian.user.search.page.Pager<String> |
getMemberNames(com.atlassian.user.Group group)
Deprecated.
Returns a pager containing the usernames of users who are members of the specified group
(either directly or as a member of a nested group).
|
com.opensymphony.module.propertyset.PropertySet |
getPropertySet(com.atlassian.user.User user)
Deprecated.
since 7.7. Plugins should use
UserSettingsService |
com.atlassian.user.User |
getUser(String name)
Deprecated.
Returns the user with the specified name, or
null if the user doesn't exist or the name is null . |
com.atlassian.user.search.page.Pager<String> |
getUserNames()
Deprecated.
Returns a pager of all usernames in the system.
|
com.atlassian.core.user.preferences.UserPreferences |
getUserPreferences(com.atlassian.user.User user)
Deprecated.
since 7.7. Plugins should use
UserSettingsService |
com.atlassian.user.search.page.Pager<com.atlassian.user.User> |
getUsers()
Deprecated.
Returns a pager of all users in the system.
|
com.atlassian.user.search.SearchResult |
getUsersByEmail(String email)
Deprecated.
|
com.atlassian.user.search.page.Pager<com.atlassian.user.User> |
getUsersWithConfluenceAccess()
Deprecated.
since 3.5.1. This method is very slow, use countUsersWithConfluenceAccess() if you need to know the number of users.
|
boolean |
hasMembership(com.atlassian.user.Group group,
com.atlassian.user.User user)
Deprecated.
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). |
boolean |
hasMembership(String groupName,
String username)
Deprecated.
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). |
boolean |
isDeactivated(String username)
Deprecated.
Returns true if the user with the specified username exists and is unable to log in, otherwise false.
|
boolean |
isDeactivated(com.atlassian.user.User user)
Deprecated.
Returns true if the user exists and is unable to log in, otherwise false.
|
boolean |
isLicensedToAddMoreUsers()
Deprecated.
|
boolean |
isUserRemovable(com.atlassian.user.User user)
Deprecated.
|
void |
reactivateUser(com.atlassian.user.User user)
Deprecated.
Marks the specified user as active, which allows them to log in.
|
void |
removeGroup(com.atlassian.user.Group group)
Deprecated.
Removes the specified group.
|
boolean |
removeMembership(com.atlassian.user.Group group,
com.atlassian.user.User user)
Deprecated.
|
boolean |
removeMembership(String groupname,
String username)
Deprecated.
|
void |
removeUser(com.atlassian.user.User user)
Deprecated.
Removes the specified user.
|
void |
saveUser(com.atlassian.user.User user)
Deprecated.
Persists changes made to a user (e.g.
|
@Deprecated com.atlassian.user.User addUser(String username, String password, String email, String fullname, String[] groups)
createUser(User, Credential)
and addMembership(Group, User)
@Deprecated com.atlassian.user.User addUser(String username, String password, String email, String fullname)
createUser(User, Credential)
com.atlassian.user.User getUser(String name)
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.com.atlassian.user.search.page.Pager<String> getUserNames()
findUsers(Query)
or the CrowdService API instead.com.atlassian.user.search.page.Pager<com.atlassian.user.User> getUsers()
findUsers(Query)
or the CrowdService API instead.com.atlassian.user.Group getGroup(String name)
null
if the user doesn't exist or the name is null
.com.atlassian.user.search.page.Pager<com.atlassian.user.Group> getGroups()
EntityQueryParser.findGroups(Query)
or the CrowdService API instead.com.atlassian.user.Group addGroup(String name)
IllegalArgumentException
- if the group name is empty or nullcom.atlassian.core.exception.InfrastructureException
- if the group could not be createdvoid removeGroup(com.atlassian.user.Group group)
com.atlassian.core.exception.InfrastructureException
- if the group could not be removedvoid removeUser(com.atlassian.user.User user) throws com.atlassian.core.exception.InfrastructureException
com.atlassian.core.exception.InfrastructureException
- if the user could not be removedcom.atlassian.user.Group getGroupCreateIfNecessary(String name)
@Deprecated com.atlassian.core.user.preferences.UserPreferences getUserPreferences(com.atlassian.user.User user)
UserSettingsService
void saveUser(com.atlassian.user.User user)
com.atlassian.core.exception.InfrastructureException
- if the user could not be updated successfullycom.atlassian.user.search.SearchResult getUsersByEmail(String email)
void deactivateUser(com.atlassian.user.User user)
void reactivateUser(com.atlassian.user.User user)
@Deprecated com.atlassian.user.search.page.Pager<com.atlassian.user.User> getUsersWithConfluenceAccess()
boolean isLicensedToAddMoreUsers()
boolean isUserRemovable(com.atlassian.user.User user) throws com.atlassian.user.EntityException
com.atlassian.user.EntityException
com.atlassian.user.search.page.Pager<com.atlassian.user.Group> getGroups(com.atlassian.user.User user)
boolean hasMembership(com.atlassian.user.Group group, com.atlassian.user.User user)
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
.boolean hasMembership(String groupName, String username)
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
.void addMembership(com.atlassian.user.Group group, com.atlassian.user.User user)
boolean removeMembership(com.atlassian.user.Group group, com.atlassian.user.User user)
@Deprecated com.opensymphony.module.propertyset.PropertySet getPropertySet(com.atlassian.user.User user)
UserSettingsService
com.atlassian.user.search.page.Pager<String> getMemberNames(com.atlassian.user.Group group)
com.atlassian.user.User createUser(com.atlassian.user.User userTemplate, com.atlassian.user.security.password.Credential password)
com.atlassian.user.Group createGroup(String groupname)
boolean isDeactivated(com.atlassian.user.User user)
boolean isDeactivated(String username)
com.atlassian.user.search.SearchResult<com.atlassian.user.User> findUsers(com.atlassian.user.search.query.Query<com.atlassian.user.User> search) throws com.atlassian.user.EntityException
findUsers
in interface com.atlassian.user.search.query.EntityQueryParser
com.atlassian.user.EntityException
void alterPassword(com.atlassian.user.User user, String plainTextPassword) throws com.atlassian.user.EntityException
com.atlassian.user.EntityException
Copyright © 2003–2020 Atlassian. All rights reserved.