com.arsdigita.acs.portals
Class PortalsDataSource

java.lang.Object
  |
  +--com.arsdigita.acs.Selection
        |
        +--com.arsdigita.acs.portals.PortalsDataSource
All Implemented Interfaces:
DataSource

public class PortalsDataSource
extends Selection


Fields inherited from class com.arsdigita.acs.Selection
ctr, db, rs, rsmd
 
Constructor Summary
PortalsDataSource(ResultSet rs)
           
PortalsDataSource(SqlStatement sql, Database db)
           
 
Method Summary
static boolean allowUserLevelPortals()
          Returns the AllowUserLevelPortals parameter
static String getPortalExtension()
          Returns the PortalExtension parameter
 String getTableName()
          Formats the table name for display in the portals (limiting to 32 chars and in upper case)
 String getURL()
          Translates group_name to lower case and replaces each space with a dash.
 
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

PortalsDataSource

public PortalsDataSource(SqlStatement sql,
                         Database db)
                  throws SQLException

PortalsDataSource

public PortalsDataSource(ResultSet rs)
                  throws SQLException
Method Detail

getURL

public String getURL()
              throws DataSourceException
Translates group_name to lower case and replaces each space with a dash. Encodes everything else using Utilities.URLEncode Needed to encode group_name as a nice url

getPortalExtension

public static String getPortalExtension()
Returns the PortalExtension parameter

allowUserLevelPortals

public static boolean allowUserLevelPortals()
Returns the AllowUserLevelPortals parameter

getTableName

public String getTableName()
                    throws DataSourceException
Formats the table name for display in the portals (limiting to 32 chars and in upper case)
Returns:
string representing the table name