com.splitforce.lib.dao
Interface SfManifestDao

All Known Implementing Classes:
SplitforceManifestDao

public interface SfManifestDao

Data access object for the Splitforce Manifest


Method Summary
 void addNewManifestRow(android.content.Context context, ManifestRow manifestRow)
          Add a new row (variation) to the Splitforce manifest.
 void deleteManifestRow(android.content.Context context, long id)
          Delete a row from the Splitforce manifest.
 ManifestRow getExperiment(android.content.Context context, java.lang.String name, boolean forceCohort)
          Get the selected experiment.
 java.util.List<ManifestRow> getManifestRows(android.content.Context context)
          Get all of the rows in the Splitforce Manifest.
 ManifestRow isManifestRowInDb(android.content.Context context, java.lang.String objectId)
          Checks if manifest row is in the ManifestTable
 void modifyManifestRowFromServer(android.content.Context context, ManifestRow manifestRow)
          Update local manifest data.
 

Method Detail

getExperiment

ManifestRow getExperiment(android.content.Context context,
                          java.lang.String name,
                          boolean forceCohort)
Get the selected experiment. If this is the first time accessing an experiment a variation will be cohorted here.

Parameters:
name - The name of the experiment
forceCohort - Cohort a new a variation even if one already was
Returns:
The cohorted variation

getManifestRows

java.util.List<ManifestRow> getManifestRows(android.content.Context context)
Get all of the rows in the Splitforce Manifest.

Parameters:
context - Application context
Returns:
A list of the manifest rows

modifyManifestRowFromServer

void modifyManifestRowFromServer(android.content.Context context,
                                 ManifestRow manifestRow)
Update local manifest data. If the local data was previously cohorted that is persisted.

Parameters:
manifestRow - The row to update

isManifestRowInDb

ManifestRow isManifestRowInDb(android.content.Context context,
                              java.lang.String objectId)
Checks if manifest row is in the ManifestTable

Parameters:
objectId - Parse objectId
Returns:
a ManifestRow or null

addNewManifestRow

void addNewManifestRow(android.content.Context context,
                       ManifestRow manifestRow)
Add a new row (variation) to the Splitforce manifest.

Parameters:
context - The applications context
manifestRow - The row to add.

deleteManifestRow

void deleteManifestRow(android.content.Context context,
                       long id)
Delete a row from the Splitforce manifest.

Parameters:
context - The application's context.
id - The local id of the row to delete.