|
||||||||||
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 | |
static java.lang.String |
OP_SHOWADMINFORUMS
|
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
|
Constructor Summary | |
ForumsPortlet()
|
Method Summary | |
void |
addErrorMessage(JBossActionResponse resp,
java.lang.String key,
java.lang.String error)
DOCUMENT_ME |
void |
addSuccessMessage(JBossActionResponse resp,
java.lang.String key,
java.lang.String success)
DOCUMENT_ME |
void |
admin_forums(JBossActionRequest req,
JBossActionResponse resp)
admin_forums operation |
protected void |
doEdit(JBossRenderRequest req,
JBossRenderResponse resp)
doEdit Portlet method |
protected void |
doView(JBossRenderRequest req,
JBossRenderResponse resp)
doView Portlet method |
Result |
executeForumCommand(JBossActionRequest request,
JBossActionResponse response,
ForumCommand cmd)
DOCUMENT_ME |
java.lang.String |
formatMessage(PortletRequest req,
java.lang.String text,
boolean allowBBCode,
boolean allowHTML)
DOCUMENT_ME |
java.lang.String |
formatSignature(PortletRequest req,
java.lang.String text,
boolean allowBBCode,
boolean allowHTML)
DOCUMENT_ME |
java.lang.String |
formatTitle(PortletRequest req,
java.lang.String text)
DOCUMENT_ME |
java.lang.String |
formatUserName(User user)
|
void |
forum_watches(JBossActionRequest req,
JBossActionResponse resp)
DOCUMENT_ME |
AttachmentTokenManager |
getAttachmentManager(PortletRequest req)
|
java.lang.String |
getDefaultOperation()
Return the string main, it can be overriden to return another value by subclasses. |
java.text.SimpleDateFormat |
getSDF(PortletRequest req)
Get a SimpleDateFormat object from the session. |
void |
init()
Initialization method of the portlet |
void |
moderate_forum(JBossActionRequest request,
JBossActionResponse response)
Method do action processing for Moderator functions from moderator panel in forum view and moderator bar in topic view. |
void |
navigation(JBossActionRequest request,
JBossActionResponse response)
|
void |
posting(JBossActionRequest request,
JBossActionResponse response)
posting operation |
void |
preferences(JBossActionRequest request,
JBossActionResponse response)
|
void |
topic_watches(JBossActionRequest req,
JBossActionResponse resp)
DOCUMENT_ME |
Methods inherited from class org.jboss.portlet.JBossPortlet |
destroy, doDispatch, doDispatch, doEdit, doHelp, getInitParameter, getInitParameterNames, getOperationName, getPortletConfig, getPortletContext, getPortletName, getResourceBundle, getTitle, init, processAction, processAction, render, render |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String OP_SHOWFORUM
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
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 Responsepublic void forum_watches(JBossActionRequest req, JBossActionResponse resp)
req
- DOCUMENT_MEresp
- DOCUMENT_MEpublic void topic_watches(JBossActionRequest req, JBossActionResponse resp)
req
- DOCUMENT_MEresp
- DOCUMENT_MEpublic 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
public AttachmentTokenManager getAttachmentManager(PortletRequest req)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |