nl.surfnet.coin.teams.service
Interface GrouperDao

All Known Subinterfaces:
GrouperTeamService
All Known Implementing Classes:
GrouperDaoImpl, GrouperTeamServiceWsImpl, InMemoryMockTeamService

public interface GrouperDao

Grouper Dao for accessing the grouper tables directly


Method Summary
 TeamResultWrapper findAllTeams(String personId, int offset, int pageSize)
          Return all teams using a specific stem, without the teams being private except if the personId is a member of the private team
 TeamResultWrapper findAllTeamsByMember(String personId, int offset, int pageSize)
          Return all teams using a specific stem where the personId is a member
 List<Stem> findStemsByMember(String personId)
          Return all stems for a person
 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
 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
 

Method Detail

findAllTeams

TeamResultWrapper findAllTeams(String personId,
                               int offset,
                               int pageSize)
Return all teams using a specific stem, without the teams being private except if the personId is a member of the private team

Parameters:
personId - the logged in person
offset - the row number of the start
pageSize - the maximum result size
Returns:
teams including the number of total records

findTeams

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

Parameters:
personId - the logged in person
partOfGroupname - part of group name
offset - the row number of the start
pageSize - the maximum result size
Returns:
teams including the number of total records

findAllTeamsByMember

TeamResultWrapper findAllTeamsByMember(String personId,
                                       int offset,
                                       int pageSize)
Return all teams using a specific stem where the personId is a member

Parameters:
personId - the logged in person
offset - the row number of the start
pageSize - the maximum result size
Returns:
teams including the number of total records

findTeamsByMember

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

Parameters:
personId - the logged in person
partOfGroupname - part of group name
offset - the row number of the start
pageSize - the maximum result size
Returns:
teams including the number of total records

findStemsByMember

List<Stem> findStemsByMember(String personId)
Return all stems for a person

Parameters:
personId - String the identifier of the logged in person
Returns:
List the list with stems that this user is a member of.


Copyright © 2009-2012 SURFnet bv, The Netherlands. All Rights Reserved.