com.arsdigita.acs.ug
Class GroupDataSource

java.lang.Object
  |
  +--com.arsdigita.acs.Selection
        |
        +--com.arsdigita.acs.ug.GroupDataSource
All Implemented Interfaces:
DataSource
Direct Known Subclasses:
SingleGroupDataSource

public class GroupDataSource
extends Selection

Represents a series of user groups pulled in from the database.


Fields inherited from class com.arsdigita.acs.Selection
ctr, db, rs, rsmd
 
Constructor Summary
GroupDataSource()
           
GroupDataSource(ResultSet rs)
           
GroupDataSource(SqlStatement s, Database db)
           
 
Method Summary
 Integer getGroupId()
           
 String getGroupName()
           
 String getGroupType()
           
 int getMemberFieldCount(Database db)
          Returns the number of additional fields collected about users in this group.
 MemberField getMemberFields(Database db)
          Returns the additional data collected about users in this group.
 Integer getParentGroupId()
           
 String getShortName()
           
 SingleSelection getSupplementalGroupInfo(Database db)
          Returns a list of supplemental fields and values for this group.
 
Methods inherited from class com.arsdigita.acs.Selection
contains, dumpBLOB, freeze, get, getBLOB, keys, next, rownum
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupDataSource

public GroupDataSource(SqlStatement s,
                       Database db)
                throws SQLException

GroupDataSource

public GroupDataSource(ResultSet rs)
                throws SQLException

GroupDataSource

public GroupDataSource()
Method Detail

getGroupId

public Integer getGroupId()

getGroupType

public String getGroupType()

getGroupName

public String getGroupName()

getShortName

public String getShortName()

getParentGroupId

public Integer getParentGroupId()

getSupplementalGroupInfo

public SingleSelection getSupplementalGroupInfo(Database db)
                                         throws SQLException,
                                                ACSException,
                                                IOException
Returns a list of supplemental fields and values for this group.

getMemberFields

public MemberField getMemberFields(Database db)
                            throws SQLException
Returns the additional data collected about users in this group.
Returns:
A MemberField datasource object

getMemberFieldCount

public int getMemberFieldCount(Database db)
                        throws SQLException,
                               ACSException
Returns the number of additional fields collected about users in this group.
Returns:
the number of additional fields collected