nl.surfnet.coin.teams.service.impl
Class TeamExternalGroupDaoImpl

java.lang.Object
  extended by nl.surfnet.coin.teams.service.impl.TeamExternalGroupDaoImpl
All Implemented Interfaces:
TeamExternalGroupDao

@Component(value="teamExternalGroupDao")
public class TeamExternalGroupDaoImpl
extends Object
implements TeamExternalGroupDao

SQL Implementation for TeamExternalGroupDao


Constructor Summary
TeamExternalGroupDaoImpl()
           
 
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
 void setJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate tpl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TeamExternalGroupDaoImpl

public TeamExternalGroupDaoImpl()
Method Detail

setJdbcTemplate

public void setJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate tpl)

getExternalGroupByIdentifier

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

Specified by:
getExternalGroupByIdentifier in interface TeamExternalGroupDao
Parameters:
identifier - unique identifier of the external group within the SURFconext platform
Returns:
ExternalGroup that is stored, or null if not present

getByTeamIdentifier

public List<TeamExternalGroup> getByTeamIdentifier(String identifier)
Description copied from interface: TeamExternalGroupDao
Gets a List of links between a SURFteam and external groups by the identifier of the SURFteam

Specified by:
getByTeamIdentifier in interface TeamExternalGroupDao
Parameters:
identifier - unique identifier of the SURFteam
Returns:
List of TeamExternalGroup, can be empty

getByExternalGroupIdentifier

public List<TeamExternalGroup> getByExternalGroupIdentifier(String identifier)
Description copied from interface: TeamExternalGroupDao
Gets a List of links between a SURFteam and external groups by the identifier of the external group

Specified by:
getByExternalGroupIdentifier in interface TeamExternalGroupDao
Parameters:
identifier - id of the external group
Returns:
List of TeamExternalGroup, can be empty

getByTeamIdentifierAndExternalGroupIdentifier

public TeamExternalGroup getByTeamIdentifierAndExternalGroupIdentifier(String teamId,
                                                                       String externalGroupIdentifier)
Description copied from interface: TeamExternalGroupDao
Gets a specific link between a SURFteam and an external group by their respective SURFconext identifiers

Specified by:
getByTeamIdentifierAndExternalGroupIdentifier in interface TeamExternalGroupDao
Parameters:
teamId - unique identifier of the SURFteam
externalGroupIdentifier - unique identifier of the external group
Returns:
TeamExternalGroup if the link exists, otherwise null

saveOrUpdate

public void saveOrUpdate(TeamExternalGroup teamExternalGroup)
Description copied from interface: TeamExternalGroupDao
Saves or updates the link between a SURFteam and an external group

Specified by:
saveOrUpdate in interface TeamExternalGroupDao
Parameters:
teamExternalGroup - TeamExternalGroup to persist

delete

public void delete(TeamExternalGroup teamExternalGroup)
Description copied from interface: TeamExternalGroupDao
Deletes the link between a SURFteam and an external group

Specified by:
delete in interface TeamExternalGroupDao
Parameters:
teamExternalGroup - TeamExternalGroup to delete

getByExternalGroupIdentifiers

public List<TeamExternalGroup> getByExternalGroupIdentifiers(Collection<String> identifiers)
Description copied from interface: TeamExternalGroupDao
Gets a List of links between a SURFteam and external groups by the identifiers of the external groups

Specified by:
getByExternalGroupIdentifiers in interface TeamExternalGroupDao
Parameters:
identifiers - ids of the external group
Returns:
List of TeamExternalGroup, can be empty


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