gov.nih.nci.caarray.services.fileupload2
Class FileUploadEntry

java.lang.Object
  extended by gov.nih.nci.caarray.services.fileupload2.SerializableFileUploadBean
      extended by gov.nih.nci.caarray.services.fileupload2.FileUploadEntry
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ArrayDesignFileUploadEntry, HybridizationFileUploadEntry, MAGEMLFileUploadEntry

public class FileUploadEntry
extends SerializableFileUploadBean

Author:
TranP
See Also:
Serialized Form

Field Summary
static java.lang.String DELETION_ERROR
           
static java.lang.String DELETION_SUCCESS
           
protected  java.lang.String ojbConcreteClass
           
static java.lang.String PROCESSING
           
static java.lang.String PROCESSING_ERROR
           
static java.lang.String PROCESSING_SUCCESS
           
static java.lang.String SUBMISSION_ERROR
           
static java.lang.String SUBMISSION_SUCCESS
           
 
Fields inherited from class gov.nih.nci.caarray.services.fileupload2.SerializableFileUploadBean
id
 
Constructor Summary
FileUploadEntry()
           
 
Method Summary
 java.lang.String getFileName()
           
 FileType getFileType()
          Returns the fileType of this upload file.
 java.lang.String getOriginalFileName()
          Returns the original file name of uploaded file
 java.lang.String getStatus()
          Returns the status of the uploaded file
 java.util.Date getStatusDate()
          Returns the date the status of the uploaded file was set
 java.lang.String getUserId()
          Returns the submitters name for the uploaded file
 java.lang.String getValidatorCode()
          Returns the validatorCode for the uploaded file
 void setFileName(java.lang.String fileName)
          Sets the name of the file, not the full path.
 void setFileType(FileType fileType)
           
 void setOriginalFileName(java.lang.String originalFileName)
          Sets the original file name for the uploaded file
 void setStatus(java.lang.String status)
          Sets the status of the uploaded file
 void setStatusDate(java.util.Date statusDate)
          Sets the date the status of the uploaded file was set
 void setUserId(java.lang.String userId)
          Sets the sumitters name for the uploaded file
 void setValidatorCode(java.lang.String validatorCode)
          Sets the validatorCode for the uploaded file
 java.lang.String toString()
          Returns the string representation of this object.
 
Methods inherited from class gov.nih.nci.caarray.services.fileupload2.SerializableFileUploadBean
getId, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ojbConcreteClass

protected java.lang.String ojbConcreteClass

SUBMISSION_SUCCESS

public static java.lang.String SUBMISSION_SUCCESS

SUBMISSION_ERROR

public static java.lang.String SUBMISSION_ERROR

PROCESSING

public static java.lang.String PROCESSING

PROCESSING_SUCCESS

public static java.lang.String PROCESSING_SUCCESS

PROCESSING_ERROR

public static java.lang.String PROCESSING_ERROR

DELETION_SUCCESS

public static java.lang.String DELETION_SUCCESS

DELETION_ERROR

public static java.lang.String DELETION_ERROR
Constructor Detail

FileUploadEntry

public FileUploadEntry()
Method Detail

getFileType

public final FileType getFileType()
Returns the fileType of this upload file. In order to tell if a this file entry is for a derived bioassay, measured bioassay, ArrayDesign, or MAGEML, call the method getFileCategory() on the returned fileType which returns one of the constants CATEGORY_MEASURED_BIOASSAY, CATEGORY_DERIVED_BIOASSAY, CATEGORY_ARRAY_DESIGN, CATEGORY_MAGEML, or CATEGORY_NON_PARSEABLE accordingly.

Returns:
Returns the fileType.

setFileType

public final void setFileType(FileType fileType)
Parameters:
fileType - The fileType to set.

getFileName

public final java.lang.String getFileName()
Returns:
Returns the fileName.

setFileName

public final void setFileName(java.lang.String fileName)
Sets the name of the file, not the full path. If full path is specified, it will be chopped off.

Parameters:
fileName - The fileName that may contain full path.

getStatus

public final java.lang.String getStatus()
Returns the status of the uploaded file

Returns:
String status of uploaded file

setStatus

public final void setStatus(java.lang.String status)
Sets the status of the uploaded file

Parameters:
status - String representing the status to set

getStatusDate

public final java.util.Date getStatusDate()
Returns the date the status of the uploaded file was set

Returns:
Returns the statusDate.

setStatusDate

public final void setStatusDate(java.util.Date statusDate)
Sets the date the status of the uploaded file was set

Parameters:
statusDate - The status date to set.

getOriginalFileName

public final java.lang.String getOriginalFileName()
Returns the original file name of uploaded file

Returns:
String returns the originalFileName.

setOriginalFileName

public final void setOriginalFileName(java.lang.String originalFileName)
Sets the original file name for the uploaded file

Parameters:
originalFileName - the orignalFileName to set.

getUserId

public final java.lang.String getUserId()
Returns the submitters name for the uploaded file

Returns:
String returns the submitters name as registered in caArray

setUserId

public final void setUserId(java.lang.String userId)
Sets the sumitters name for the uploaded file

Parameters:
userId - String the submitters name as registered in caArray

getValidatorCode

public final java.lang.String getValidatorCode()
Returns the validatorCode for the uploaded file

Returns:
Long returns the validatorCode for the uploaded file.

setValidatorCode

public final void setValidatorCode(java.lang.String validatorCode)
Sets the validatorCode for the uploaded file

Parameters:
validatorCode - the validatorCode for the uploaded file.

toString

public java.lang.String toString()
Returns the string representation of this object.

Overrides:
toString in class SerializableFileUploadBean
Returns:
string value of this object