|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portlet.JBossPortlet org.jboss.portlet.forums.ForumsPortlet
Nested Class Summary |
Nested classes inherited from class org.jboss.portlet.forums.ForumsConstants |
ForumsConstants.ModeDecoder |
Field Summary | |
private ForumsModule |
forumsModule
|
private CLLoader |
loader
|
private java.lang.String |
OP_CONFIRM
|
private java.lang.String |
OP_MAIN
|
private java.lang.String |
OP_POSTING
|
private java.lang.String |
OP_SHOWADDEDITFORUM
|
static java.lang.String |
OP_SHOWADMINFORUMS
|
private java.lang.String |
OP_SHOWDELETEFORUM
|
private java.lang.String |
OP_SHOWEDITCATEGORY
|
static java.lang.String |
OP_SHOWFORUM
|
static java.lang.String |
OP_SHOWMODERATEFORUM
|
static java.lang.String |
OP_SHOWMOVETOPIC
|
static java.lang.String |
OP_SHOWODELETETOPIC
|
static java.lang.String |
OP_SHOWSPLITTOPIC
|
static java.lang.String |
OP_SHOWTOPIC
|
static java.lang.String |
OP_SHOWUSERPROFILE
|
private java.lang.String |
OP_SHOWWATCHEDFORUMS
|
private java.lang.String |
OP_SHOWWATCHEDTOPICS
|
private ProxyInfo |
proxyInfo
|
private ForumsTheme |
theme
|
Fields inherited from class org.jboss.portlet.JBossPortlet |
|
Constructor Summary | |
ForumsPortlet()
|
Methods inherited from class org.jboss.portlet.JBossPortlet |
destroy, doDispatch, doHelp, getInitParameter, getInitParameterNames, getOperationName, getPortletConfig, getPortletContext, getPortletName, getResourceBundle, getTitle, init, processAction, processAction, processDispatch, processEdit, processHelp, processView, render, render |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private final java.lang.String OP_MAIN
public static final java.lang.String OP_SHOWFORUM
private final java.lang.String OP_POSTING
public static final java.lang.String OP_SHOWTOPIC
public static final java.lang.String OP_SHOWADMINFORUMS
public static final java.lang.String OP_SHOWMODERATEFORUM
public static final java.lang.String OP_SHOWMOVETOPIC
public static final java.lang.String OP_SHOWODELETETOPIC
public static final java.lang.String OP_SHOWSPLITTOPIC
public static final java.lang.String OP_SHOWUSERPROFILE
private final java.lang.String OP_SHOWADDEDITFORUM
private final java.lang.String OP_SHOWEDITCATEGORY
private final java.lang.String OP_SHOWDELETEFORUM
private final java.lang.String OP_CONFIRM
private final java.lang.String OP_SHOWWATCHEDTOPICS
private final java.lang.String OP_SHOWWATCHEDFORUMS
private ForumsTheme theme
private ProxyInfo proxyInfo
private CLLoader loader
private ForumsModule forumsModule
Constructor Detail |
public ForumsPortlet()
Method Detail |
public void init() throws PortletException
init
in class JBossPortlet
PortletException
- DOCUMENT_MEpublic java.lang.String getDefaultOperation()
JBossPortlet
getDefaultOperation
in class JBossPortlet
protected void doEdit(JBossRenderRequest req, JBossRenderResponse resp) throws PortletException, java.io.IOException
doEdit
in class JBossPortlet
req
- Portlet render requestresp
- Portlet response request
PortletException
- For any unexpected exception
java.io.IOException
- If cannot write HTML chunkprotected void doView(JBossRenderRequest req, JBossRenderResponse resp) throws PortletException, java.io.IOException
doView
in class JBossPortlet
req
- Portlet render requestresp
- Portlet response request
PortletException
- For any unexpected exception
java.io.IOException
- If cannot write HTML chunkpublic void navigation(JBossActionRequest request, JBossActionResponse response) throws CommandException
CommandException
public void moderate_forum(JBossActionRequest request, JBossActionResponse response) throws CommandException
request
- response
-
CommandException
public void preferences(JBossActionRequest request, JBossActionResponse response) throws CommandException
CommandException
public void posting(JBossActionRequest request, JBossActionResponse response) throws CommandException
request
- JBoss action requestresponse
- JBoss action response
CommandException
CommandException
- DOCUMENT_MEpublic void admin_forums(JBossActionRequest req, JBossActionResponse resp)
req
- JBoss Action Requestresp
- JBoss Action Responseprivate DelegateContext fillShowIndexContext(JBossRenderRequest req, JBossRenderResponse resp, DelegateContext root)
private DelegateContext fillShowCategoryContext(JBossRenderRequest req, JBossRenderResponse resp, DelegateContext root, Category category)
private DelegateContext fillShowForumContext(JBossRenderRequest req, JBossRenderResponse resp, DelegateContext root)
private DelegateContext fillShowPreferencesContext(JBossRenderRequest req, JBossRenderResponse resp, DelegateContext root)
private DelegateContext fillShowUserProfileContext(JBossRenderRequest req, JBossRenderResponse resp, DelegateContext root)
private DelegateContext fillShowBlockTopicsContext(JBossRenderRequest req, JBossRenderResponse resp, DelegateContext root)
private DelegateContext fillShowNewTopicContext(JBossRenderRequest req, JBossRenderResponse resp, DelegateContext root)
private DelegateContext fillShowSplitTopicContext(JBossRenderRequest req, JBossRenderResponse resp, DelegateContext root)
private DelegateContext fillShowTopicContext(JBossRenderRequest req, JBossRenderResponse resp, DelegateContext root)
private DelegateContext fillShowAddEditForumContext(JBossRenderRequest req, JBossRenderResponse resp, DelegateContext root)
private DelegateContext fillShowAdminForumsContext(JBossRenderRequest req, JBossRenderResponse resp, DelegateContext root)
private DelegateContext fillShowModerateForumContext(JBossRenderRequest req, JBossRenderResponse resp, DelegateContext root)
public void forum_watches(JBossActionRequest req, JBossActionResponse resp)
req
- DOCUMENT_MEresp
- DOCUMENT_MEpublic void topic_watches(JBossActionRequest req, JBossActionResponse resp)
req
- DOCUMENT_MEresp
- DOCUMENT_MEprivate DelegateContext fillShowWatchedForums(JBossRenderRequest req, JBossRenderResponse resp, DelegateContext root)
public java.lang.String formatTitle(PortletRequest req, java.lang.String text)
text
- DOCUMENT_ME
public java.lang.String formatMessage(PortletRequest req, java.lang.String text, boolean allowBBCode, boolean allowHTML)
text
- DOCUMENT_MEallowBBCode
- DOCUMENT_MEallowHTML
- DOCUMENT_ME
public java.lang.String formatSignature(PortletRequest req, java.lang.String text, boolean allowBBCode, boolean allowHTML)
text
- DOCUMENT_MEallowBBCode
- DOCUMENT_MEallowHTML
- DOCUMENT_ME
public java.lang.String formatUserName(User user)
public Result executeForumCommand(JBossActionRequest request, JBossActionResponse response, ForumCommand cmd) throws CommandException
cmd
- DOCUMENT_ME
CommandException
- DOCUMENT_MEpublic void addErrorMessage(JBossActionResponse resp, java.lang.String key, java.lang.String error)
resp
- DOCUMENT_MEkey
- DOCUMENT_MEerror
- DOCUMENT_MEpublic void addSuccessMessage(JBossActionResponse resp, java.lang.String key, java.lang.String success)
resp
- DOCUMENT_MEkey
- DOCUMENT_MEsuccess
- DOCUMENT_MEpublic java.text.SimpleDateFormat getSDF(PortletRequest req)
SimpleDateFormat
object from the session. The object is stored in the session because it is
expensive to create and we want to reuse it as much as we can. Also it is configured with the date format taken
from the preference of the user if it exists.
req
- the request that maybe contains the format object
private ToHTMLRenderer getToHTMLRenderer(PortletRequest req)
public AttachmentTokenManager getAttachmentManager(PortletRequest req)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |