org.squashtest.tm.service.user
Interface UserAccountService

All Known Implementing Classes:
UserAccountServiceImpl

public interface UserAccountService


Method Summary
 void activateUser(long userId)
           
 void deactivateUser(long userId)
           
 void deleteUser(long userId)
           
 org.squashtest.tm.domain.users.User findCurrentUser()
          Fetches the User which matches the current authenticated username / principal.
 void modifyUserEmail(long userId, String newEmail)
           
 void modifyUserFirstName(long userId, String newName)
           
 void modifyUserLastName(long userId, String newName)
           
 void modifyUserLogin(long userId, String newLogin)
           
 void setCurrentUserEmail(String newEmail)
           
 void setCurrentUserPassword(String oldPasswd, String newPasswd)
           
 

Method Detail

modifyUserFirstName

void modifyUserFirstName(long userId,
                         String newName)

modifyUserLastName

void modifyUserLastName(long userId,
                        String newName)

modifyUserLogin

void modifyUserLogin(long userId,
                     String newLogin)

modifyUserEmail

void modifyUserEmail(long userId,
                     String newEmail)

deactivateUser

void deactivateUser(long userId)

activateUser

void activateUser(long userId)

deleteUser

void deleteUser(long userId)

findCurrentUser

org.squashtest.tm.domain.users.User findCurrentUser()
Fetches the User which matches the current authenticated username / principal. If one is authenticated (through a third party authentication provider) but no User is defined, this method returns null.

Returns:
the current User or null

setCurrentUserEmail

void setCurrentUserEmail(String newEmail)

setCurrentUserPassword

void setCurrentUserPassword(String oldPasswd,
                            String newPasswd)


Copyright © 2010-2013 Henix, henix.fr. All Rights Reserved.