object.common
Class Attribution

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

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

Description
Attribution Object
Infos : KLB - IPMC - 02/2004

See Also:
Order, Serialized Form

Field Summary
private  java.lang.String currentReference
          Referrence of microarray or hts_sample
private  java.util.Date date_attribution
          Attribution Date
private  java.lang.String listing
          Listing of microarrays or Hts_sample references in attribution
private  java.lang.String message
          Information message displayed in JSP
private  int nb
          Number of arrays or hts samples to attribute to the Order Object
private  Order order
          Order Object in microarray attribution
private  int size_of_support
           
private  boolean stepOneDone
          Flag set to true when step one is done
private  java.util.Vector vectorHts_sample
          Vector of Hts_sample Object in attribution
private  java.util.Vector vectorMicroarray
          Vector of Microarray Object in attribution
 
Constructor Summary
Attribution()
          Default constructor
 
Method Summary
 void check()
          This function check if the last microarray slide_code scanned and stored in microarrayRef attribute is a good Microarray to be attributed to this Order :
- check if it exists in the database
- check if it has not been scanned before
- check if Microarray project type is ok whith this Order
 java.lang.String getCurrentReference()
          Referrence of microarray or hts_sample
 java.util.Date getDate_attribution()
          Attribution Date
 java.lang.String getListing()
          Listing of microarrays or Hts_sample references in attribution
 java.lang.String getMessage()
          Information message displayed in JSP
 int getNb()
          Number of arrays or hts samples to attribute to the Order Object
 Order getOrder()
          Order Object in microarray attribution
 int getSize_of_support()
          Number of arrays or hts samples currently to attribute to the Order Object
 boolean getStepOneDone()
          Flag set to true when step one is done
 java.util.Vector getVectorHts_sample()
          Vector of Hts_sample Object in attribution
 java.util.Vector getVectorMicroarray()
          Vector of Microarray Object in attribution
 void loadOtherFiles(java.lang.String fileName, User user)
          This function execute a complete attribution process from a pre-formatted file,
file which must have .medlab extension.
 void save(User user)
          This function save the attribution process concerning this Attribution Object
- update each Microarray Object
- if the microarray attribution for this Order Object is over update the Order
 void setCurrentReference(java.lang.String currentReference)
           
 void setDate_attribution(java.util.Date date_attribution)
           
 void setListing(java.lang.String listing)
           
 void setMessage(java.lang.String message)
           
 void setNb(int nb)
           
 void setOrder(Order order)
           
 void setStepOneDone(boolean stepOneDone)
           
 void setVectorHts_sample(java.util.Vector vectorHts_sample)
           
 void setVectorMicroarray(java.util.Vector vectorMicroarray)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

order

private Order order
Order Object in microarray attribution


nb

private int nb
Number of arrays or hts samples to attribute to the Order Object


date_attribution

private java.util.Date date_attribution
Attribution Date


listing

private java.lang.String listing
Listing of microarrays or Hts_sample references in attribution


vectorMicroarray

private java.util.Vector vectorMicroarray
Vector of Microarray Object in attribution


vectorHts_sample

private java.util.Vector vectorHts_sample
Vector of Hts_sample Object in attribution


currentReference

private java.lang.String currentReference
Referrence of microarray or hts_sample


stepOneDone

private boolean stepOneDone
Flag set to true when step one is done


message

private java.lang.String message
Information message displayed in JSP


size_of_support

private int size_of_support
Constructor Detail

Attribution

public Attribution()
Default constructor

Method Detail

getOrder

public Order getOrder()
Order Object in microarray attribution


setOrder

public void setOrder(Order order)

getNb

public int getNb()
Number of arrays or hts samples to attribute to the Order Object


setNb

public void setNb(int nb)

getDate_attribution

public java.util.Date getDate_attribution()
Attribution Date


setDate_attribution

public void setDate_attribution(java.util.Date date_attribution)

getVectorMicroarray

public java.util.Vector getVectorMicroarray()
Vector of Microarray Object in attribution


setVectorMicroarray

public void setVectorMicroarray(java.util.Vector vectorMicroarray)

getVectorHts_sample

public java.util.Vector getVectorHts_sample()
Vector of Hts_sample Object in attribution


setVectorHts_sample

public void setVectorHts_sample(java.util.Vector vectorHts_sample)

getListing

public java.lang.String getListing()
Listing of microarrays or Hts_sample references in attribution


setListing

public void setListing(java.lang.String listing)

getMessage

public java.lang.String getMessage()
Information message displayed in JSP


setMessage

public void setMessage(java.lang.String message)

getCurrentReference

public java.lang.String getCurrentReference()
Referrence of microarray or hts_sample


setCurrentReference

public void setCurrentReference(java.lang.String currentReference)

getStepOneDone

public boolean getStepOneDone()
Flag set to true when step one is done


setStepOneDone

public void setStepOneDone(boolean stepOneDone)

getSize_of_support

public int getSize_of_support()
Number of arrays or hts samples currently to attribute to the Order Object


check

public void check()
This function check if the last microarray slide_code scanned and stored in microarrayRef attribute is a good Microarray to be attributed to this Order :
- check if it exists in the database
- check if it has not been scanned before
- check if Microarray project type is ok whith this Order

See Also:
Microarray, Microarray.Microarray(String)

save

public void save(User user)
This function save the attribution process concerning this Attribution Object
- update each Microarray Object
- if the microarray attribution for this Order Object is over update the Order

Parameters:
user - User who make this attribution process --> save in a Journal event
See Also:
Project_order, Project_order.Project_order(int), Microarray, Microarray.update(), Order, Order.save(), Order.sendEmail()

loadOtherFiles

public void loadOtherFiles(java.lang.String fileName,
                           User user)
This function execute a complete attribution process from a pre-formatted file,
file which must have .medlab extension.

Parameters:
fileName - String path of the file upload
user - User Object who make this attribution process --> save in a Journal event
See Also:
Microarray, Microarray.Microarray(int), Microarray.update(), Order, Order.save(), Order.sendEmail()