public class ForumsBean extends Object implements IContextListener
Modifier and Type | Class and Description |
---|---|
static class |
ForumsBean.TopicBubbleViewRenderer
Class to implement a bubble view for the RichList component used in the topics screen
|
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
ForumsBean()
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
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 String |
createPostFileName()
Creates a file name for the message being posted
|
void |
discuss(ActionEvent event)
Event handler called when a user wants to view or participate
in a discussion on an object
|
void |
forumsViewModeChanged(ActionEvent event)
Change the current forums view mode based on user selection
|
void |
forumViewModeChanged(ActionEvent event)
Change the current forum view mode based on user selection
|
protected ContentService |
getContentService() |
protected org.alfresco.service.cmr.dictionary.DictionaryService |
getDictionaryService() |
int |
getForumPageSize() |
UIRichList |
getForumRichList() |
List<Node> |
getForums() |
int |
getForumsPageSize() |
UIRichList |
getForumsRichList() |
String |
getForumsViewMode() |
String |
getForumViewMode() |
protected org.alfresco.service.namespace.NamespaceService |
getNamespaceService() |
protected org.alfresco.service.cmr.repository.NodeService |
getNodeService() |
List<Node> |
getPosts() |
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() |
List<Node> |
getTopics() |
String |
getTopicViewMode() |
protected void |
renderReplyContentHTML(FacesContext context,
Node replyToNode,
StringWriter writer,
String contextPath,
String colour,
String bgColour) |
void |
setBrowseBean(BrowseBean browseBean)
Sets the BrowseBean instance to use to retrieve the current document
|
void |
setContentService(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(String forumsViewMode) |
void |
setForumViewMode(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(String topicViewMode) |
void |
spaceChanged()
Method called by UIContextService.spaceChanged() to inform all registered beans that
the current space has changed.
|
void |
topicViewModeChanged(ActionEvent event)
Change the current topic view mode based on user selection
|
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
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(ContentService contentService)
contentService
- The ContentServiceprotected 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 String getForumsViewMode()
public void setForumsViewMode(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 String getTopicViewMode()
public void setTopicViewMode(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 String getForumViewMode()
public void setForumViewMode(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 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(ActionEvent event)
event
- ActionEventpublic void forumViewModeChanged(ActionEvent event)
event
- ActionEventpublic void topicViewModeChanged(ActionEvent event)
event
- ActionEventpublic void discuss(ActionEvent event)
event
- ActionEventpublic static String createPostFileName()
protected void renderReplyContentHTML(FacesContext context, Node replyToNode, StringWriter writer, String contextPath, String colour, String bgColour) throws IOException
IOException
Copyright © 2005–2017 Alfresco Software. All rights reserved.