java.lang.Object
BaseAction
com.RuntimeCollective.webapps.action.BaseForwardAction
com.RuntimeCollective.webapps.action.BaseUserAction
com.RuntimeCollective.permission.action.PermissibleAction
com.RuntimeCollective.permission.action.AuthenticatedAction
com.RuntimeCollective.bboard.action.ComplexEditTopicAction
- Direct Known Subclasses:
- EditModeratedTopicAction
- public class ComplexEditTopicAction
- extends com.RuntimeCollective.permission.action.AuthenticatedAction
Implementation of Action that create/edit/delete a Topic,
within a Board set as a session parameter under its class name.
- Version:
- $Id: ComplexEditTopicAction.java,v 1.23 2003/10/08 11:25:25 matt Exp $
|
Method Summary |
void |
executeLogic(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Create a new Topic, or edit or delete an existing one,
depending on the value of ClassForm.action property, within
a Board set as a session parameter under its class name. |
com.RuntimeCollective.bboard.bean.Board |
getBoard(com.RuntimeCollective.bboard.form.ComplexTopicForm topicForm,
javax.servlet.http.HttpServletRequest request)
|
com.RuntimeCollective.bboard.bean.Topic |
getTopic(com.RuntimeCollective.bboard.form.ComplexTopicForm topicForm,
javax.servlet.http.HttpServletRequest request)
|
protected void |
validateRequest(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Ensure the action is set to a value we understand,
and that we have a valid board on the session |
| Methods inherited from class com.RuntimeCollective.webapps.action.BaseForwardAction |
findFailure, findSuccess, forward, getToken, isTokenValid, iterate, resetToken, saveToken, setFailureForward, setSuccessForward, setSuccessForward, setSuccessForward, setToken, validForm |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComplexEditTopicAction
public ComplexEditTopicAction()
validateRequest
protected void validateRequest(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
- Ensure the action is set to a value we understand,
and that we have a valid board on the session
getBoard
public com.RuntimeCollective.bboard.bean.Board getBoard(com.RuntimeCollective.bboard.form.ComplexTopicForm topicForm,
javax.servlet.http.HttpServletRequest request)
getTopic
public com.RuntimeCollective.bboard.bean.Topic getTopic(com.RuntimeCollective.bboard.form.ComplexTopicForm topicForm,
javax.servlet.http.HttpServletRequest request)
executeLogic
public void executeLogic(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
- Create a new Topic, or edit or delete an existing one,
depending on the value of ClassForm.action property, within
a Board set as a session parameter under its class name.
The following Forwards are set:
failure - local forward to go to if there was a problem editing the class.
success - local forward to go to if the edition was successful.
createPreview - local foward to go to confirmation screen.
cancel - local forward to go to if the edition was cancelled.
The following error messages are returned:
error.db.connection - if there was a problem connecting to the database.