com.arsdigita.acs.bboard
Class TopicsDataSource
java.lang.Object
|
+--com.arsdigita.acs.Selection
|
+--com.arsdigita.acs.bboard.TopicsDataSource
- All Implemented Interfaces:
- DataSource
- Direct Known Subclasses:
- SingleTopicDataSource
- public class TopicsDataSource
- extends Selection
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TopicsDataSource
public TopicsDataSource(SqlStatement sql,
Database db)
throws SQLException
TopicsDataSource
public TopicsDataSource(ResultSet rs)
throws SQLException
TopicsDataSource
public TopicsDataSource()
getModerationPolicy
public String getModerationPolicy()
throws DataSourceException
authorizeUser
public boolean authorizeUser(UserInfo user,
PageContext pc)
throws Exception
- Verifies that a user can read messages for this topic.
Redirects to registration page if topic is public and user
not logged in. Displays error page if private and user
not part of group.
- Returns:
- true if user is authorized, false if not
adminAuthorize
public boolean adminAuthorize(UserInfo user,
PageContext pc)
- Verifies that a user can administer messages for this topic.
Redirects to registration page if topic is public and user
not logged in. Displays error page if user is not an authorized
administrator.
- Returns:
- true if user is authorized, false if not
getBackLink
public String getBackLink()
throws DataSourceException
- Returns back-link URL for this topic id. For now, just
q-and-a?topic_id=&topic=