|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.web.bean.forums.ForumsBean
public class ForumsBean
Bean providing properties and behaviour for the forums screens.
Nested Class Summary | |
---|---|
static class |
ForumsBean.TopicBubbleViewRenderer
Class to implement a bubble view for the RichList component used in the topics screen |
Field Summary | |
---|---|
protected BrowseBean |
browseBean
The browse bean |
protected UIRichList |
forumRichList
|
protected UIRichList |
forumsRichList
Component references |
protected NavigationBean |
navigator
The NavigationBean bean reference |
NodePropertyResolver |
resolverContent
|
NodePropertyResolver |
resolverReplies
|
NodePropertyResolver |
resolverReplyTo
|
protected UIRichList |
topicRichList
|
protected ViewsConfigElement |
viewsConfig
Views configuration object |
Constructor Summary | |
---|---|
ForumsBean()
Default Constructor |
Method Summary | |
---|---|
void |
areaChanged()
Method called by UIContextService.areaChanged() to inform all registered beans that the user has changed area i.e. |
void |
contextUpdated()
Method called by UIContextService.notifyBeans() to inform all registered beans that all UI Beans should refresh dump all cached data and settings. |
static java.lang.String |
createPostFileName()
Creates a file name for the message being posted |
void |
discuss(javax.faces.event.ActionEvent event)
Event handler called when a user wants to view or participate in a discussion on an object |
void |
forumsViewModeChanged(javax.faces.event.ActionEvent event)
Change the current forums view mode based on user selection |
void |
forumViewModeChanged(javax.faces.event.ActionEvent event)
Change the current forum view mode based on user selection |
protected org.alfresco.service.cmr.repository.ContentService |
getContentService()
|
protected org.alfresco.service.cmr.dictionary.DictionaryService |
getDictionaryService()
|
int |
getForumPageSize()
|
UIRichList |
getForumRichList()
|
java.util.List |
getForums()
|
int |
getForumsPageSize()
|
UIRichList |
getForumsRichList()
|
java.lang.String |
getForumsViewMode()
|
java.lang.String |
getForumViewMode()
|
protected org.alfresco.service.namespace.NamespaceService |
getNamespaceService()
|
protected org.alfresco.service.cmr.repository.NodeService |
getNodeService()
|
java.util.List |
getPosts()
|
java.lang.String |
getReplyBubbleHTML()
Returns the HTML to represent a bubble rendition of the text of the the forum article being replied to. |
protected org.alfresco.service.cmr.search.SearchService |
getSearchService()
|
int |
getTopicPageSize()
|
UIRichList |
getTopicRichList()
|
java.util.List |
getTopics()
|
java.lang.String |
getTopicViewMode()
|
protected void |
renderReplyContentHTML(javax.faces.context.FacesContext context,
Node replyToNode,
java.io.StringWriter writer,
java.lang.String contextPath,
java.lang.String colour,
java.lang.String bgColour)
|
void |
setBrowseBean(BrowseBean browseBean)
Sets the BrowseBean instance to use to retrieve the current document |
void |
setContentService(org.alfresco.service.cmr.repository.ContentService contentService)
Sets the content service to use |
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
|
void |
setForumPageSize(int forumPageSize)
|
void |
setForumRichList(UIRichList forumRichList)
|
void |
setForumsPageSize(int forumsPageSize)
|
void |
setForumsRichList(UIRichList forumsRichList)
|
void |
setForumsViewMode(java.lang.String forumsViewMode)
|
void |
setForumViewMode(java.lang.String forumViewMode)
|
void |
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
|
void |
setNavigator(NavigationBean navigator)
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
|
void |
setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
|
void |
setTopicPageSize(int topicPageSize)
|
void |
setTopicRichList(UIRichList topicRichList)
|
void |
setTopicViewMode(java.lang.String topicViewMode)
|
void |
spaceChanged()
Method called by UIContextService.spaceChanged() to inform all registered beans that the current space has changed. |
void |
topicViewModeChanged(javax.faces.event.ActionEvent event)
Change the current topic view mode based on user selection |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected BrowseBean browseBean
protected NavigationBean navigator
protected ViewsConfigElement viewsConfig
protected UIRichList forumsRichList
protected UIRichList forumRichList
protected UIRichList topicRichList
public NodePropertyResolver resolverReplies
public NodePropertyResolver resolverContent
public NodePropertyResolver resolverReplyTo
Constructor Detail |
---|
public ForumsBean()
Method Detail |
---|
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService
- The NodeService to set.protected org.alfresco.service.cmr.repository.NodeService getNodeService()
public void setContentService(org.alfresco.service.cmr.repository.ContentService contentService)
contentService
- The ContentServiceprotected org.alfresco.service.cmr.repository.ContentService getContentService()
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
dictionaryService
- The DictionaryService to set.protected org.alfresco.service.cmr.dictionary.DictionaryService getDictionaryService()
public void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
searchService
- The SearchService to set.protected org.alfresco.service.cmr.search.SearchService getSearchService()
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
namespaceService
- The NamespaceService to set.protected org.alfresco.service.namespace.NamespaceService getNamespaceService()
public void setBrowseBean(BrowseBean browseBean)
browseBean
- BrowseBean instancepublic void setNavigator(NavigationBean navigator)
navigator
- The NavigationBean to set.public void setForumsRichList(UIRichList forumsRichList)
forumsRichList
- The forumsRichList to set.public UIRichList getForumsRichList()
public java.lang.String getForumsViewMode()
public void setForumsViewMode(java.lang.String forumsViewMode)
forumsViewMode
- The forums View mode to set. See UIRichList.public int getForumsPageSize()
public void setForumsPageSize(int forumsPageSize)
forumsPageSize
- The forumsPageSize to set.public void setTopicRichList(UIRichList topicRichList)
topicRichList
- The topicRichList to set.public UIRichList getTopicRichList()
public java.lang.String getTopicViewMode()
public void setTopicViewMode(java.lang.String topicViewMode)
topicViewMode
- The topic View mode to set. See UIRichList.public int getTopicPageSize()
public void setTopicPageSize(int topicPageSize)
topicPageSize
- The topicPageSize to set.public void setForumRichList(UIRichList forumRichList)
forumRichList
- The forumRichList to set.public UIRichList getForumRichList()
public java.lang.String getForumViewMode()
public void setForumViewMode(java.lang.String forumViewMode)
forumViewMode
- The forum View mode to set. See UIRichList.public int getForumPageSize()
public void setForumPageSize(int forumPageSize)
forumPageSize
- The forumPageSize to set.public java.util.List getForums()
public java.util.List getTopics()
public java.util.List getPosts()
public java.lang.String getReplyBubbleHTML()
public void contextUpdated()
IContextListener
contextUpdated
in interface IContextListener
IContextListener.contextUpdated()
public void areaChanged()
IContextListener
areaChanged
in interface IContextListener
IContextListener.areaChanged()
public void spaceChanged()
IContextListener
spaceChanged
in interface IContextListener
IContextListener.spaceChanged()
public void forumsViewModeChanged(javax.faces.event.ActionEvent event)
event
- ActionEventpublic void forumViewModeChanged(javax.faces.event.ActionEvent event)
event
- ActionEventpublic void topicViewModeChanged(javax.faces.event.ActionEvent event)
event
- ActionEventpublic void discuss(javax.faces.event.ActionEvent event)
event
- ActionEventpublic static java.lang.String createPostFileName()
protected void renderReplyContentHTML(javax.faces.context.FacesContext context, Node replyToNode, java.io.StringWriter writer, java.lang.String contextPath, java.lang.String colour, java.lang.String bgColour) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |