public interface GrouperTeamService
| Modifier and Type | Method and Description |
|---|---|
void |
addMember(String teamId,
nl.surfnet.coin.api.client.domain.Person person)
Adds a person to the team
|
boolean |
addMemberRole(String teamId,
String memberId,
Role role,
String actAsUserId)
|
String |
addTeam(String teamId,
String displayName,
String teamDescription,
String stemName)
Add a
Team. |
void |
deleteMember(String teamId,
String personId)
Delete a Member from a
Team |
void |
deleteTeam(String teamId)
Delete a
Team |
Set<Member> |
findAdmins(Team team)
Returns a Set of
Member's that have the admin role for this team |
TeamResultWrapper |
findAllTeamsByMember(String personId,
int offset,
int pageSize)
Return all teams using a specific stem where the personId is a member
|
Member |
findMember(String teamId,
String memberId)
Tries to find a Member in a Team
|
TeamResultWrapper |
findPublicTeams(String personId,
String partOfGroupname)
Return all teams using a specific stem with a name like, , without the
teams being private except if the personId is a member of the private team
|
Stem |
findStem(String stemId) |
List<Stem> |
findStemsByMember(String personId)
Return all stems for a person
|
Team |
findTeamById(String teamId)
Find
Team by id |
TeamResultWrapper |
findTeamsByMember(String personId,
String partOfGroupname,
int offset,
int pageSize)
Return all teams using a specific stem with a name like where the personId is a member
|
boolean |
removeMemberRole(String teamId,
String memberId,
Role role,
String actAsUserId)
|
void |
setVisibilityGroup(String teamId,
boolean viewable)
Update the
Team to be (not) visible |
void |
updateTeam(String teamId,
String displayName,
String teamDescription,
String actAsSubject)
Update a
Team |
Team findTeamById(String teamId)
Team by idteamId - unique identifier for a TeamString addTeam(String teamId, String displayName, String teamDescription, String stemName) throws DuplicateTeamException
Team. Note that the teamId is altered if not compliant to the
rules for correct id's.teamId - the teamIddisplayName - the displayNameteamDescription - description of the teamstemName - name of the stemDuplicateTeamException - when a team with with the given teamId already exists.void updateTeam(String teamId, String displayName, String teamDescription, String actAsSubject)
Teamvoid setVisibilityGroup(String teamId, boolean viewable)
Team to be (not) visibleteamId - unique identifier for a Teamviewable - booleanboolean addMemberRole(String teamId, String memberId, Role role, String actAsUserId)
teamId - the unique identifier of a TeammemberId - the unique identifier of a Memberrole - the Role to be addedactAsUserId - the unique identifier that performs the request in Grouper. Can be the power user
or the memberIdRole has been successfully added false
if the Role has not been addedboolean removeMemberRole(String teamId, String memberId, Role role, String actAsUserId)
teamId - the unique identifier of a TeammemberId - the unique identifier of a Memberrole - the Role to be removedactAsUserId - the unique identifier that performs the request in Grouper. Can be the power user
of the memberIdRole has been successfully added false
if the Role has not been addedvoid addMember(String teamId, nl.surfnet.coin.api.client.domain.Person person)
teamId - the unique identifier of the
Teamperson - Person to add as Member to the TeamSet<Member> findAdmins(Team team)
Member's that have the admin role for this teamTeamResultWrapper findPublicTeams(String personId, String partOfGroupname)
personId - the logged in personpartOfGroupname - part of group nameTeamResultWrapper findAllTeamsByMember(String personId, int offset, int pageSize)
personId - the logged in personoffset - the row number of the startpageSize - the maximum result sizeTeamResultWrapper findTeamsByMember(String personId, String partOfGroupname, int offset, int pageSize)
personId - the logged in personpartOfGroupname - part of group nameoffset - the row number of the startpageSize - the maximum result sizeCopyright © 2009–2015 SURFnet bv, The Netherlands. All rights reserved.