public interface GrouperTeamService extends GrouperDao
| 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 |
boolean |
doesStemExists(String stemName)
Does the Stem exists?
|
Set<Member> |
findAdmins(Team team)
Returns a Set of
Member's that have the admin role for this team |
Member |
findMember(String teamId,
String memberId)
Tries to find a Member in a Team
|
Stem |
findStem(String stemId) |
Team |
findTeamById(String teamId)
Find
Team by id |
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 |
findAllTeams, findAllTeamsByMember, findStemsByMember, findTeams, findTeamsByMemberTeam 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 teamboolean doesStemExists(String stemName)
stemName - the exact name of the stemCopyright © 2009-2013 SURFnet bv, The Netherlands. All Rights Reserved.