object.common
Class Convert

java.lang.Object
  extended by object.common.Convert
All Implemented Interfaces:
java.io.Serializable

public class Convert
extends java.lang.Object
implements java.io.Serializable

Description
Allow to convert annotations following the parameters received from the JSP page
Infos : KLB - IPMC - 02/2008

See Also:
Serialized Form

Field Summary
private  java.lang.String file
          Name of file if query is from an upload file
private  java.lang.String file_res
          Name of results file
private  java.lang.String legende
          Legende
private  int nb_fields
           
private  java.lang.String[] orderedKeys
           
private  int organism_id
          ID of the Organism concerning by the conversion operation
protected static java.lang.String pathTmp
           
private  java.util.Hashtable results
          results of conversion
private  java.lang.String type_convert
          Type of conversion
private  int user_id
          ID of the User processing the request
 
Constructor Summary
Convert(int user_id)
          Default constructor
 
Method Summary
 java.lang.String getFile_res()
          Name of results file
 java.lang.String getFile()
          Name of file if query is from an upload file
 java.lang.String getLegende()
          legende
 int getNb_fields()
          nb_fields returns
 java.lang.String[] getOrderedKeys()
          IDs search searched as user request
 int getOrganism_id()
          ID of the Organism concerning by the search
 java.util.Hashtable getResults()
          Results of conversion
 java.lang.String getType_convert()
          Type of conversion
 int getUser_id()
          ID of the Organism concerning by the search
 void loadParams(java.util.Hashtable params, java.lang.String path)
          This function load parameters from Html Form.
 void proceed()
          This function proceed to the annotation conversion
 void setFile_res(java.lang.String file_res)
           
 void setFile(java.lang.String file)
           
 void setLegende(java.lang.String legende)
           
 void setNb_fields(int nb_fields)
           
 void setOrderedKeys(java.lang.String[] orderedKeys)
           
 void setOrganism_id(int organism_id)
           
 void setResults(java.util.Hashtable results)
           
 void setStaticParams(java.util.Hashtable configFields)
          This function initialize static parameters of Search Objects --> see : nbResultsParPAge and NB_MAX_RESULTS
 void setType_convert(java.lang.String type_convert)
           
 void setUser_id(int user_id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type_convert

private java.lang.String type_convert
Type of conversion


legende

private java.lang.String legende
Legende


file

private java.lang.String file
Name of file if query is from an upload file


file_res

private java.lang.String file_res
Name of results file


results

private java.util.Hashtable results
results of conversion


organism_id

private int organism_id
ID of the Organism concerning by the conversion operation


user_id

private int user_id
ID of the User processing the request


nb_fields

private int nb_fields

orderedKeys

private java.lang.String[] orderedKeys

pathTmp

protected static java.lang.String pathTmp
Constructor Detail

Convert

public Convert(int user_id)
Default constructor

Method Detail

setStaticParams

public void setStaticParams(java.util.Hashtable configFields)
This function initialize static parameters of Search Objects --> see : nbResultsParPAge and NB_MAX_RESULTS


getType_convert

public java.lang.String getType_convert()
Type of conversion


setType_convert

public void setType_convert(java.lang.String type_convert)

getLegende

public java.lang.String getLegende()
legende


setLegende

public void setLegende(java.lang.String legende)

getFile

public java.lang.String getFile()
Name of file if query is from an upload file


setFile

public void setFile(java.lang.String file)

getFile_res

public java.lang.String getFile_res()
Name of results file


setFile_res

public void setFile_res(java.lang.String file_res)

getOrganism_id

public int getOrganism_id()
ID of the Organism concerning by the search


setOrganism_id

public void setOrganism_id(int organism_id)

getResults

public java.util.Hashtable getResults()
Results of conversion


setResults

public void setResults(java.util.Hashtable results)

getUser_id

public int getUser_id()
ID of the Organism concerning by the search


setUser_id

public void setUser_id(int user_id)

getOrderedKeys

public java.lang.String[] getOrderedKeys()
IDs search searched as user request


setOrderedKeys

public void setOrderedKeys(java.lang.String[] orderedKeys)

getNb_fields

public int getNb_fields()
nb_fields returns


setNb_fields

public void setNb_fields(int nb_fields)

loadParams

public void loadParams(java.util.Hashtable params,
                       java.lang.String path)
This function load parameters from Html Form. If everything ok it calls proceed() medthod.

Parameters:
params - Hashtable containing all the parameters needed to initialize the Convert Object
- key 'organism' : ID of an existing Organism Object
- key 'type_convert'
- key 'file' : name of the file uploaded
path - absolute path to the file uploaded
See Also:
proceed()

proceed

public void proceed()
This function proceed to the annotation conversion