java.lang.Object
org.apache.struts.action.Action
com.RuntimeCollective.content.action.NoteAction
- public class NoteAction
- extends org.apache.struts.action.Action
An action which adds a Note to a bean, by linking a new TextComponent from
the bean under a given role.
- Version:
- $Id: NoteAction.java,v 1.4 2003/09/30 15:12:46 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 |
NoteAction
public NoteAction()
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
- Edit and Delete actions are not implemented yet.
FIXME : could be made to use PermissibleAction or BaseUserAction.
What the action will do will depend on the "formAction" attribute, one of:
- "add" Create a TextComponent, and link it.
- "edit" Modify a linked TextComponent.
- "delete" Delete a linked TextComponent.
The following Forwards are returned:
failure - local forward to go to if there was a problem editing the class.
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.
getLinkedBeans
protected java.util.List getLinkedBeans(int[] array)
- Load the linked beans.