org.squashtest.csp.tm.service
Interface AdministrationService

All Known Implementing Classes:
AdministrationServiceImpl

public interface AdministrationService

//TODO : should be in core.service Will handle CRUD on Squash user accounts, groups, permissions and the like. For all operations about user authentication, the said operation will be delegated to the UserAuthenticationManagerService. Security should ensure that : - access to user informations (both reading and writing) are opened to the said user ROLE_ADMIN authority only, - the rest requires ROLE_ADMIN authority only.

Author:
bsiri

Method Summary
 void addUser(User aUser, long groupId, String password)
           
 List<Project> findAllProjects()
           
 List<User> findAllUsers()
           
 FilteredCollectionHolder<List<User>> findAllUsersFiltered(CollectionFilter filter)
           
 List<UsersGroup> findAllUsersGroup()
           
 User findUserById(long userId)
           
 String findWelcomeMessage()
           
 void modifyUserActiveParam(long userId, boolean active)
           
 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 modifyWelcomeMessage(String welcomeMessage)
           
 void setUserGroupAuthority(long userId, long groupId)
           
 

Method Detail

findAllProjects

List<Project> findAllProjects()

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)

findUserById

User findUserById(long userId)

findAllUsers

List<User> findAllUsers()

findAllUsersFiltered

FilteredCollectionHolder<List<User>> findAllUsersFiltered(CollectionFilter filter)

findAllUsersGroup

List<UsersGroup> findAllUsersGroup()

addUser

void addUser(User aUser,
             long groupId,
             String password)

modifyUserActiveParam

void modifyUserActiveParam(long userId,
                           boolean active)

setUserGroupAuthority

void setUserGroupAuthority(long userId,
                           long groupId)

modifyWelcomeMessage

void modifyWelcomeMessage(String welcomeMessage)

findWelcomeMessage

String findWelcomeMessage()


Copyright © 2010-2012 Squashtest TM, Squashtest.org. All Rights Reserved.