nl.surfnet.coin.teams.domain
Class ExternalGroup

java.lang.Object
  extended by nl.surfnet.coin.shared.domain.DomainObject
      extended by nl.surfnet.coin.teams.domain.ExternalGroup
All Implemented Interfaces:
Serializable

public class ExternalGroup
extends nl.surfnet.coin.shared.domain.DomainObject

Metadata of an external group stored in the SURFteams database. We have this redundant storage to show the metadata to SURFteam member who are not a member of the external group.

Because the original data behind this bean comes from external sources, we do all CRUD operations by jdbc templates instead of Hibernate.

MySQL query to create this table:

   CREATE TABLE `external_groups` (
 `id` bigint(20) NOT NULL AUTO_INCREMENT,
 `description` longtext,
 `group_provider` varchar(255) DEFAULT NULL,
 `identifier` varchar(255) DEFAULT NULL,
 `name` varchar(255) DEFAULT NULL,
 PRIMARY KEY (`id`)
 ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8
 

See Also:
Serialized Form

Constructor Summary
ExternalGroup()
           
ExternalGroup(Group20 group20, GroupProvider groupProvider)
           
 
Method Summary
 boolean equals(Object o)
           
 String getDescription()
           
 GroupProvider getGroupProvider()
          Gets the GroupProvider that matches the getGroupProviderIdentifier().
 String getGroupProviderIdentifier()
           
 String getIdentifier()
           
 String getName()
           
 int hashCode()
           
 void setDescription(String description)
           
 void setGroupProvider(GroupProvider groupProvider)
           
 void setGroupProviderIdentifier(String groupProviderIdentifier)
           
 void setIdentifier(String identifier)
           
 void setName(String name)
           
 String toString()
           
 
Methods inherited from class nl.surfnet.coin.shared.domain.DomainObject
getId, setId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExternalGroup

public ExternalGroup()

ExternalGroup

public ExternalGroup(Group20 group20,
                     GroupProvider groupProvider)
Method Detail

getIdentifier

public String getIdentifier()
Returns:
identifier of the group urn:collab:groups:university.nl:students

setIdentifier

public void setIdentifier(String identifier)

getName

public String getName()
Returns:
human readable name of the group University: Students

setName

public void setName(String name)

getDescription

public String getDescription()
Returns:
long description of the group This is the group that contains all students from the University

setDescription

public void setDescription(String description)

getGroupProviderIdentifier

public String getGroupProviderIdentifier()
Returns:
identifier of the group provider, e.g. University.nl

setGroupProviderIdentifier

public void setGroupProviderIdentifier(String groupProviderIdentifier)

getGroupProvider

public GroupProvider getGroupProvider()
Gets the GroupProvider that matches the getGroupProviderIdentifier().

This information comes from an external data source and is not always retrieved.

Returns:
GroupProvider object, may be null

setGroupProvider

public void setGroupProvider(GroupProvider groupProvider)

equals

public boolean equals(Object o)
Overrides:
equals in class nl.surfnet.coin.shared.domain.DomainObject

hashCode

public int hashCode()
Overrides:
hashCode in class nl.surfnet.coin.shared.domain.DomainObject

toString

public String toString()
Overrides:
toString in class nl.surfnet.coin.shared.domain.DomainObject


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