|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GrouperTeamService
Main interface for dealing with Teams
| Method Summary | |
|---|---|
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)
Add Role to a Team |
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)
Remove Role to a Team |
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 |
| Methods inherited from interface nl.surfnet.coin.teams.service.GrouperDao |
|---|
findAllTeams, findAllTeamsByMember, findStemsByMember, findTeams, findTeamsByMember |
| Method Detail |
|---|
Team findTeamById(String teamId)
Team by id
teamId - unique identifier for a Team
String 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 stem
DuplicateTeamException - when a team with with the given teamId already exists.
void updateTeam(String teamId,
String displayName,
String teamDescription,
String actAsSubject)
Team
teamId - the id of a TeamdisplayName - the new displayNameteamDescription - the new description of the TeamactAsSubject - the unique identifier that performs the request in Grouper. Can be the power user
or the memberIdvoid deleteTeam(String teamId)
Team
teamId - the unique identifier
void deleteMember(String teamId,
String personId)
Team
teamId - the unique identifier for a TeampersonId - the unique identifier for a Member
void setVisibilityGroup(String teamId,
boolean viewable)
Team to be (not) visible
teamId - unique identifier for a Teamviewable - boolean
boolean addMemberRole(String teamId,
String memberId,
Role role,
String actAsUserId)
Role to a Team
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 memberId
Role has been successfully added false
if the Role has not been added
boolean removeMemberRole(String teamId,
String memberId,
Role role,
String actAsUserId)
Role to a Team
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 memberId
Role has been successfully added false
if the Role has not been added
void 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 Team
Member findMember(String teamId,
String memberId)
teamId - the unique identifier of the TeammemberId - the unique identifier of a Member
Member or null if the Team does not contain a
Member by the memberIdSet<Member> findAdmins(Team team)
Member's that have the admin role for this team
team - Team
Member's with admin role, can be emptyboolean doesStemExists(String stemName)
stemName - the exact name of the stem
Stem findStem(String stemId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||