bioroot.plasmid
Class PlasmidModify
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
bioroot.plasmid.PlasmidModify
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class PlasmidModify
- extends javax.servlet.http.HttpServlet
Servlet to modify plasmids using PlasmidBeans referenced from a Session object.
- Author:
- nix
- See Also:
- Serialized Form
Method Summary |
static java.lang.String |
deletePlasmid(PlasmidBean plasmidBean,
UserBean userBean,
DBUtil bioRoot)
Attempts to delete an plasmid, if sucessful, returns a "" String, otherwise an error message. |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
static boolean |
subtractAndSetPlasmidBeans(PlasmidBean[] plasmidBeans,
javax.servlet.http.HttpSession session)
Subtracts a bean from the PlasmidBean[] and resets it in plasmidBeansToEdit |
static java.lang.String |
updatePlasmid(PlasmidBean bean,
UserBean userBean,
java.util.HashMap nameValue,
javax.servlet.http.HttpServletRequest request,
DBUtil bioRoot)
Attempts to update a PlasmidBean in the database, only checks that the name is unique if it has changed. |
Methods inherited from class javax.servlet.http.HttpServlet |
service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlasmidModify
public PlasmidModify()
doGet
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- Throws:
javax.servlet.ServletException
java.io.IOException
doPost
public void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- Throws:
javax.servlet.ServletException
java.io.IOException
deletePlasmid
public static java.lang.String deletePlasmid(PlasmidBean plasmidBean,
UserBean userBean,
DBUtil bioRoot)
- Attempts to delete an plasmid, if sucessful, returns a "" String, otherwise an error message.
updatePlasmid
public static java.lang.String updatePlasmid(PlasmidBean bean,
UserBean userBean,
java.util.HashMap nameValue,
javax.servlet.http.HttpServletRequest request,
DBUtil bioRoot)
- Attempts to update a PlasmidBean in the database, only checks that the name is unique if it has changed.
If the update is sucessful, the message will be "", otherwise an error message will be returned.
subtractAndSetPlasmidBeans
public static boolean subtractAndSetPlasmidBeans(PlasmidBean[] plasmidBeans,
javax.servlet.http.HttpSession session)
- Subtracts a bean from the PlasmidBean[] and resets it in plasmidBeansToEdit