lumis.service.forum
Class ForumProcessActionHandler

Package class diagram package ForumProcessActionHandler
java.lang.Object
  extended by lumis.doui.processaction.ProcessActionHandler<Source>
      extended by 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

Field Summary
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
           
 
Fields inherited from class lumis.doui.processaction.ProcessActionHandler
douiContext, 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
ForumProcessActionHandler()
           
 
Method Summary
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()
           
 
Methods inherited from class lumis.doui.processaction.ProcessActionHandler
addDefaultResponse, addResponseParameter, checkServiceInstancePermission, checkServiceInstancePermission, getParameter, getParameter, getResource, getServiceInterfaceHyperLink, getUrl, init, localize, processHyperLinkResponse, processPopupInterfaceResponse, resolveFieldValueNode, setParameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOPIC_ADD

public static final String TOPIC_ADD
See Also:
Constant Field Values

TOPIC_DELETE

public static final String TOPIC_DELETE
See Also:
Constant Field Values

TOPIC_LOCK

public static final String TOPIC_LOCK
See Also:
Constant Field Values

TOPIC_UNLOCK

public static final String TOPIC_UNLOCK
See Also:
Constant Field Values

MESSAGE_ADD

public static final String MESSAGE_ADD
See Also:
Constant Field Values

MESSAGE_EDIT

public static final String MESSAGE_EDIT
See Also:
Constant Field Values

MESSAGE_DELETE

public static final String MESSAGE_DELETE
See Also:
Constant Field Values

CATEGORY_DELETE

public static final String CATEGORY_DELETE
See Also:
Constant Field Values

FORUM_LOCK

public static final String FORUM_LOCK
See Also:
Constant Field Values

FORUM_UNLOCK

public static final String FORUM_UNLOCK
See Also:
Constant Field Values
Constructor Detail

ForumProcessActionHandler

public ForumProcessActionHandler()
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(String topicId,
                                    ITransaction transaction,
                                    boolean checkForumLocked)
                             throws PortalException
Throws:
PortalException

isTopicLocked

public static boolean isTopicLocked(String topicId,
                                    ITransaction transaction)
                             throws PortalException
Throws:
PortalException

isForumLocked

public static boolean isForumLocked(String forumId,
                                    ITransaction transaction)
                             throws PortalException
Throws:
PortalException

isForumModerator

public static boolean isForumModerator(SessionConfig sessionConfig,
                                       String forumId,
                                       String currentUserId,
                                       ITransaction transaction)
                                throws PortalException
Throws:
PortalException


Lumisportal  4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.