public class ForumProcessActionHandler extends ProcessActionHandler<Source>
Modifier and Type | Field and Description |
---|---|
static String |
CATEGORY_DELETE |
static String |
FORUM_LOCK |
static String |
FORUM_UNLOCK |
static String |
MESSAGE_ADD |
static String |
MESSAGE_DELETE |
static String |
MESSAGE_EDIT |
static String |
TOPIC_ADD |
static String |
TOPIC_DELETE |
static String |
TOPIC_LOCK |
static String |
TOPIC_UNLOCK |
static String |
VALIDATE_HTML_CONTENT |
douiContext, id, localizationManager, parameters, processActionContainer, processActionNode, RESPONSE_TYPE_CLOSE_WINDOW, RESPONSE_TYPE_HYPERLINK, RESPONSE_TYPE_MESSAGE, RESPONSE_TYPE_POPUP_INTERFACE, RESPONSE_TYPE_PREVIEW, RESPONSE_TYPE_REFRESH_PARENT, RESPONSE_TYPE_REQUEST_PROCESS_ACTION_CONFIRMATION_MESSAGE, RESPONSE_TYPE_REQUEST_PROCESS_ACTION_CONFIRMATION_PROCESS_ACTION_ID, RESPONSE_TYPE_RUN_JAVASCRIPT, RESPONSE_TYPE_SET_REQUEST_ATTRIBUTES, RESPONSE_TYPE_SET_REQUEST_PARAMETERS, RESPONSE_TYPE_SET_RESPONSE_PARAMETERS, RESPONSE_TYPE_STANDARD_COMMIT, RESPONSE_TYPE_STANDARD_EMBEDDED, RESPONSE_TYPE_STANDARD_POPUP, RESPONSE_TYPE_VALIDATE_PROCESS_ACTION_ON_RENDER, sessionConfig, source, sourceContainer, transaction
Constructor and Description |
---|
ForumProcessActionHandler() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isForumLocked(String forumId,
ITransaction transaction) |
static boolean |
isForumModerator(SessionConfig sessionConfig,
String forumId,
String currentUserId,
ITransaction transaction) |
static boolean |
isTopicLocked(String topicId,
ITransaction transaction) |
static boolean |
isTopicLocked(String topicId,
ITransaction transaction,
boolean checkForumLocked) |
void |
processAction()
Executes the process action.
|
protected void |
processAddMessage() |
protected void |
processAddTopic() |
protected void |
processDeleteCategory() |
protected void |
processDeleteMessage() |
protected void |
processDeleteTopic() |
protected void |
processEditMessage() |
protected void |
processLockForum() |
protected void |
processLockTopic() |
protected void |
processUnlockForum() |
protected void |
processUnlockTopic() |
void |
validateHTMLContent(String html)
This method validate the HTML content sent by user.
|
addDefaultResponse, addResponseParameter, checkServiceInstancePermission, checkServiceInstancePermission, containsParameter, getId, getParameter, getParameter, getResource, getServiceInterfaceHyperLink, getUrl, init, localize, processHyperLinkResponse, processPopupInterfaceResponse, resolveFieldValueNode, setParameter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asParameters, emptyParameters
public static final String TOPIC_ADD
public static final String TOPIC_DELETE
public static final String TOPIC_LOCK
public static final String TOPIC_UNLOCK
public static final String MESSAGE_ADD
public static final String MESSAGE_EDIT
public static final String MESSAGE_DELETE
public static final String CATEGORY_DELETE
public static final String FORUM_LOCK
public static final String FORUM_UNLOCK
public static final String VALIDATE_HTML_CONTENT
public void processAction() throws PortalException
IProcessActionHandler
This method may execute the process action based on the parameters and node specifications passed to it earlier.
PortalException
protected void processDeleteCategory() throws PortalException
PortalException
protected void processUnlockForum() throws PortalException
PortalException
protected void processLockForum() throws PortalException
PortalException
protected void processUnlockTopic() throws PortalException
PortalException
protected void processLockTopic() throws PortalException
PortalException
protected void processAddTopic() throws PortalException
PortalException
protected void processAddMessage() throws PortalException
PortalException
protected void processEditMessage() throws PortalException
PortalException
protected void processDeleteTopic() throws PortalException
PortalException
protected void processDeleteMessage() throws PortalException
PortalException
public static boolean isTopicLocked(String topicId, ITransaction transaction, boolean checkForumLocked) throws PortalException
PortalException
public static boolean isTopicLocked(String topicId, ITransaction transaction) throws PortalException
PortalException
public static boolean isForumLocked(String forumId, ITransaction transaction) throws PortalException
PortalException
public static boolean isForumModerator(SessionConfig sessionConfig, String forumId, String currentUserId, ITransaction transaction) throws PortalException
PortalException
public void validateHTMLContent(String html) throws PortalException, SAXException
html
- HTML to be validated.PortalException
- if the content of HTML has some invalid element.SAXException
LumisXP 12.2.0.200122 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.