bioroot.oligo
Class OligoModify

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bybioroot.oligo.OligoModify
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class OligoModify
extends javax.servlet.http.HttpServlet

Servlet to modify oligos using OligoBeans referenced from a Session object.

Author:
nix
See Also:
Serialized Form

Constructor Summary
OligoModify()
           
 
Method Summary
static java.lang.String deleteOligo(OligoBean oligoBean, UserBean userBean, DBUtil bioRoot)
          Attempts to delete an oligo, 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 subtractAndSetOligoBeans(OligoBean[] oligoBeans, javax.servlet.http.HttpSession session)
          Subtracts a bean from the OligoBean[] and resets it in oligoBeansToEdit
static java.lang.String updateOligo(OligoBean oligoBean, UserBean userBean, javax.servlet.http.HttpServletRequest request, DBUtil bioRoot)
          Attempts to update an OligoBean 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
 

Constructor Detail

OligoModify

public OligoModify()
Method Detail

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

deleteOligo

public static java.lang.String deleteOligo(OligoBean oligoBean,
                                           UserBean userBean,
                                           DBUtil bioRoot)
Attempts to delete an oligo, if sucessful, returns a "" String, otherwise an error message.


updateOligo

public static java.lang.String updateOligo(OligoBean oligoBean,
                                           UserBean userBean,
                                           javax.servlet.http.HttpServletRequest request,
                                           DBUtil bioRoot)
Attempts to update an OligoBean 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.


subtractAndSetOligoBeans

public static boolean subtractAndSetOligoBeans(OligoBean[] oligoBeans,
                                               javax.servlet.http.HttpSession session)
Subtracts a bean from the OligoBean[] and resets it in oligoBeansToEdit