org.squashtest.tm.service.user
Interface CustomTeamModificationService

All Superinterfaces:
CustomTeamFinderService
All Known Subinterfaces:
TeamModificationService
All Known Implementing Classes:
CustomTeamModificationServiceImpl

@Transactional
public interface CustomTeamModificationService
extends CustomTeamFinderService

Non dynamically generated methods for Team Modification

Author:
mpagnon

Method Summary
 void addMember(long teamId, String login)
          Add one member, identified by its login
 void addMembers(long teamId, List<String> logins)
          Add one or more members, identified by their login, to a team identified by its id.
 void changeName(long teamId, String name)
          Changes the name the team of the given id.
 void deleteTeam(long teamId)
          Delete the team along with all it's acls.
 void persist(org.squashtest.tm.domain.users.Team team)
          Check if name is available and persist the new Team.
 void removeMember(long teamId, long memberId)
           
 void removeMemberFromAllTeams(long memberId)
           
 void removeMembers(long teamId, List<Long> memberIds)
           
 
Methods inherited from interface org.squashtest.tm.service.user.CustomTeamFinderService
countAll, findAllFiltered, findAllNonMemberUsers, findAllTeamMembers
 

Method Detail

persist

void persist(org.squashtest.tm.domain.users.Team team)
Check if name is available and persist the new Team.

Parameters:
team -
Throws:
org.squashtest.tm.exception.customfield.NameAlreadyInUseException - if a team of the same name as the team param already exists in database

deleteTeam

void deleteTeam(long teamId)
Delete the team along with all it's acls. Do not delete it's associated users.


changeName

void changeName(long teamId,
                String name)
Changes the name the team of the given id.

Parameters:
teamId -
name -
Throws:
org.squashtest.tm.exception.customfield.NameAlreadyInUseException - if a team of the same name already exists in database

addMember

void addMember(long teamId,
               String login)
Add one member, identified by its login

Parameters:
teamId -
login -

addMembers

void addMembers(long teamId,
                List<String> logins)
Add one or more members, identified by their login, to a team identified by its id.

Parameters:
teamId -
logins -

removeMember

void removeMember(long teamId,
                  long memberId)

removeMembers

void removeMembers(long teamId,
                   List<Long> memberIds)

removeMemberFromAllTeams

void removeMemberFromAllTeams(long memberId)


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