Blue Mind
Release 1.0

net.bluemind.core.user
Class UserBindingImpl

java.lang.Object
  extended by net.bluemind.core.user.UserBindingImpl
All Implemented Interfaces:
IUser

public class UserBindingImpl
extends Object
implements IUser

IUser web service implementation


Constructor Summary
UserBindingImpl()
           
 
Method Summary
 String changeMyPassword(AccessToken at, String oldPass, String newPass)
           
 String changePassword(AccessToken at, Integer id, String oldPass, String newPass)
           
 User create(AccessToken token, User u)
           
 User deleteUser(AccessToken at, int id)
           
 User deleteUserWithoutTransaction(AccessToken at, int id)
           
 ResultList<User> find(AccessToken token, UserQuery uq)
           
 ResultList<User> findFromPatterns(AccessToken token, UserQuery uq)
          Used for users autocomplete
 ResultList<Group> getAllMyGroups(AccessToken token, int id)
          Get user membership groups hierarchy list, excluding profile groups.
 Set<String> getDomainUsersExtId(AccessToken at, int domainId)
          Get ext ID list of not archived domain users
 String getEncryptPassword(AccessToken at, int id)
          Get encrypted password.
 ResultList<Group> getGroups(AccessToken token, int id)
          Get user direct membership groups list
 ResultList<Group> getMyGroups(AccessToken token, int id)
          Get user direct membership groups list excluding profile groups
 String getUserExtIdFromLogin(AccessToken at, String userLogin, int domainId)
          Get user ext ID from not archived user login and domain ID
 User getUserFromId(AccessToken token, int id)
           
 User update(AccessToken token, User u)
           
 User updateMyself(AccessToken token, User user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserBindingImpl

public UserBindingImpl()
Method Detail

getUserFromId

public User getUserFromId(AccessToken token,
                          int id)
                   throws AuthFault,
                          ServerFault
Specified by:
getUserFromId in interface IUser
Throws:
AuthFault
ServerFault

find

public ResultList<User> find(AccessToken token,
                             UserQuery uq)
                      throws AuthFault,
                             ServerFault
Specified by:
find in interface IUser
Throws:
AuthFault
ServerFault

findFromPatterns

public ResultList<User> findFromPatterns(AccessToken token,
                                         UserQuery uq)
                                  throws AuthFault,
                                         ServerFault
Description copied from interface: IUser
Used for users autocomplete

Specified by:
findFromPatterns in interface IUser
Returns:
Throws:
AuthFault
ServerFault

create

public User create(AccessToken token,
                   User u)
            throws AuthFault,
                   ServerFault
Specified by:
create in interface IUser
Throws:
AuthFault
ServerFault

update

public User update(AccessToken token,
                   User u)
            throws AuthFault,
                   ServerFault
Specified by:
update in interface IUser
Throws:
AuthFault
ServerFault

deleteUser

public User deleteUser(AccessToken at,
                       int id)
                throws AuthFault,
                       ServerFault
Specified by:
deleteUser in interface IUser
Throws:
AuthFault
ServerFault

deleteUserWithoutTransaction

public User deleteUserWithoutTransaction(AccessToken at,
                                         int id)
                                  throws ServerFault,
                                         AuthFault
Throws:
ServerFault
AuthFault

getGroups

public ResultList<Group> getGroups(AccessToken token,
                                   int id)
                            throws AuthFault,
                                   ServerFault
Description copied from interface: IUser
Get user direct membership groups list

Specified by:
getGroups in interface IUser
Parameters:
token - bm-core token
id - user ID
Returns:
membership groups list
Throws:
AuthFault
ServerFault

changePassword

public String changePassword(AccessToken at,
                             Integer id,
                             String oldPass,
                             String newPass)
                      throws AuthFault,
                             ServerFault
Specified by:
changePassword in interface IUser
Throws:
AuthFault
ServerFault

updateMyself

public User updateMyself(AccessToken token,
                         User user)
                  throws AuthFault,
                         ServerFault
Specified by:
updateMyself in interface IUser
Throws:
AuthFault
ServerFault

changeMyPassword

public String changeMyPassword(AccessToken at,
                               String oldPass,
                               String newPass)
                        throws AuthFault,
                               ServerFault
Specified by:
changeMyPassword in interface IUser
Throws:
AuthFault
ServerFault

getEncryptPassword

public String getEncryptPassword(AccessToken at,
                                 int id)
                          throws AuthFault,
                                 ServerFault
Description copied from interface: IUser
Get encrypted password. Only global admin may do this.

Specified by:
getEncryptPassword in interface IUser
Returns:
Throws:
AuthFault
ServerFault

getMyGroups

public ResultList<Group> getMyGroups(AccessToken token,
                                     int id)
                              throws AuthFault,
                                     ServerFault
Description copied from interface: IUser
Get user direct membership groups list excluding profile groups

Specified by:
getMyGroups in interface IUser
Parameters:
token - bm-core token
id - user ID
Returns:
membership groups list
Throws:
AuthFault
ServerFault

getAllMyGroups

public ResultList<Group> getAllMyGroups(AccessToken token,
                                        int id)
                                 throws AuthFault,
                                        ServerFault
Description copied from interface: IUser
Get user membership groups hierarchy list, excluding profile groups.

Specified by:
getAllMyGroups in interface IUser
Parameters:
token - bm-core token
id - user ID
Returns:
membership groups list
Throws:
AuthFault
ServerFault

getDomainUsersExtId

public Set<String> getDomainUsersExtId(AccessToken at,
                                       int domainId)
                                throws AuthFault,
                                       ServerFault
Description copied from interface: IUser
Get ext ID list of not archived domain users

Specified by:
getDomainUsersExtId in interface IUser
Parameters:
at - bm-core token
domainId - domain ID to get user ext ID list
Returns:
ext ID list of not archived domain users
Throws:
AuthFault
ServerFault

getUserExtIdFromLogin

public String getUserExtIdFromLogin(AccessToken at,
                                    String userLogin,
                                    int domainId)
                             throws AuthFault,
                                    ServerFault
Description copied from interface: IUser
Get user ext ID from not archived user login and domain ID

Specified by:
getUserExtIdFromLogin in interface IUser
Parameters:
at - bm-core token
userLogin - user login
domainId - user domain ID
Returns:
  • user ext ID if exist and ext ID is set
  • empty string if user exist and ext ID not set
  • null if user doesn't exist
Throws:
AuthFault
ServerFault

Blue Mind
Release 1.0