@Service public class UserAccountServiceImpl extends Object implements UserAccountService
| Constructor and Description |
|---|
UserAccountServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
MolgenisUser |
getCurrentUser()
Returns the currently logged in user
|
void |
updateCurrentUser(MolgenisUser updatedCurrentUser)
Update the currently logged in user
|
boolean |
validateCurrentUserPassword(String password)
Validates the password of the current logged in user
|
@PreAuthorize(value="hasAnyRole(\'ROLE_SU\', \'ROLE_PLUGIN_READ_USERACCOUNT\')")
@Transactional(readOnly=true,
rollbackFor=org.molgenis.framework.db.DatabaseException.class)
public MolgenisUser getCurrentUser()
throws DatabaseException
UserAccountServicegetCurrentUser in interface UserAccountServiceDatabaseException@PreAuthorize(value="hasAnyRole(\'ROLE_SU\', \'ROLE_PLUGIN_WRITE_USERACCOUNT\')") @Transactional(rollbackFor=org.molgenis.framework.db.DatabaseException.class) public void updateCurrentUser(MolgenisUser updatedCurrentUser) throws DatabaseException
UserAccountServiceupdateCurrentUser in interface UserAccountServiceupdatedCurrentUser - updated userDatabaseException@PreAuthorize(value="hasAnyRole(\'ROLE_SU\', \'ROLE_PLUGIN_READ_USERACCOUNT\')") @Transactional(rollbackFor=org.molgenis.framework.db.DatabaseException.class) public boolean validateCurrentUserPassword(String password) throws DatabaseException
UserAccountServicevalidateCurrentUserPassword in interface UserAccountServiceDatabaseExceptionCopyright © 2013. All Rights Reserved.