Package lumis.service.forum
Class ForumProcessActionHandler
- java.lang.Object
-
- lumis.doui.processaction.ProcessActionHandler<Source>
-
- lumis.service.forum.ForumProcessActionHandler
-
- All Implemented Interfaces:
IProcessActionHandler
,IParameters
public class ForumProcessActionHandler extends ProcessActionHandler<Source>
Class responsible for executing maintence actions on forum entities.- Since:
- 4.0.5
- Version:
- $Revision: 22372 $ $Date: 2019-02-06 19:01:54 -0200 (Wed, 06 Feb 2019) $
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CATEGORY_DELETE
static java.lang.String
FORUM_LOCK
static java.lang.String
FORUM_UNLOCK
static java.lang.String
MESSAGE_ADD
static java.lang.String
MESSAGE_DELETE
static java.lang.String
MESSAGE_EDIT
static java.lang.String
TOPIC_ADD
static java.lang.String
TOPIC_DELETE
static java.lang.String
TOPIC_LOCK
static java.lang.String
TOPIC_UNLOCK
static java.lang.String
VALIDATE_HTML_CONTENT
-
Fields inherited from class lumis.doui.processaction.ProcessActionHandler
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 Summary
Constructors Constructor Description ForumProcessActionHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
isForumLocked(java.lang.String forumId, ITransaction transaction)
static boolean
isForumModerator(SessionConfig sessionConfig, java.lang.String forumId, java.lang.String currentUserId, ITransaction transaction)
static boolean
isTopicLocked(java.lang.String topicId, ITransaction transaction)
static boolean
isTopicLocked(java.lang.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(java.lang.String html)
This method validate the HTML content sent by user.-
Methods inherited from class lumis.doui.processaction.ProcessActionHandler
addDefaultResponse, addResponseParameter, checkServiceInstancePermission, checkServiceInstancePermission, containsParameter, getId, getParameter, getParameter, getResource, getServiceInterfaceHyperLink, getUrl, init, localize, processHyperLinkResponse, processPopupInterfaceResponse, resolveFieldValueNode, setParameter
-
-
-
-
Field Detail
-
TOPIC_ADD
public static final java.lang.String TOPIC_ADD
- See Also:
- Constant Field Values
-
TOPIC_DELETE
public static final java.lang.String TOPIC_DELETE
- See Also:
- Constant Field Values
-
TOPIC_LOCK
public static final java.lang.String TOPIC_LOCK
- See Also:
- Constant Field Values
-
TOPIC_UNLOCK
public static final java.lang.String TOPIC_UNLOCK
- See Also:
- Constant Field Values
-
MESSAGE_ADD
public static final java.lang.String MESSAGE_ADD
- See Also:
- Constant Field Values
-
MESSAGE_EDIT
public static final java.lang.String MESSAGE_EDIT
- See Also:
- Constant Field Values
-
MESSAGE_DELETE
public static final java.lang.String MESSAGE_DELETE
- See Also:
- Constant Field Values
-
CATEGORY_DELETE
public static final java.lang.String CATEGORY_DELETE
- See Also:
- Constant Field Values
-
FORUM_LOCK
public static final java.lang.String FORUM_LOCK
- See Also:
- Constant Field Values
-
FORUM_UNLOCK
public static final java.lang.String FORUM_UNLOCK
- See Also:
- Constant Field Values
-
VALIDATE_HTML_CONTENT
public static final java.lang.String VALIDATE_HTML_CONTENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
processAction
public void processAction() throws PortalException
Description copied from interface:IProcessActionHandler
Executes the process action.This method may execute the process action based on the parameters and node specifications passed to it earlier.
- Throws:
PortalException
-
processDeleteCategory
protected void processDeleteCategory() throws PortalException
- Throws:
PortalException
-
processUnlockForum
protected void processUnlockForum() throws PortalException
- Throws:
PortalException
-
processLockForum
protected void processLockForum() throws PortalException
- Throws:
PortalException
-
processUnlockTopic
protected void processUnlockTopic() throws PortalException
- Throws:
PortalException
-
processLockTopic
protected void processLockTopic() throws PortalException
- Throws:
PortalException
-
processAddTopic
protected void processAddTopic() throws PortalException
- Throws:
PortalException
-
processAddMessage
protected void processAddMessage() throws PortalException
- Throws:
PortalException
-
processEditMessage
protected void processEditMessage() throws PortalException
- Throws:
PortalException
-
processDeleteTopic
protected void processDeleteTopic() throws PortalException
- Throws:
PortalException
-
processDeleteMessage
protected void processDeleteMessage() throws PortalException
- Throws:
PortalException
-
isTopicLocked
public static boolean isTopicLocked(java.lang.String topicId, ITransaction transaction, boolean checkForumLocked) throws PortalException
- Throws:
PortalException
-
isTopicLocked
public static boolean isTopicLocked(java.lang.String topicId, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
isForumLocked
public static boolean isForumLocked(java.lang.String forumId, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
isForumModerator
public static boolean isForumModerator(SessionConfig sessionConfig, java.lang.String forumId, java.lang.String currentUserId, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
validateHTMLContent
public void validateHTMLContent(java.lang.String html) throws PortalException, org.xml.sax.SAXException
This method validate the HTML content sent by user.- Parameters:
html
- HTML to be validated.- Throws:
PortalException
- if the content of HTML has some invalid element.org.xml.sax.SAXException
- Since:
- 6.2.0
-
-