nl.surfnet.coin.teams.service
Interface TeamExternalGroupDao

All Known Implementing Classes:
TeamExternalGroupDaoImpl

public interface TeamExternalGroupDao

DAO for CRUD operations for the link between a SURFteam and an External Group


Method Summary
 void delete(TeamExternalGroup teamExternalGroup)
          Deletes the link between a SURFteam and an external group
 List<TeamExternalGroup> getByExternalGroupIdentifier(String identifier)
          Gets a List of links between a SURFteam and external groups by the identifier of the external group
 List<TeamExternalGroup> getByExternalGroupIdentifiers(Collection<String> identifiers)
          Gets a List of links between a SURFteam and external groups by the identifiers of the external groups
 List<TeamExternalGroup> getByTeamIdentifier(String identifier)
          Gets a List of links between a SURFteam and external groups by the identifier of the SURFteam
 TeamExternalGroup getByTeamIdentifierAndExternalGroupIdentifier(String teamId, String externalGroupIdentifier)
          Gets a specific link between a SURFteam and an external group by their respective SURFconext identifiers
 ExternalGroup getExternalGroupByIdentifier(String identifier)
          Gets an ExternalGroup by its SURFconext identifier (urn:collab:groups:univ.nl:nl.univ.mygroup) from the local store
 void saveOrUpdate(TeamExternalGroup teamExternalGroup)
          Saves or updates the link between a SURFteam and an external group
 

Method Detail

getExternalGroupByIdentifier

ExternalGroup getExternalGroupByIdentifier(String identifier)
Gets an ExternalGroup by its SURFconext identifier (urn:collab:groups:univ.nl:nl.univ.mygroup) from the local store

Parameters:
identifier - unique identifier of the external group within the SURFconext platform
Returns:
ExternalGroup that is stored, or null if not present

getByTeamIdentifier

List<TeamExternalGroup> getByTeamIdentifier(String identifier)
Gets a List of links between a SURFteam and external groups by the identifier of the SURFteam

Parameters:
identifier - unique identifier of the SURFteam
Returns:
List of TeamExternalGroup, can be empty

getByExternalGroupIdentifier

List<TeamExternalGroup> getByExternalGroupIdentifier(String identifier)
Gets a List of links between a SURFteam and external groups by the identifier of the external group

Parameters:
identifier - id of the external group
Returns:
List of TeamExternalGroup, can be empty

getByExternalGroupIdentifiers

List<TeamExternalGroup> getByExternalGroupIdentifiers(Collection<String> identifiers)
Gets a List of links between a SURFteam and external groups by the identifiers of the external groups

Parameters:
identifiers - ids of the external group
Returns:
List of TeamExternalGroup, can be empty

getByTeamIdentifierAndExternalGroupIdentifier

TeamExternalGroup getByTeamIdentifierAndExternalGroupIdentifier(String teamId,
                                                                String externalGroupIdentifier)
Gets a specific link between a SURFteam and an external group by their respective SURFconext identifiers

Parameters:
teamId - unique identifier of the SURFteam
externalGroupIdentifier - unique identifier of the external group
Returns:
TeamExternalGroup if the link exists, otherwise null

saveOrUpdate

void saveOrUpdate(TeamExternalGroup teamExternalGroup)
Saves or updates the link between a SURFteam and an external group

Parameters:
teamExternalGroup - TeamExternalGroup to persist

delete

void delete(TeamExternalGroup teamExternalGroup)
Deletes the link between a SURFteam and an external group

Parameters:
teamExternalGroup - TeamExternalGroup to delete


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