com.arsdigita.acs.ug
Class SingleGroupTypeDataSource

java.lang.Object
  |
  +--com.arsdigita.acs.Selection
        |
        +--com.arsdigita.acs.ug.GroupTypeDataSource
              |
              +--com.arsdigita.acs.ug.SingleGroupTypeDataSource
All Implemented Interfaces:
DataSource

public class SingleGroupTypeDataSource
extends GroupTypeDataSource

Represents a user group type. (e.g., administration, intranet, events)


Field Summary
(package private)  Hashtable props
           
 
Fields inherited from class com.arsdigita.acs.Selection
ctr, db, rs, rsmd
 
Constructor Summary
SingleGroupTypeDataSource(ResultSet rs)
           
SingleGroupTypeDataSource(String groupType)
           
 
Method Summary
 boolean contains(String key)
          Returns true if this contains a column named column.
 String get(String key)
          Generic get-property accessor.
 String[] keys()
          Returns a list of available keys (column names) in the Selection.
 boolean next()
          Advances to the next row in the data source, if there is one.
 
Methods inherited from class com.arsdigita.acs.ug.GroupTypeDataSource
generateHelperTableName, getApprovalPolicy, getDefaultNewMemberPolicy, getGroupAdminDirectory, getGroupFields, getGroupModuleAdministration, getGroupPublicDirectory, getGroupType, getGroupTypeAdminDirectory, getHasVirtualDirectory, getHelperTableName, getMemberFields, getPrettyGroupModuleAdministration, getPrettyName, getPrettyPlural
 
Methods inherited from class com.arsdigita.acs.Selection
dumpBLOB, freeze, getBLOB, rownum
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

props

Hashtable props
Constructor Detail

SingleGroupTypeDataSource

public SingleGroupTypeDataSource(ResultSet rs)
                          throws SQLException

SingleGroupTypeDataSource

public SingleGroupTypeDataSource(String groupType)
Method Detail

get

public String get(String key)
           throws DataSourceException
Description copied from class: Selection
Generic get-property accessor. Returns the value of the column named by key; if it's a CLOB column, still returns the text from the CLOB. If it's a DATE column, returns an ANSI date string (yyyy-mm-dd). Returns an empty string if the column is null (a perhaps unnecessary evil to prevent the string "null" from popping up in JSP pages--probably should get rid of this with more consistent use of ad:sub tag!).
Overrides:
get in class Selection
Following copied from class: com.arsdigita.acs.Selection
Throws:
InvalidKeyException - if key is not found.

next

public boolean next()
Description copied from class: Selection
Advances to the next row in the data source, if there is one.
Overrides:
next in class Selection
Following copied from class: com.arsdigita.acs.Selection
Returns:
true; or false if there are no more elements.

keys

public String[] keys()
Description copied from class: Selection
Returns a list of available keys (column names) in the Selection.
Overrides:
keys in class Selection

contains

public boolean contains(String key)
Description copied from class: Selection
Returns true if this contains a column named column.
Overrides:
contains in class Selection