@Service(value="squashtest.tm.service.UserAccountService") @Transactional public class UserAccountServiceImpl extends Object implements UserAccountService
| Constructor and Description |
|---|
UserAccountServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
activateUser(long userId) |
void |
deactivateUser(long userId) |
void |
deleteUser(long userId) |
Collection<org.squashtest.tm.domain.milestone.Milestone> |
findAllMilestonesForUser(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 oldPass,
String newPass) |
void |
updateUserLastConnectionDate() |
public void modifyUserFirstName(long userId,
String newName)
modifyUserFirstName in interface UserAccountServicepublic void modifyUserLastName(long userId,
String newName)
modifyUserLastName in interface UserAccountServicepublic void modifyUserLogin(long userId,
String newLogin)
modifyUserLogin in interface UserAccountServicepublic void modifyUserEmail(long userId,
String newEmail)
modifyUserEmail in interface UserAccountService@Transactional(readOnly=true) public org.squashtest.tm.domain.users.User findCurrentUser()
UserAccountServiceUser 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.findCurrentUser in interface UserAccountServiceUser or nullpublic void setCurrentUserEmail(String newEmail)
setCurrentUserEmail in interface UserAccountServicepublic void setCurrentUserPassword(String oldPass, String newPass)
setCurrentUserPassword in interface UserAccountServicepublic void updateUserLastConnectionDate()
updateUserLastConnectionDate in interface UserAccountService@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')") public void deactivateUser(long userId)
deactivateUser in interface UserAccountService@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')") public void activateUser(long userId)
activateUser in interface UserAccountServicepublic void deleteUser(long userId)
deleteUser in interface UserAccountServicepublic Collection<org.squashtest.tm.domain.milestone.Milestone> findAllMilestonesForUser(long userId)
findAllMilestonesForUser in interface UserAccountServiceCopyright © 2010–2017 Henix, henix.fr. All rights reserved.