Conscience Core
Public Member Functions | Static Public Member Functions | List of all members
conscience_core::bridging::webservices::intelligencesdb::CscIntelligencesDbService Class Reference

#include <CscIntelligencesDbService.h>

Public Member Functions

vector< CscIntelligenceData * > getIntelligences (const optional< string > &entityModelId)
 
fs::path getIntelligenceLogoPath (const string &intelligenceId, optional< fs::path > defaultIfNotFound={})
 
vector< CscKnowledgeData * > getKnowledgesByIntelligenceId (const string &intelligenceId)
 
fs::path getKnowledgeLogoPath (const string &knowledgeId, optional< fs::path > defaultIfNotFound={})
 
fs::path getUserCustomCommandCodePath (const string &commandId)
 Returns the path to a ZIP file containing the code for a user command. More...
 
vector< string > getUserCustomCommandIds ()
 
void publishIntelligence (const CscIntelligencePublishData &intelligencePublishData)
 
void updateIntelligence (const CscIntelligencePublishData &intelligenceUpdateData)
 
void publishKnowledge (const CscKnowledgePublishData &knowledgePublishData)
 
void updateKnowledge (const CscKnowledgePublishData &knowledgePublishData)
 
void deleteKnowledge (const string &knowledgeId)
 
void publishUserCustomCommandCode (const UserCustomCommandCodePublishData &userCustomCommandCodePublishData)
 
vector< string > getCompatibleEntityModelIds (const string &intelligenceId)
 
string intelligenceOrKnowledgeNameToTechnicalName (string name)
 
CscIntelligenceDatafindIntelligenceById (const vector< CscIntelligenceData * > &intelligences, string id)
 
CscKnowledgeDatagetKnowledgeById (const string &knowledgeId)
 
vector< string > refreshIntelligencesLogos ()
 
vector< string > refreshKnowledgesLogos (const vector< string > &knowledgesIds)
 
void setCacheEnabled (bool enabled)
 

Static Public Member Functions

static CscIntelligencesDbServicegetInstance ()
 

Member Function Documentation

◆ deleteKnowledge()

void conscience_core::bridging::webservices::intelligencesdb::CscIntelligencesDbService::deleteKnowledge ( const string &  knowledgeId)

◆ findIntelligenceById()

CscIntelligenceData * conscience_core::bridging::webservices::intelligencesdb::CscIntelligencesDbService::findIntelligenceById ( const vector< CscIntelligenceData * > &  intelligences,
string  id 
)

◆ getCompatibleEntityModelIds()

vector< string > conscience_core::bridging::webservices::intelligencesdb::CscIntelligencesDbService::getCompatibleEntityModelIds ( const string &  intelligenceId)

◆ getInstance()

CscIntelligencesDbService * conscience_core::bridging::webservices::intelligencesdb::CscIntelligencesDbService::getInstance ( )
static

◆ getIntelligenceLogoPath()

fs::path conscience_core::bridging::webservices::intelligencesdb::CscIntelligencesDbService::getIntelligenceLogoPath ( const string &  intelligenceId,
optional< fs::path >  defaultIfNotFound = {} 
)
Parameters
defaultIfNotFoundif not empty, this path will be used if logo cannot be retrieved. If empty, an exception will be thrown

◆ getIntelligences()

vector< CscIntelligenceData * > conscience_core::bridging::webservices::intelligencesdb::CscIntelligencesDbService::getIntelligences ( const optional< string > &  entityModelId)

Retrieves the list of intelligences for a given entity model.

Parameters
entityModelId
Returns
A vector of pointers to CscIntelligenceData objects.

◆ getKnowledgeById()

CscKnowledgeData * conscience_core::bridging::webservices::intelligencesdb::CscIntelligencesDbService::getKnowledgeById ( const string &  knowledgeId)

◆ getKnowledgeLogoPath()

fs::path conscience_core::bridging::webservices::intelligencesdb::CscIntelligencesDbService::getKnowledgeLogoPath ( const string &  knowledgeId,
optional< fs::path >  defaultIfNotFound = {} 
)
Parameters
defaultIfNotFoundif not empty, this path will be used if logo cannot be retrieved. If empty, an exception will be thrown

◆ getKnowledgesByIntelligenceId()

vector< CscKnowledgeData * > conscience_core::bridging::webservices::intelligencesdb::CscIntelligencesDbService::getKnowledgesByIntelligenceId ( const string &  intelligenceId)

Retrieves the list of knowledges for a given intelligenceId.

Parameters
intelligenceId
Returns
A vector of pointers to CscKnowledgeData objects.

◆ getUserCustomCommandCodePath()

fs::path conscience_core::bridging::webservices::intelligencesdb::CscIntelligencesDbService::getUserCustomCommandCodePath ( const string &  commandId)

Returns the path to a ZIP file containing the code for a user command.

Parameters
commandId

◆ getUserCustomCommandIds()

vector< string > conscience_core::bridging::webservices::intelligencesdb::CscIntelligencesDbService::getUserCustomCommandIds ( )
Returns
list of user custom command ids (with code hosted on intelligences DB)

◆ intelligenceOrKnowledgeNameToTechnicalName()

string conscience_core::bridging::webservices::intelligencesdb::CscIntelligencesDbService::intelligenceOrKnowledgeNameToTechnicalName ( string  name)

◆ publishIntelligence()

void conscience_core::bridging::webservices::intelligencesdb::CscIntelligencesDbService::publishIntelligence ( const CscIntelligencePublishData intelligencePublishData)

◆ publishKnowledge()

void conscience_core::bridging::webservices::intelligencesdb::CscIntelligencesDbService::publishKnowledge ( const CscKnowledgePublishData knowledgePublishData)

◆ publishUserCustomCommandCode()

void conscience_core::bridging::webservices::intelligencesdb::CscIntelligencesDbService::publishUserCustomCommandCode ( const UserCustomCommandCodePublishData userCustomCommandCodePublishData)

◆ refreshIntelligencesLogos()

vector< string > conscience_core::bridging::webservices::intelligencesdb::CscIntelligencesDbService::refreshIntelligencesLogos ( )

refreshes previously downloaded intelligences logos, if changed

Returns
ids of intelligences for which logo has been refreshed

◆ refreshKnowledgesLogos()

vector< string > conscience_core::bridging::webservices::intelligencesdb::CscIntelligencesDbService::refreshKnowledgesLogos ( const vector< string > &  knowledgesIds)

refreshes previously downloaded knowledges logos, if changed

Parameters
knowledgesIdsid of the knowledge to be checked
Returns
ids of knowledges for which logo has been refreshed

◆ setCacheEnabled()

void conscience_core::bridging::webservices::intelligencesdb::CscIntelligencesDbService::setCacheEnabled ( bool  enabled)

◆ updateIntelligence()

void conscience_core::bridging::webservices::intelligencesdb::CscIntelligencesDbService::updateIntelligence ( const CscIntelligencePublishData intelligenceUpdateData)

◆ updateKnowledge()

void conscience_core::bridging::webservices::intelligencesdb::CscIntelligencesDbService::updateKnowledge ( const CscKnowledgePublishData knowledgePublishData)

The documentation for this class was generated from the following files: