java.lang.Object
org.apache.struts.action.Action
com.RuntimeCollective.webapps.action.ApproveOrRejectModeratedAction
- public class ApproveOrRejectModeratedAction
- extends org.apache.struts.action.Action
Action which mark a Moderated as being approved or rejected.
Then moderatedExtension's id (*not* the moderatedBean's id)
and the action ("approve", or "reject") are passed as parameter.
If rejected, the bean will be processed according to the rejectAction
parameter. For now the only supported action is "delete", which, well,
deletes the moderatedExtension and teh moderatedBean.
Only the moderator can perform this.
- Version:
- $Id: ApproveOrRejectModeratedAction.java,v 1.4 2003/09/30 15:13:07 joe Exp $
| Methods inherited from class org.apache.struts.action.Action |
addErrors, addMessages, execute, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApproveOrRejectModeratedAction
public ApproveOrRejectModeratedAction()
perform
public org.apache.struts.action.ActionForward perform(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
- Sets on or off the Editor Role of a User.
The following Forwards are returned:
success - local forward if it worked
failure - local forward to go to if there was a problem
cancel - local forward to go to if the action was cancelled.
The following error messages are returned:
error.db.connection - if there was a problem connecting to the database
getModeratorForExtension
public com.RuntimeCollective.webapps.bean.User getModeratorForExtension(com.RuntimeCollective.webapps.bean.ModeratedExtension extension)
- Can be subclassed if necessary (see bboards).
Ideally this should be in specific strategies.