|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.domain.DomainObject
com.arsdigita.domain.ObservableDomainObject
com.arsdigita.kernel.ACSObject
com.arsdigita.kernel.Resource
com.arsdigita.web.Application
com.arsdigita.forum.Forum
The Forum class represents a discussion forum.
Field Summary | |
static String |
BASE_DATA_OBJECT_TYPE
|
static String |
FORUM_MODERATION_PRIVILEGE
|
static String |
PACKAGE_TYPE
|
static String |
versionId
|
Fields inherited from class com.arsdigita.web.Application |
PRIMARY_URL |
Fields inherited from class com.arsdigita.kernel.Resource |
CHILD_RESOURCE, DESCRIPTION, PARENT_RESOURCE, RESOURCE_TYPE, TIMESTAMP, TITLE |
Fields inherited from class com.arsdigita.kernel.ACSObject |
CONTAINER, DEFAULT_DOMAIN_CLASS, DISPLAY_NAME, ID, OBJECT_TYPE |
Constructor Summary | |
Forum(BigDecimal id)
|
|
Forum(com.arsdigita.persistence.DataObject data)
|
|
Forum(com.arsdigita.persistence.OID oid)
|
Method Summary | |
protected void |
afterSave()
|
protected void |
beforeSave()
|
boolean |
canAdminister(com.arsdigita.kernel.Party party)
|
boolean |
canEdit(com.arsdigita.kernel.Party party)
checks if the user can edit posts in this forum |
boolean |
canModerate(com.arsdigita.kernel.Party party)
|
static Forum |
create(String urlName,
String title,
com.arsdigita.web.Application parent)
|
static Forum |
create(String urlName,
String title,
com.arsdigita.web.Application parent,
boolean moderated)
This method should be used to create a new Forum object everywhere except in the constructor of a subclass of Forum. |
protected void |
createSubscriptions()
Sets up instant and daily subscriptions for the forum. |
com.arsdigita.persistence.DataCollection |
getAllSubscriptions()
Gets all the Subscriptions associated with this Forum. |
protected String |
getBaseDataObjectType()
|
com.arsdigita.persistence.DataQuery |
getCategories()
Gets categories and number of posts for the forum. |
static ForumConfig |
getConfig()
|
String |
getContextPath()
|
com.arsdigita.persistence.DataQuery |
getEmptyCategories()
Gets empty categories for the forum. |
com.arsdigita.persistence.DataAssociationCursor |
getFilledCategories()
|
com.arsdigita.persistence.DataCollection |
getModerationAlerts()
|
com.arsdigita.kernel.Group |
getModerationGroup()
Returns the moderator group. |
com.arsdigita.persistence.DataAssociation |
getPosts()
Experimental Gets all the messages which have been posted to this forum. |
com.arsdigita.categorization.Category |
getRootCategory()
|
String |
getServletPath()
|
com.arsdigita.persistence.DataCollection |
getSubscriptions()
|
ThreadCollection |
getThreads()
Gets a ThreadCollection of the threads in this forum. |
ThreadCollection |
getThreads(BigDecimal categoryID)
Gets a ThreadCollection of the threads in a specific Category. |
ThreadCollection |
getThreads(BigDecimal categoryID,
com.arsdigita.kernel.Party party)
Gets a ThreadCollection of the threads in a specific Category. |
ThreadCollection |
getThreads(com.arsdigita.kernel.Party party)
Gets a ThreadCollection of the threads in this forum. |
com.arsdigita.persistence.DataQuery |
getUnCategory()
Gets Uncategory and number of posts for the forum. |
boolean |
hasCategorizedPosts(com.arsdigita.categorization.Category cat)
Receives category and returns boolean of whether forum has posts in that category. |
void |
initialize()
|
boolean |
isModerated()
|
void |
setModerated(boolean moderate)
Enables / disables moderation on the forum. |
Methods inherited from class com.arsdigita.web.Application |
afterDelete, createApplication, createApplication, createRootApplication, getAncestorApplications, getApplicationType, getCanonicalURL, getChildApplications, getChildApplicationsForType, getContainingApplication, getCurrentApplication, getPackageType, getParentApplication, getPath, getPrimaryURL, getRelevantPrivileges, getSiteNode, getStylesheetPath, isInstalled, retrieveAllApplications, retrieveApplication, retrieveApplication, retrieveApplication, retrieveApplicationForPath, retrieveApplicationForSiteNode, setApplicationType, setParentApplication, setPath |
Methods inherited from class com.arsdigita.kernel.Resource |
createResource, createResource, getChildResources, getContainer, getContainingResource, getDescription, getDisplayName, getParentResource, getResourceType, getTimestamp, getTitle, isContainerModified, retrieveAllResources, retrieveResource, retrieveResource, retrieveResource, setDescription, setParentResource, setResourceType, setTitle |
Methods inherited from class com.arsdigita.kernel.ACSObject |
assertPrivilege, checkPrivilege, doCreateCheck, doWriteCheck, getDefaultDomainClass, getID, getSpecificObjectType, getSpecificOID, gimmeContainer, setID, setID |
Methods inherited from class com.arsdigita.domain.ObservableDomainObject |
addObserver, getObservers |
Methods inherited from class com.arsdigita.domain.DomainObject |
add, add, addToAssociation, beforeDelete, clear, delete, disconnect, equals, get, getObjectType, getOID, getSession, hashCode, isDeleted, isDisconnected, isModified, isNew, isPropertyModified, isValid, remove, remove, remove, removeFromAssociation, save, set, setAssociation, setAssociation, specializeDataObject, specializeDataObject, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String versionId
public static final String BASE_DATA_OBJECT_TYPE
public static final String PACKAGE_TYPE
public static final String FORUM_MODERATION_PRIVILEGE
Constructor Detail |
public Forum(com.arsdigita.persistence.DataObject data)
public Forum(com.arsdigita.persistence.OID oid) throws com.arsdigita.domain.DataObjectNotFoundException
public Forum(BigDecimal id) throws com.arsdigita.domain.DataObjectNotFoundException
Method Detail |
public static ForumConfig getConfig()
public static Forum create(String urlName, String title, com.arsdigita.web.Application parent)
public static Forum create(String urlName, String title, com.arsdigita.web.Application parent, boolean moderated)
public com.arsdigita.categorization.Category getRootCategory()
public void initialize()
protected void beforeSave()
protected void afterSave()
protected String getBaseDataObjectType()
public com.arsdigita.persistence.DataCollection getAllSubscriptions()
public com.arsdigita.persistence.DataCollection getSubscriptions()
public com.arsdigita.persistence.DataCollection getModerationAlerts()
public com.arsdigita.persistence.DataAssociation getPosts()
public ThreadCollection getThreads()
public ThreadCollection getThreads(com.arsdigita.kernel.Party party)
public ThreadCollection getThreads(BigDecimal categoryID)
public ThreadCollection getThreads(BigDecimal categoryID, com.arsdigita.kernel.Party party)
protected void createSubscriptions()
public com.arsdigita.persistence.DataQuery getCategories()
public com.arsdigita.persistence.DataQuery getEmptyCategories()
public com.arsdigita.persistence.DataQuery getUnCategory()
public com.arsdigita.persistence.DataAssociationCursor getFilledCategories()
public boolean hasCategorizedPosts(com.arsdigita.categorization.Category cat)
public boolean canEdit(com.arsdigita.kernel.Party party)
public boolean canAdminister(com.arsdigita.kernel.Party party)
public boolean canModerate(com.arsdigita.kernel.Party party)
public void setModerated(boolean moderate)
public boolean isModerated()
public com.arsdigita.kernel.Group getModerationGroup()
public String getContextPath()
public String getServletPath()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |