Package bucket.user
Interface UserAccessor
- All Superinterfaces:
com.atlassian.user.search.query.EntityQueryParser
- All Known Subinterfaces:
UserAccessor,UserAccessorInternal
- All Known Implementing Classes:
DefaultUserAccessor,DefaultUserAccessor,ReadOnlyUserAccessor
Deprecated.
Facade which controls calls relating to
User, Group, or membership. It is also capable
of relaying Query objects to underlying components which can generate SearchResult objects in reply.-
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.user.GroupDeprecated.Creates a group with the specified name and returns it.voidaddMembership(com.atlassian.user.Group group, com.atlassian.user.User user) Deprecated.voidaddMembership(String groupname, String username) Deprecated.com.atlassian.user.UserDeprecated.since 3.5 usecreateUser(User, Credential)com.atlassian.user.UserDeprecated.since 3.5 usecreateUser(User, Credential)andaddMembership(Group, User)voidalterPassword(com.atlassian.user.User user, String plainTextPassword) Deprecated.booleanauthenticate(String username, String password) Deprecated.com.atlassian.user.GroupcreateGroup(String groupname) Deprecated.com.atlassian.user.UsercreateUser(com.atlassian.user.User userTemplate, com.atlassian.user.security.password.Credential password) Deprecated.voiddeactivateUser(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.GroupDeprecated.Returns the group with the specified name, ornullif the user doesn't exist or the name isnull.com.atlassian.user.GroupDeprecated.com.atlassian.user.search.page.Pager<com.atlassian.user.Group>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.PropertySetgetPropertySet(com.atlassian.user.User user) Deprecated, for removal: This API element is subject to removal in a future version.since 7.7, for removal in 10.0.com.atlassian.user.UserDeprecated.Returns the user with the specified name, ornullif the user doesn't exist or the name isnull.com.atlassian.user.search.page.Pager<String>Deprecated.Returns a pager of all usernames in the system.getUserPreferences(com.atlassian.user.User user) Deprecated, for removal: This API element is subject to removal in a future version.since 7.7, for removal in 10.0.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<com.atlassian.user.User>getUsersByEmail(String email) Deprecated.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).booleanisDeactivated(com.atlassian.user.User user) Deprecated.Returns true if the user exists and is unable to log in, otherwise false.booleanisDeactivated(String username) Deprecated.Returns true if the user with the specified username exists and is unable to log in, otherwise false.booleanDeprecated.booleanisUserRemovable(com.atlassian.user.User user) Deprecated.voidreactivateUser(com.atlassian.user.User user) Deprecated.Marks the specified user as active, which allows them to log in.voidremoveGroup(com.atlassian.user.Group group) Deprecated.Removes the specified group.booleanremoveMembership(com.atlassian.user.Group group, com.atlassian.user.User user) Deprecated.booleanremoveMembership(String groupname, String username) Deprecated.voidremoveUser(com.atlassian.user.User user) Deprecated.Removes the specified user.voidsaveUser(com.atlassian.user.User user) Deprecated.Persists changes made to a user (e.g.Methods inherited from interface com.atlassian.user.search.query.EntityQueryParser
findGroups, findGroups, findUsers
-
Method Details
-
addUser
@Deprecated com.atlassian.user.User addUser(String username, String password, String email, String fullname, String[] groups) Deprecated.since 3.5 usecreateUser(User, Credential)andaddMembership(Group, User) -
addUser
@Deprecated com.atlassian.user.User addUser(String username, String password, String email, String fullname) Deprecated.since 3.5 usecreateUser(User, Credential) -
getUser
Deprecated.Returns 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. -
getUserNames
com.atlassian.user.search.page.Pager<String> getUserNames()Deprecated.Returns a pager of all usernames in the system. Clients should not normally use this method, but perform a search usingfindUsers(Query)or the CrowdService API instead. -
getUsers
com.atlassian.user.search.page.Pager<com.atlassian.user.User> getUsers()Deprecated.Returns a pager of all users in the system. Clients should not normally use this method, but perform a search usingfindUsers(Query)or the CrowdService API instead. -
getGroup
Deprecated.Returns the group with the specified name, ornullif the user doesn't exist or the name isnull. -
getGroups
com.atlassian.user.search.page.Pager<com.atlassian.user.Group> getGroups()Deprecated.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. -
addGroup
Deprecated.Creates a group with the specified name and returns it.- Throws:
IllegalArgumentException- if the group name is empty or nullcom.atlassian.core.exception.InfrastructureException- if the group could not be created
-
removeGroup
void removeGroup(com.atlassian.user.Group group) Deprecated.Removes the specified group. Does nothing if the group does not exist.- Throws:
com.atlassian.core.exception.InfrastructureException- if the group could not be removed
-
removeUser
void removeUser(com.atlassian.user.User user) throws com.atlassian.core.exception.InfrastructureException Deprecated.Removes the specified user. Does nothing if the user does not exist.- Throws:
com.atlassian.core.exception.InfrastructureException- if the user could not be removed
-
getGroupCreateIfNecessary
Deprecated. -
getUserPreferences
Deprecated, for removal: This API element is subject to removal in a future version.since 7.7, for removal in 10.0. UsegetUserPreferences(com.atlassian.confluence.user.ConfluenceUser)instead. -
saveUser
void saveUser(com.atlassian.user.User user) Deprecated.Persists changes made to a user (e.g. changing email or full name).- Throws:
com.atlassian.core.exception.InfrastructureException- if the user could not be updated successfully
-
getUsersByEmail
Deprecated. -
deactivateUser
void deactivateUser(com.atlassian.user.User user) Deprecated.Deactivate the specified user, which prevents them logging in. Does nothing if the user is already deactivated. -
reactivateUser
void reactivateUser(com.atlassian.user.User user) Deprecated.Marks the specified user as active, which allows them to log in. Does nothing if the user is already active. -
isLicensedToAddMoreUsers
boolean isLicensedToAddMoreUsers()Deprecated. -
isUserRemovable
boolean isUserRemovable(com.atlassian.user.User user) throws com.atlassian.user.EntityException Deprecated.- Throws:
com.atlassian.user.EntityException
-
getGroups
com.atlassian.user.search.page.Pager<com.atlassian.user.Group> getGroups(com.atlassian.user.User user) Deprecated. -
hasMembership
boolean hasMembership(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). In all other circumstances, returnsfalse. -
hasMembership
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). In all other circumstances, returnsfalse. -
addMembership
void addMembership(com.atlassian.user.Group group, com.atlassian.user.User user) Deprecated. -
addMembership
Deprecated. -
removeMembership
boolean removeMembership(com.atlassian.user.Group group, com.atlassian.user.User user) Deprecated. -
getPropertySet
@Deprecated(forRemoval=true) com.opensymphony.module.propertyset.PropertySet getPropertySet(com.atlassian.user.User user) Deprecated, for removal: This API element is subject to removal in a future version.since 7.7, for removal in 10.0. UsegetUserPreferences(com.atlassian.confluence.user.ConfluenceUser)instead. -
getMemberNames
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). Returns an empty pager if the group has no members or doesn't exist. -
createUser
com.atlassian.user.User createUser(com.atlassian.user.User userTemplate, com.atlassian.user.security.password.Credential password) Deprecated. -
createGroup
Deprecated. -
isDeactivated
boolean isDeactivated(com.atlassian.user.User user) Deprecated.Returns true if the user exists and is unable to log in, otherwise false. Returns false if the user is null.- Returns:
- true if the user exists and is unable to log in, otherwise false.
-
isDeactivated
Deprecated.Returns true if the user with the specified username exists and is unable to log in, otherwise false. Returns false if the username is null.- Returns:
- true if the user with the specified username exists and is unable to log in, otherwise false.
-
authenticate
Deprecated. -
findUsers
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 Deprecated.- Specified by:
findUsersin interfacecom.atlassian.user.search.query.EntityQueryParser- Throws:
com.atlassian.user.EntityException
-
alterPassword
void alterPassword(com.atlassian.user.User user, String plainTextPassword) throws com.atlassian.user.EntityException Deprecated.- Throws:
com.atlassian.user.EntityException
-
removeMembership
Deprecated.
-
UserAccessor