|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.surfnet.coin.teams.service.impl.AbstractGrouperDaoImpl
nl.surfnet.coin.teams.service.impl.GrouperDaoImpl
nl.surfnet.coin.teams.service.impl.GrouperTeamServiceWsImpl
public class GrouperTeamServiceWsImpl
GrouperTeamService using Grouper LDAP as persistent store
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class nl.surfnet.coin.teams.service.impl.AbstractGrouperDaoImpl |
|---|
nl.surfnet.coin.teams.service.impl.AbstractGrouperDaoImpl.GrouperRowMapper<T> |
| Field Summary |
|---|
| Fields inherited from class nl.surfnet.coin.teams.service.impl.AbstractGrouperDaoImpl |
|---|
SQL_ADD_MEMBER_COUNT_TO_TEAMS, SQL_FIND_ALL_TEAMS, SQL_FIND_ALL_TEAMS_BY_MEMBER, SQL_FIND_ALL_TEAMS_BY_MEMBER_ROWCOUNT, SQL_FIND_ALL_TEAMS_BY_MEMBER_SORTED, SQL_FIND_ALL_TEAMS_ROWCOUNT, SQL_FIND_STEMS_BY_MEMBER, SQL_FIND_TEAMS_BY_MEMBER, SQL_FIND_TEAMS_BY_MEMBER_ROWCOUNT, SQL_FIND_TEAMS_LIKE_GROUPNAME, SQL_FIND_TEAMS_LIKE_GROUPNAME_ROWCOUNT, SQL_FIND_TEAMS_LIKE_GROUPNAMES, SQL_FIND_TEAMS_LIKE_GROUPNAMES_ROWCOUNT, SQL_MEMBERS_BY_TEAM, SQL_ROLES_BY_TEAM_AND_MEMBERS, SQL_ROLES_BY_TEAMS |
| Constructor Summary | |
|---|---|
GrouperTeamServiceWsImpl()
|
|
| 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 |
TeamResultWrapper |
findTeams(String personId,
String partOfGroupname,
int offset,
int pageSize)
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 |
String |
getGrouperPowerUser()
|
boolean |
removeMemberRole(String teamId,
String memberId,
Role role,
String actAsUserId)
Remove Role to a Team |
void |
setEnvironment(TeamEnvironment environment)
|
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 class nl.surfnet.coin.teams.service.impl.GrouperDaoImpl |
|---|
findAllTeams, findAllTeamsByMember, findStemsByMember, findTeamsByMember |
| Methods inherited from class nl.surfnet.coin.teams.service.impl.AbstractGrouperDaoImpl |
|---|
correctOffset, correctPageSize, wildCard |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface nl.surfnet.coin.teams.service.GrouperDao |
|---|
findAllTeams, findAllTeamsByMember, findStemsByMember, findTeamsByMember |
| Constructor Detail |
|---|
public GrouperTeamServiceWsImpl()
| Method Detail |
|---|
public Team findTeamById(String teamId)
Team by id
findTeamById in interface GrouperTeamServiceteamId - unique identifier for a Team
public boolean doesStemExists(String stemName)
GrouperTeamService
doesStemExists in interface GrouperTeamServicestemName - the exact name of the stem
public Stem findStem(String stemId)
findStem in interface GrouperTeamService
public 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.
addTeam in interface GrouperTeamServiceteamId - the teamIddisplayName - the displayNameteamDescription - description of the teamstemName - name of the stem
DuplicateTeamException - when a team with with the given teamId already exists.
public void deleteMember(String teamId,
String personId)
Team
deleteMember in interface GrouperTeamServiceteamId - the unique identifier for a TeampersonId - the unique identifier for a Memberpublic void deleteTeam(String teamId)
Team
deleteTeam in interface GrouperTeamServiceteamId - the unique identifier
public void updateTeam(String teamId,
String displayName,
String teamDescription,
String actAsSubject)
Team
updateTeam in interface GrouperTeamServiceteamId - 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 memberId
public void setVisibilityGroup(String teamId,
boolean viewable)
Team to be (not) visible
setVisibilityGroup in interface GrouperTeamServiceteamId - unique identifier for a Teamviewable - boolean
public boolean addMemberRole(String teamId,
String memberId,
Role role,
String actAsUserId)
Role to a Team
addMemberRole in interface GrouperTeamServiceteamId - 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
public boolean removeMemberRole(String teamId,
String memberId,
Role role,
String actAsUserId)
Role to a Team
removeMemberRole in interface GrouperTeamServiceteamId - 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
public void addMember(String teamId,
nl.surfnet.coin.api.client.domain.Person person)
addMember in interface GrouperTeamServiceteamId - the unique identifier of the
Teamperson - Person to add as Member to the Team
public Member findMember(String teamId,
String memberId)
findMember in interface GrouperTeamServiceteamId - 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 memberIdpublic Set<Member> findAdmins(Team team)
Member's that have the admin role for this team
findAdmins in interface GrouperTeamServiceteam - Team
Member's with admin role, can be emptypublic void setEnvironment(TeamEnvironment environment)
environment - the environment to set
public TeamResultWrapper findTeams(String personId,
String partOfGroupname,
int offset,
int pageSize)
GrouperDao
findTeams in interface GrouperDaofindTeams in class GrouperDaoImplpersonId - the logged in personpartOfGroupname - part of group nameoffset - the row number of the startpageSize - the maximum result size
public String getGrouperPowerUser()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||