Inherits com.mdsol.babbage.model.DatastoreRelation.
SubjectDataEnvelope represent arbitrary data collected by a subject. 
 
      
        
          | native void com.mdsol.babbage.model.SubjectDataEnvelope.deleteFile  | 
          ( | 
           | ) | 
           | 
        
      
 
Deletes the file where envelope's data is stored. 
 
 
      
        
          | native boolean com.mdsol.babbage.model.SubjectDataEnvelope.equals  | 
          ( | 
          Object  | 
          other | ) | 
           | 
        
      
 
Override the 'equal to' operator for the object. 
 
 
  
  
      
        
          | void com.mdsol.babbage.model.SubjectDataEnvelope.finalize  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
      
        
          | native Date com.mdsol.babbage.model.SubjectDataEnvelope.getCollectedAt  | 
          ( | 
           | ) | 
           | 
        
      
 
Returns envelope collected at date. 
- Returns
 - Date collectedAt 
 
 
 
      
        
          | native String com.mdsol.babbage.model.SubjectDataEnvelope.getContentMD5  | 
          ( | 
           | ) | 
           | 
        
      
 
Returns the md5 hash of the envelope's file contents 
- Returns
 - String envelope file md5 hash 
 
 
 
      
        
          | native String com.mdsol.babbage.model.SubjectDataEnvelope.getFilePath  | 
          ( | 
           | ) | 
           | 
        
      
 
Returns file path where envelope's data is stored. 
- Returns
 - String envelope file path 
 
 
 
      
        
          | native String com.mdsol.babbage.model.SubjectDataEnvelope.getFileUUID  | 
          ( | 
           | ) | 
           | 
        
      
 
Returns the uuid, essentially the filename, of the file where envelope's data is stored. 
- Returns
 - String envelope file uuid 
 
 
 
      
        
          | native long com.mdsol.babbage.model.SubjectDataEnvelope.getID  | 
          ( | 
           | ) | 
           | 
        
      
 
Gets the unique identifier of the envelope in the local datastore. 
- Returns
 - long envelope identifier. 
 
 
 
      
        
          | native Date com.mdsol.babbage.model.SubjectDataEnvelope.getLastUploadAttemptAt  | 
          ( | 
           | ) | 
           | 
        
      
 
Returns envelope last upload attempt date 
- Returns
 - Date last upload attempted 
 
 
 
      
        
          | native String com.mdsol.babbage.model.SubjectDataEnvelope.getLastUploadAttemptMessage  | 
          ( | 
           | ) | 
           | 
        
      
 
Returns envelope last upload attempt message. 
- Returns
 - String envelope last upload message 
 
 
 
      
        
          | native String com.mdsol.babbage.model.SubjectDataEnvelope.getMetadata  | 
          ( | 
           | ) | 
           | 
        
      
 
Returns envelope metadata. 
- Returns
 - String metadata 
 
 
 
      
        
          | native Subject com.mdsol.babbage.model.SubjectDataEnvelope.getSubject  | 
          ( | 
           | ) | 
           | 
        
      
 
 
      
        
          | native boolean com.mdsol.babbage.model.SubjectDataEnvelope.isLastUploadAttemptSuccessful  | 
          ( | 
           | ) | 
           | 
        
      
 
Returns last upload attempt success. 
- Returns
 - boolean describing success of last upload attempt 
 
 
 
      
        
          | native void com.mdsol.babbage.model.SubjectDataEnvelope.logLastUploadAttempt  | 
          ( | 
          boolean  | 
          uploadSuccessful,  | 
        
        
           | 
           | 
          Date  | 
          uploadAt,  | 
        
        
           | 
           | 
          String  | 
          uploadMessage  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Logs an attempt to upload this envelope. 
- Parameters
 - 
  
    | boolean | successful, whether this upload attempt was successful.  | 
    | Date | uploadAt, the Date when this upload attempt was made.  | 
    | String | uploadMessage, the message upon this attempt's completion.  |