@Service(value="CustomTeamModificationService") @PreAuthorize(value="hasRole(\'ROLE_ADMIN\')") public class CustomTeamModificationServiceImpl extends Object implements CustomTeamModificationService
| Constructor and Description |
|---|
CustomTeamModificationServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
long |
countAll()
Will count all Teams in the database.
|
void |
deleteTeam(List<Long> teamId)
Delete the team along with all it's acls.
|
void |
deleteTeam(long teamId)
Delete the team along with all it's acls.
|
org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<org.squashtest.tm.domain.users.Team>> |
findAllFiltered(org.squashtest.tm.core.foundation.collection.PagingAndSorting paging,
org.squashtest.tm.core.foundation.collection.Filtering filtering) |
List<org.squashtest.tm.domain.users.User> |
findAllNonMemberUsers(long teamId) |
org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<org.squashtest.tm.domain.users.User>> |
findAllTeamMembers(long teamId,
org.squashtest.tm.core.foundation.collection.PagingAndSorting sorting,
org.squashtest.tm.core.foundation.collection.Filtering filtering) |
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) |
public void persist(org.squashtest.tm.domain.users.Team team)
CustomTeamModificationServicepersist in interface CustomTeamModificationServiceCustomTeamModificationService.persist(Team)public void deleteTeam(long teamId)
CustomTeamModificationServicedeleteTeam in interface CustomTeamModificationServiceteamId - the id of the teamCustomTeamModificationService.deleteTeam(long)public void deleteTeam(List<Long> teamId)
CustomTeamModificationServicedeleteTeam in interface CustomTeamModificationServiceCustomTeamModificationService.deleteTeam(long)public org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<org.squashtest.tm.domain.users.Team>> findAllFiltered(org.squashtest.tm.core.foundation.collection.PagingAndSorting paging, org.squashtest.tm.core.foundation.collection.Filtering filtering)
findAllFiltered in interface CustomTeamFinderServicepublic void changeName(long teamId,
String name)
CustomTeamModificationServicechangeName in interface CustomTeamModificationServicepublic void addMember(long teamId,
String login)
CustomTeamModificationServiceaddMember in interface CustomTeamModificationServicepublic void addMembers(long teamId,
List<String> logins)
CustomTeamModificationServiceaddMembers in interface CustomTeamModificationServicepublic List<org.squashtest.tm.domain.users.User> findAllNonMemberUsers(long teamId)
findAllNonMemberUsers in interface CustomTeamFinderServicepublic void removeMember(long teamId,
long memberId)
removeMember in interface CustomTeamModificationServicepublic void removeMembers(long teamId,
List<Long> memberIds)
removeMembers in interface CustomTeamModificationServicepublic org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<org.squashtest.tm.domain.users.User>> findAllTeamMembers(long teamId, org.squashtest.tm.core.foundation.collection.PagingAndSorting sorting, org.squashtest.tm.core.foundation.collection.Filtering filtering)
findAllTeamMembers in interface CustomTeamFinderServicepublic void removeMemberFromAllTeams(long memberId)
removeMemberFromAllTeams in interface CustomTeamModificationServicepublic long countAll()
CustomTeamFinderServicecountAll in interface CustomTeamFinderServiceCustomTeamFinderService.countAll()Copyright © 2010–2017 Henix, henix.fr. All rights reserved.