Patient Cloud AppConnect Android API References
Public Member Functions | Protected Member Functions | List of all members
com.mdsol.babbage.model.SubjectDataEnvelope

Inherits com.mdsol.babbage.model.DatastoreRelation.

Public Member Functions

native void deleteFile ()
 
native boolean equals (Object other)
 
native Date getCollectedAt ()
 
native String getContentMD5 ()
 
native String getFilePath ()
 
native String getFileUUID ()
 
native long getID ()
 
native Date getLastUploadAttemptAt ()
 
native String getLastUploadAttemptMessage ()
 
native String getMetadata ()
 
native Subject getSubject ()
 
native boolean isLastUploadAttemptSuccessful ()
 
native void logLastUploadAttempt (boolean uploadSuccessful, Date uploadAt, String uploadMessage)
 
- Public Member Functions inherited from com.mdsol.babbage.model.DatastoreRelation
Datastore getDatastore ()
 

Protected Member Functions

void finalize ()
 

Additional Inherited Members

- Protected Attributes inherited from com.mdsol.babbage.model.DatastoreRelation
long mNativeObject
 

Detailed Description

SubjectDataEnvelope represent arbitrary data collected by a subject.

Member Function Documentation

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

Returns the envelope's parent com.mdsol.babbage.model.Subject.

Returns
Subject envelope's parent Subject.
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
booleansuccessful, whether this upload attempt was successful.
DateuploadAt, the Date when this upload attempt was made.
StringuploadMessage, the message upon this attempt's completion.