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
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortalsDataSource
public PortalsDataSource(SqlStatement sql,
Database db)
throws SQLException
PortalsDataSource
public PortalsDataSource(ResultSet rs)
throws SQLException
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