bioroot.antibody
Class AntibodySpreadSheet

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

public class AntibodySpreadSheet
extends javax.servlet.http.HttpServlet

Author:
nix
See Also:
Serialized Form

Constructor Summary
AntibodySpreadSheet()
           
 
Method Summary
static int addBlankLines(AntibodyBean bean, java.lang.String[] items, int k)
          Adds "" to items base on the number of preps and uses in the antibody bean.
static int addUseDilutionBlankLines(boolean useDilutionsPresent, java.lang.String[] items, AntibodyPrep prep, int k, DBUtil bioRoot)
          Adds "" to items based on the number of use dilutions present in the Antibody Prep bean.
 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 AntibodyBean[] fetchAntibodyBeans(java.lang.String sql, DBUtil bioRoot)
          Build AntibodyBean[] from Antibody table in database.
static java.lang.String fetchAntibodyTableRows(UserBean userBean, AntibodyBean[] beans, int[] startStop, DBUtil bioRoot, boolean checked, boolean allTabs)
          Returns table rows for every oligo according to a Preference, if allTabs==true, then all features are returned in a tab delimited format, otherwise its HTML.
static void makeAndSetAntibodyBeans(javax.servlet.http.HttpSession session, DBUtil bioRoot, UserBean userBean)
          Makes an array of AntibodyBeans based on Users AntibodyPreferences and sets them in the session.
static AntibodyBean[] orderAntibodies(java.lang.String featureName, UserBean userBean, AntibodyBean[] beans, DBUtil bioRoot)
          Orders antibodys, sort of nasty, can't figure another way, reflection is way too slow.
 
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

AntibodySpreadSheet

public AntibodySpreadSheet()
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

makeAndSetAntibodyBeans

public static void makeAndSetAntibodyBeans(javax.servlet.http.HttpSession session,
                                           DBUtil bioRoot,
                                           UserBean userBean)
Makes an array of AntibodyBeans based on Users AntibodyPreferences and sets them in the session.


fetchAntibodyTableRows

public static java.lang.String fetchAntibodyTableRows(UserBean userBean,
                                                      AntibodyBean[] beans,
                                                      int[] startStop,
                                                      DBUtil bioRoot,
                                                      boolean checked,
                                                      boolean allTabs)
Returns table rows for every oligo according to a Preference, if allTabs==true, then all features are returned in a tab delimited format, otherwise its HTML. Set startStop to 0,0 if you want everything.


addBlankLines

public static int addBlankLines(AntibodyBean bean,
                                java.lang.String[] items,
                                int k)
Adds "" to items base on the number of preps and uses in the antibody bean.


addUseDilutionBlankLines

public static int addUseDilutionBlankLines(boolean useDilutionsPresent,
                                           java.lang.String[] items,
                                           AntibodyPrep prep,
                                           int k,
                                           DBUtil bioRoot)
Adds "" to items based on the number of use dilutions present in the Antibody Prep bean.


fetchAntibodyBeans

public static AntibodyBean[] fetchAntibodyBeans(java.lang.String sql,
                                                DBUtil bioRoot)
Build AntibodyBean[] from Antibody table in database.


orderAntibodies

public static AntibodyBean[] orderAntibodies(java.lang.String featureName,
                                             UserBean userBean,
                                             AntibodyBean[] beans,
                                             DBUtil bioRoot)
Orders antibodys, sort of nasty, can't figure another way, reflection is way too slow.