Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
|
#include <time.h>
#include "dfw_field_trial_service_data.h"
#include "dfw_field_trial_service_library.h"
#include "field_trial.h"
#include "location.h"
#include "jansson.h"
#include "typedefs.h"
#include "person.h"
#include "permission.h"
Go to the source code of this file.
Data Structures | |
struct | Programme |
struct | ProgrammeNode |
Functions | |
const PROGRAMME_PREFIX char *PR_NAME_S | PROGRAMME_CONCAT_VAL (CONTEXT_PREFIX_SCHEMA_ORG_S, "name") |
const PROGRAMME_PREFIX char *PR_OBJECTIVE_S | PROGRAMME_CONCAT_VAL (CONTEXT_PREFIX_SCHEMA_ORG_S, "description") |
const PROGRAMME_PREFIX char *PR_ID_S | PROGRAMME_VAL ("_id") |
const PROGRAMME_PREFIX char *PR_TRIALS_S | PROGRAMME_VAL ("trials") |
const PROGRAMME_PREFIX char *PR_DOCUMENTATION_URL_S | PROGRAMME_CONCAT_VAL (CONTEXT_PREFIX_SCHEMA_ORG_S, "url") |
const PROGRAMME_PREFIX char *PR_PI_S | PROGRAMME_VAL ("principal_investigator") |
const PROGRAMME_PREFIX char *PR_CROP_S | PROGRAMME_VAL ("crop") |
const PROGRAMME_PREFIX char *PR_ABBREVIATION_S | PROGRAMME_CONCAT_VAL (CONTEXT_PREFIX_SCHEMA_ORG_S, "alternateName") |
const PROGRAMME_PREFIX char *PR_LOGO_S | PROGRAMME_CONCAT_VAL (CONTEXT_PREFIX_SCHEMA_ORG_S, "image") |
const PROGRAMME_PREFIX char *PR_FD_NAME_S | PROGRAMME_VAL ("name") |
const PROGRAMME_PREFIX char *PR_FUNDERS_S | PROGRAMME_VAL ("funders") |
const PROGRAMME_PREFIX char *PR_CODE_S | PROGRAMME_VAL ("code") |
const PROGRAMME_PREFIX char *PR_FUNDING_IDENTIFIER_S | PROGRAMME_VAL ("identifier") |
const PROGRAMME_PREFIX char *PR_GRANT_FUNDER_S | PROGRAMME_VAL ("funder") |
const PROGRAMME_PREFIX char *PR_FUNDING_S | PROGRAMME_VAL ("funding") |
Programme * | AllocateProgramme (bson_oid_t *id_p, User *user_p, PermissionsGroup *permissions_group_p, const bool owns_user_flag, const char *abbreviation_s, Crop *crop_p, const char *documentation_url_s, const char *name_s, const char *objective_s, Person *pi_p, const char *logo_url_s, const char *funders_s, const char *project_code_s, const char *timestamp_s) |
void | FreeProgramme (Programme *programme_p) |
Free a given Programme. More... | |
ProgrammeNode * | AllocateProgrammeNode (Programme *programme_p) |
void | FreeProgrammeNode (ListItem *node_p) |
void | SetProgrammeUser (Programme *programme_p, User *user_p, bool owns_user_flag) |
bool | AddProgrammeFieldTrial (Programme *programme_p, FieldTrial *trial_p, MEM_FLAG mf) |
uint32 | GetNumberOfProgrammeFieldTrials (const Programme *programme_p) |
json_t * | GetProgrammeAsJSON (Programme *programme_p, const ViewFormat format, const FieldTrialServiceData *data_p) |
Programme * | GetProgrammeFromJSON (const json_t *json_p, const ViewFormat format, const FieldTrialServiceData *data_p) |
bool | AddFieldTrialsToProgrammeJSON (Programme *programme_p, json_t *program_json_p, const ViewFormat format, FieldTrialServiceData *data_p) |
Programme * | GetUniqueProgrammeBySearchString (const char *programme_s, const ViewFormat format, const FieldTrialServiceData *data_p) |
Programme * | GetProgrammeById (const bson_oid_t *id_p, const ViewFormat format, const FieldTrialServiceData *data_p) |
Programme * | GetProgrammeByIdString (const char *program_id_s, const ViewFormat format, const FieldTrialServiceData *data_p) |
OperationStatus | SaveProgramme (Programme *programme_p, ServiceJob *job_p, FieldTrialServiceData *data_p) |
bool | RemoveProgrammeFieldTrial (Programme *programme_p, FieldTrial *trial_p) |
Remove a FieldTrial from a given Programme. More... | |
LinkedList * | GetProgrammesByName (const char *const programme_s, const FieldTrialServiceData *data_p) |
Programme * | GetVersionedProgramme (const char *programme_id_s, const char *timestamp_s, const ViewFormat format, const FieldTrialServiceData *data_p) |
const PROGRAMME_PREFIX char* PR_NAME_S PROGRAMME_CONCAT_VAL | ( | CONTEXT_PREFIX_SCHEMA_ORG_S | , |
"name" | |||
) |
const PROGRAMME_PREFIX char* PR_OBJECTIVE_S PROGRAMME_CONCAT_VAL | ( | CONTEXT_PREFIX_SCHEMA_ORG_S | , |
"description" | |||
) |
const PROGRAMME_PREFIX char* PR_ID_S PROGRAMME_VAL | ( | "_id" | ) |
const PROGRAMME_PREFIX char* PR_TRIALS_S PROGRAMME_VAL | ( | "trials" | ) |
const PROGRAMME_PREFIX char* PR_DOCUMENTATION_URL_S PROGRAMME_CONCAT_VAL | ( | CONTEXT_PREFIX_SCHEMA_ORG_S | , |
"url" | |||
) |
const PROGRAMME_PREFIX char* PR_PI_S PROGRAMME_VAL | ( | "principal_investigator" | ) |
const PROGRAMME_PREFIX char* PR_CROP_S PROGRAMME_VAL | ( | "crop" | ) |
const PROGRAMME_PREFIX char* PR_ABBREVIATION_S PROGRAMME_CONCAT_VAL | ( | CONTEXT_PREFIX_SCHEMA_ORG_S | , |
"alternateName" | |||
) |
const PROGRAMME_PREFIX char* PR_LOGO_S PROGRAMME_CONCAT_VAL | ( | CONTEXT_PREFIX_SCHEMA_ORG_S | , |
"image" | |||
) |
const PROGRAMME_PREFIX char *PR_FUNDING_ORG_NAME_S PROGRAMME_VAL | ( | "name" | ) |
const PROGRAMME_PREFIX char* PR_FUNDERS_S PROGRAMME_VAL | ( | "funders" | ) |
const PROGRAMME_PREFIX char* PR_CODE_S PROGRAMME_VAL | ( | "code" | ) |
const PROGRAMME_PREFIX char* PR_FUNDING_IDENTIFIER_S PROGRAMME_VAL | ( | "identifier" | ) |
const PROGRAMME_PREFIX char* PR_GRANT_FUNDER_S PROGRAMME_VAL | ( | "funder" | ) |
const PROGRAMME_PREFIX char* PR_FUNDING_S PROGRAMME_VAL | ( | "funding" | ) |
Programme* AllocateProgramme | ( | bson_oid_t * | id_p, |
User * | user_p, | ||
PermissionsGroup * | permissions_group_p, | ||
const bool | owns_user_flag, | ||
const char * | abbreviation_s, | ||
Crop * | crop_p, | ||
const char * | documentation_url_s, | ||
const char * | name_s, | ||
const char * | objective_s, | ||
Person * | pi_p, | ||
const char * | logo_url_s, | ||
const char * | funders_s, | ||
const char * | project_code_s, | ||
const char * | timestamp_s | ||
) |
ProgrammeNode* AllocateProgrammeNode | ( | Programme * | programme_p | ) |
void FreeProgrammeNode | ( | ListItem * | node_p | ) |
bool AddProgrammeFieldTrial | ( | Programme * | programme_p, |
FieldTrial * | trial_p, | ||
MEM_FLAG | mf | ||
) |
uint32 GetNumberOfProgrammeFieldTrials | ( | const Programme * | programme_p | ) |
json_t* GetProgrammeAsJSON | ( | Programme * | programme_p, |
const ViewFormat | format, | ||
const FieldTrialServiceData * | data_p | ||
) |
Programme* GetProgrammeFromJSON | ( | const json_t * | json_p, |
const ViewFormat | format, | ||
const FieldTrialServiceData * | data_p | ||
) |
bool AddFieldTrialsToProgrammeJSON | ( | Programme * | programme_p, |
json_t * | program_json_p, | ||
const ViewFormat | format, | ||
FieldTrialServiceData * | data_p | ||
) |
Programme* GetUniqueProgrammeBySearchString | ( | const char * | programme_s, |
const ViewFormat | format, | ||
const FieldTrialServiceData * | data_p | ||
) |
Programme* GetProgrammeById | ( | const bson_oid_t * | id_p, |
const ViewFormat | format, | ||
const FieldTrialServiceData * | data_p | ||
) |
Programme* GetProgrammeByIdString | ( | const char * | program_id_s, |
const ViewFormat | format, | ||
const FieldTrialServiceData * | data_p | ||
) |
OperationStatus SaveProgramme | ( | Programme * | programme_p, |
ServiceJob * | job_p, | ||
FieldTrialServiceData * | data_p | ||
) |
LinkedList* GetProgrammesByName | ( | const char *const | programme_s, |
const FieldTrialServiceData * | data_p | ||
) |
Programme* GetVersionedProgramme | ( | const char * | programme_id_s, |
const char * | timestamp_s, | ||
const ViewFormat | format, | ||
const FieldTrialServiceData * | data_p | ||
) |