libhomegear-base  0.7
Base library for Homegear and Homegear family modules.
BaseLib::Database::IDatabaseController Class Referenceabstract

Base class for the database controller. More...

#include <IDatabaseController.h>

Classes

struct  HomegearVariables
 

Public Member Functions

 IDatabaseController ()
 
virtual ~IDatabaseController ()
 
virtual void init ()=0
 
virtual void open (const std::string &databasePath, const std::string &databaseFilename, const std::string &maintenanceDatabasePath, bool databaseSynchronous, bool databaseMemoryJournal, bool databaseWALJournal, const std::string &backupPath, const std::string &maintenanceBackupPath, const std::string &backupFilename)=0
 
virtual void hotBackup ()=0
 
virtual bool isOpen ()=0
 
virtual void initializeDatabase ()=0
 
virtual bool convertDatabase (const std::string &databasePath, const std::string &databaseFilename, const std::string &maintenanceDatabasePath, bool databaseSynchronous, bool databaseMemoryJournal, bool databaseWALJournal, const std::string &backupPath, const std::string &maintenanceBackupPath, const std::string &backupFilename)=0
 
virtual bool enableMaintenanceMode ()=0
 
virtual bool disableMaintenanceMode ()=0
 
virtual void createSavepointSynchronous (std::string &name)=0
 
virtual void releaseSavepointSynchronous (std::string &name)=0
 
virtual void createSavepointAsynchronous (std::string &name)=0
 
virtual void releaseSavepointAsynchronous (std::string &name)=0
 
virtual bool getHomegearVariableString (HomegearVariables::Enum id, std::string &value)=0
 
virtual void setHomegearVariableString (HomegearVariables::Enum id, std::string &value)=0
 
virtual BaseLib::PVariable setData (std::string &component, std::string &key, BaseLib::PVariable &value)=0
 
virtual BaseLib::PVariable getData (std::string &component, std::string &key)=0
 
virtual BaseLib::PVariable deleteData (std::string &component, std::string &key)=0
 
virtual uint64_t addUiElement (const std::string &elementStringId, const BaseLib::PVariable &data, const BaseLib::PVariable &metadata)=0
 
virtual std::shared_ptr< DataTablegetUiElements ()=0
 
virtual BaseLib::PVariable getUiElementMetadata (uint64_t databaseId)=0
 
virtual void removeUiElement (uint64_t databaseId)=0
 
virtual BaseLib::PVariable setUiElementMetadata (uint64_t databaseId, const BaseLib::PVariable &metadata)=0
 
virtual uint64_t createUiNotification (const BaseLib::PVariable &notificationDescription)=0
 
virtual BaseLib::PVariable getUiNotification (uint64_t databaseId, const std::string &languageCode)=0
 
virtual BaseLib::PVariable getUiNotifications (const std::string &languageCode)=0
 
virtual void removeUiNotification (uint64_t databaseId)=0
 
virtual BaseLib::PVariable addBuildingPartToBuilding (uint64_t buildingId, uint64_t buildingPartId)=0
 
virtual BaseLib::PVariable addStoryToBuilding (uint64_t buildingId, uint64_t storyId)=0
 
virtual BaseLib::PVariable createBuilding (BaseLib::PVariable translations, BaseLib::PVariable metadata)=0
 
virtual BaseLib::PVariable deleteBuilding (uint64_t buildingId)=0
 
virtual BaseLib::PVariable getBuildingPartsInBuilding (PRpcClientInfo clientInfo, uint64_t buildingId, bool checkAcls)=0
 
virtual BaseLib::PVariable getStoriesInBuilding (PRpcClientInfo clientInfo, uint64_t buildingId, bool checkAcls)=0
 
virtual BaseLib::PVariable getBuildingMetadata (uint64_t buildingId)=0
 
virtual BaseLib::PVariable getBuildings (std::string languageCode)=0
 
virtual BaseLib::PVariable removeBuildingPartFromBuildings (uint64_t buildingPartId)=0
 
virtual BaseLib::PVariable removeBuildingPartFromBuilding (uint64_t buildingId, uint64_t buildingPartId)=0
 
virtual BaseLib::PVariable removeStoryFromBuildings (uint64_t storyId)=0
 
virtual BaseLib::PVariable removeStoryFromBuilding (uint64_t buildingId, uint64_t storyId)=0
 
virtual bool buildingExists (uint64_t buildingId)=0
 
virtual BaseLib::PVariable setBuildingMetadata (uint64_t buildingId, BaseLib::PVariable metadata)=0
 
virtual BaseLib::PVariable updateBuilding (uint64_t buildingId, BaseLib::PVariable translations, BaseLib::PVariable metadata)=0
 
virtual BaseLib::PVariable createBuildingPart (BaseLib::PVariable translations, BaseLib::PVariable metadata)=0
 
virtual BaseLib::PVariable deleteBuildingPart (uint64_t buildingPartId)=0
 
virtual BaseLib::PVariable getBuildingPartMetadata (uint64_t buildingPartId)=0
 
virtual BaseLib::PVariable getBuildingParts (BaseLib::PRpcClientInfo clientInfo, std::string languageCode, bool checkAcls)=0
 
virtual bool buildingPartExists (uint64_t buildingPartId)=0
 
virtual BaseLib::PVariable setBuildingPartMetadata (uint64_t buildingPartId, BaseLib::PVariable metadata)=0
 
virtual BaseLib::PVariable updateBuildingPart (uint64_t buildingPartId, BaseLib::PVariable translations, BaseLib::PVariable metadata)=0
 
virtual BaseLib::PVariable addRoomToStory (uint64_t storyId, uint64_t roomId)=0
 
virtual BaseLib::PVariable createStory (BaseLib::PVariable translations, BaseLib::PVariable metadata)=0
 
virtual BaseLib::PVariable deleteStory (uint64_t storyId)=0
 
virtual BaseLib::PVariable getRoomsInStory (PRpcClientInfo clientInfo, uint64_t storyId, bool checkAcls)=0
 
virtual BaseLib::PVariable getStoryMetadata (uint64_t storyId)=0
 
virtual BaseLib::PVariable getStories (std::string languageCode)=0
 
virtual BaseLib::PVariable removeRoomFromStories (uint64_t roomId)=0
 
virtual BaseLib::PVariable removeRoomFromStory (uint64_t storyId, uint64_t roomId)=0
 
virtual bool storyExists (uint64_t storyId)=0
 
virtual BaseLib::PVariable setStoryMetadata (uint64_t storyId, BaseLib::PVariable metadata)=0
 
virtual BaseLib::PVariable updateStory (uint64_t storyId, BaseLib::PVariable translations, BaseLib::PVariable metadata)=0
 
virtual BaseLib::PVariable createRoom (BaseLib::PVariable translations, BaseLib::PVariable metadata)=0
 
virtual BaseLib::PVariable deleteRoom (uint64_t roomId)=0
 
virtual std::string getRoomName (PRpcClientInfo clientInfo, uint64_t roomId)=0
 
virtual BaseLib::PVariable getRoomMetadata (uint64_t roomId)=0
 
virtual BaseLib::PVariable getRooms (PRpcClientInfo clientInfo, std::string languageCode, bool checkAcls)=0
 
virtual bool roomExists (uint64_t roomId)=0
 
virtual BaseLib::PVariable setRoomMetadata (uint64_t roomId, BaseLib::PVariable metadata)=0
 
virtual BaseLib::PVariable updateRoom (uint64_t roomId, BaseLib::PVariable translations, BaseLib::PVariable metadata)=0
 
virtual BaseLib::PVariable createCategory (BaseLib::PVariable translations, BaseLib::PVariable metadata)=0
 
virtual BaseLib::PVariable deleteCategory (uint64_t categoryId)=0
 
virtual BaseLib::PVariable getCategories (PRpcClientInfo clientInfo, std::string languageCode, bool checkAcls)=0
 
virtual BaseLib::PVariable getCategoryMetadata (uint64_t categoryId)=0
 
virtual bool categoryExists (uint64_t categoryId)=0
 
virtual BaseLib::PVariable setCategoryMetadata (uint64_t categoryId, BaseLib::PVariable metadata)=0
 
virtual BaseLib::PVariable updateCategory (uint64_t categoryId, BaseLib::PVariable translations, BaseLib::PVariable metadata)=0
 
virtual void createDefaultRoles ()=0
 
virtual BaseLib::PVariable createRole (BaseLib::PVariable translations, BaseLib::PVariable metadata)=0
 
virtual BaseLib::PVariable deleteRole (uint64_t roleId)=0
 
virtual void deleteAllRoles ()=0
 
virtual BaseLib::PVariable getRoles (PRpcClientInfo clientInfo, std::string languageCode, bool checkAcls)=0
 
virtual BaseLib::PVariable getRoleMetadata (uint64_t roleId)=0
 
virtual bool roleExists (uint64_t roleId)=0
 
virtual BaseLib::PVariable setRoleMetadata (uint64_t roleId, BaseLib::PVariable metadata)=0
 
virtual BaseLib::PVariable updateRole (uint64_t roleId, BaseLib::PVariable translations, BaseLib::PVariable metadata)=0
 
virtual BaseLib::PVariable setNodeData (const std::string &node, const std::string &key, const BaseLib::PVariable &value)=0
 
virtual BaseLib::PVariable getNodeData (const std::string &node, const std::string &key, bool requestFromTrustedServer=false)=0
 
virtual std::set< std::string > getAllNodeDataNodes ()=0
 
virtual BaseLib::PVariable deleteNodeData (const std::string &node, const std::string &key)=0
 
virtual BaseLib::PVariable setMetadata (PRpcClientInfo clientInfo, uint64_t peerId, std::string &serialNumber, std::string &dataId, BaseLib::PVariable &metadata)=0
 
virtual BaseLib::PVariable getMetadata (uint64_t peerId, std::string &dataId)=0
 
virtual BaseLib::PVariable getAllMetadata (PRpcClientInfo clientInfo, std::shared_ptr< Systems::Peer > peer, bool checkAcls)=0
 
virtual BaseLib::PVariable deleteMetadata (uint64_t peerId, std::string &serialNumber, std::string &dataId)=0
 
virtual void deleteSystemVariable (std::string &variableId)=0
 
virtual std::shared_ptr< BaseLib::Database::DataTablegetAllSystemVariables ()=0
 
virtual std::shared_ptr< BaseLib::Database::DataTablegetSystemVariable (const std::string &variableId)=0
 
virtual std::shared_ptr< BaseLib::Database::DataTablegetSystemVariablesInRoom (uint64_t roomId)=0
 
virtual void removeCategoryFromSystemVariables (uint64_t categoryId)=0
 
virtual void removeRoleFromSystemVariables (uint64_t roleId)=0
 
virtual void removeRoomFromSystemVariables (uint64_t roomId)=0
 
virtual BaseLib::PVariable setSystemVariable (std::string &variableId, BaseLib::PVariable &value, uint64_t roomId, const std::string &categories, const std::string &roles, int32_t flags)=0
 
virtual BaseLib::PVariable setSystemVariableCategories (std::string &variableId, const std::string &categories)=0
 
virtual BaseLib::PVariable setSystemVariableRoles (std::string &variableId, const std::string &roles)=0
 
virtual BaseLib::PVariable setSystemVariableRoom (std::string &variableId, uint64_t room)=0
 
virtual bool createUser (const std::string &name, const std::vector< uint8_t > &passwordHash, const std::vector< uint8_t > &salt, const std::vector< uint64_t > &groups)=0
 
virtual bool deleteUser (uint64_t userId)=0
 
virtual std::shared_ptr< DataTablegetPassword (const std::string &name)=0
 
virtual uint64_t getUserId (const std::string &name)=0
 
virtual int64_t getUserKeyIndex1 (uint64_t userId)=0
 
virtual int64_t getUserKeyIndex2 (uint64_t userId)=0
 
virtual BaseLib::PVariable getUserMetadata (uint64_t userId)=0
 
virtual std::shared_ptr< DataTablegetUsers ()=0
 
virtual std::vector< uint64_t > getUsersGroups (uint64_t userId)=0
 
virtual bool updateUser (uint64_t userId, const std::vector< uint8_t > &passwordHash, const std::vector< uint8_t > &salt, const std::vector< uint64_t > &groups)=0
 
virtual void setUserKeyIndex1 (uint64_t userId, int64_t keyIndex)=0
 
virtual void setUserKeyIndex2 (uint64_t userId, int64_t keyIndex)=0
 
virtual BaseLib::PVariable setUserMetadata (uint64_t userId, BaseLib::PVariable metadata)=0
 
virtual bool userNameExists (const std::string &name)=0
 
virtual BaseLib::PVariable setUserData (uint64_t userId, const std::string &component, const std::string &key, const BaseLib::PVariable &value)=0
 
virtual BaseLib::PVariable getUserData (uint64_t userId, const std::string &component, const std::string &key)=0
 
virtual BaseLib::PVariable deleteUserData (uint64_t userId, const std::string &component, const std::string &key)=0
 
virtual BaseLib::PVariable createGroup (BaseLib::PVariable translations, BaseLib::PVariable acl)=0
 
virtual BaseLib::PVariable deleteGroup (uint64_t groupId)=0
 
virtual BaseLib::PVariable getAcl (uint64_t groupId)=0
 
virtual BaseLib::PVariable getGroup (uint64_t groupId, std::string languageCode)=0
 
virtual BaseLib::PVariable getGroups (std::string languageCode)=0
 
virtual bool groupExists (uint64_t groupId)=0
 
virtual BaseLib::PVariable updateGroup (uint64_t groupId, BaseLib::PVariable translations, BaseLib::PVariable acl)=0
 
virtual void deleteFamily (int32_t familyId)=0
 
virtual void saveFamilyVariableAsynchronous (int32_t familyId, BaseLib::Database::DataRow &data)=0
 
virtual std::shared_ptr< BaseLib::Database::DataTablegetFamilyVariables (int32_t familyId)=0
 
virtual void deleteFamilyVariable (BaseLib::Database::DataRow &data)=0
 
virtual std::shared_ptr< DataTablegetDevices (uint32_t family)=0
 
virtual void deleteDevice (uint64_t id)=0
 
virtual uint64_t saveDevice (uint64_t id, int32_t address, std::string &serialNumber, uint32_t type, uint32_t family)=0
 
virtual void saveDeviceVariableAsynchronous (DataRow &data)=0
 
virtual void deletePeers (int32_t deviceID)=0
 
virtual std::shared_ptr< DataTablegetPeers (uint64_t deviceID)=0
 
virtual std::shared_ptr< DataTablegetDeviceVariables (uint64_t deviceID)=0
 
virtual void deletePeer (uint64_t id)=0
 
virtual uint64_t savePeer (uint64_t id, uint32_t parentID, int32_t address, std::string &serialNumber, uint32_t type)=0
 
virtual uint64_t savePeerParameterSynchronous (DataRow &data)=0
 
virtual void savePeerParameterAsynchronous (DataRow &data)=0
 
virtual void saveSpecialPeerParameterAsynchronous (DataRow &data)=0
 
virtual void savePeerParameterRoomAsynchronous (BaseLib::Database::DataRow &data)=0
 
virtual void savePeerParameterBuildingPartAsynchronous (BaseLib::Database::DataRow &data)=0
 
virtual void savePeerParameterCategoriesAsynchronous (BaseLib::Database::DataRow &data)=0
 
virtual void savePeerParameterRolesAsynchronous (BaseLib::Database::DataRow &data)=0
 
virtual void savePeerVariableAsynchronous (DataRow &data)=0
 
virtual std::shared_ptr< DataTablegetPeerParameters (uint64_t peerID)=0
 
virtual std::shared_ptr< DataTablegetPeerVariables (uint64_t peerID)=0
 
virtual void deletePeerParameter (uint64_t peerID, DataRow &data)=0
 
virtual bool peerExists (uint64_t peerId)=0
 
virtual bool peerExists (const std::string &serialNumber)=0
 
virtual bool setPeerID (uint64_t oldPeerId, uint64_t newPeerId)=0
 Changes the ID of a peer. More...
 
virtual bool setPeerSerialNumber (uint64_t peer_id, const std::string &new_serial_number)=0
 
virtual std::shared_ptr< DataTablegetServiceMessages (uint64_t peerId)=0
 
virtual void saveServiceMessageAsynchronous (uint64_t peerId, DataRow &data)=0
 
virtual void saveGlobalServiceMessageAsynchronous (DataRow &data)=0
 
virtual void deleteServiceMessage (uint64_t databaseID)=0
 
virtual void deleteGlobalServiceMessage (int32_t familyId, int32_t messageId, std::string &messageSubId, std::string &message)=0
 
virtual std::shared_ptr< DataTablegetLicenseVariables (int32_t moduleId)=0
 
virtual void saveLicenseVariable (int32_t moduleId, DataRow &data)=0
 
virtual void deleteLicenseVariable (int32_t moduleId, uint64_t mapKey)=0
 
virtual uint64_t addVariableProfile (const BaseLib::PVariable &translations, const BaseLib::PVariable &profile)=0
 
virtual void deleteVariableProfile (uint64_t profileId)=0
 
virtual std::shared_ptr< BaseLib::Database::DataTablegetVariableProfiles ()=0
 
virtual bool updateVariableProfile (uint64_t profileId, const BaseLib::PVariable &translations, const BaseLib::PVariable &profile)=0
 

Detailed Description

Base class for the database controller.

Constructor & Destructor Documentation

§ IDatabaseController()

BaseLib::Database::IDatabaseController::IDatabaseController ( )
inline

§ ~IDatabaseController()

virtual BaseLib::Database::IDatabaseController::~IDatabaseController ( )
inlinevirtual

Member Function Documentation

§ addBuildingPartToBuilding()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::addBuildingPartToBuilding ( uint64_t  buildingId,
uint64_t  buildingPartId 
)
pure virtual

§ addRoomToStory()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::addRoomToStory ( uint64_t  storyId,
uint64_t  roomId 
)
pure virtual

§ addStoryToBuilding()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::addStoryToBuilding ( uint64_t  buildingId,
uint64_t  storyId 
)
pure virtual

§ addUiElement()

virtual uint64_t BaseLib::Database::IDatabaseController::addUiElement ( const std::string &  elementStringId,
const BaseLib::PVariable data,
const BaseLib::PVariable metadata 
)
pure virtual

§ addVariableProfile()

virtual uint64_t BaseLib::Database::IDatabaseController::addVariableProfile ( const BaseLib::PVariable translations,
const BaseLib::PVariable profile 
)
pure virtual

§ buildingExists()

virtual bool BaseLib::Database::IDatabaseController::buildingExists ( uint64_t  buildingId)
pure virtual

§ buildingPartExists()

virtual bool BaseLib::Database::IDatabaseController::buildingPartExists ( uint64_t  buildingPartId)
pure virtual

§ categoryExists()

virtual bool BaseLib::Database::IDatabaseController::categoryExists ( uint64_t  categoryId)
pure virtual

§ convertDatabase()

virtual bool BaseLib::Database::IDatabaseController::convertDatabase ( const std::string &  databasePath,
const std::string &  databaseFilename,
const std::string &  maintenanceDatabasePath,
bool  databaseSynchronous,
bool  databaseMemoryJournal,
bool  databaseWALJournal,
const std::string &  backupPath,
const std::string &  maintenanceBackupPath,
const std::string &  backupFilename 
)
pure virtual

§ createBuilding()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::createBuilding ( BaseLib::PVariable  translations,
BaseLib::PVariable  metadata 
)
pure virtual

§ createBuildingPart()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::createBuildingPart ( BaseLib::PVariable  translations,
BaseLib::PVariable  metadata 
)
pure virtual

§ createCategory()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::createCategory ( BaseLib::PVariable  translations,
BaseLib::PVariable  metadata 
)
pure virtual

§ createDefaultRoles()

virtual void BaseLib::Database::IDatabaseController::createDefaultRoles ( )
pure virtual

§ createGroup()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::createGroup ( BaseLib::PVariable  translations,
BaseLib::PVariable  acl 
)
pure virtual

§ createRole()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::createRole ( BaseLib::PVariable  translations,
BaseLib::PVariable  metadata 
)
pure virtual

§ createRoom()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::createRoom ( BaseLib::PVariable  translations,
BaseLib::PVariable  metadata 
)
pure virtual

§ createSavepointAsynchronous()

virtual void BaseLib::Database::IDatabaseController::createSavepointAsynchronous ( std::string &  name)
pure virtual

§ createSavepointSynchronous()

virtual void BaseLib::Database::IDatabaseController::createSavepointSynchronous ( std::string &  name)
pure virtual

§ createStory()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::createStory ( BaseLib::PVariable  translations,
BaseLib::PVariable  metadata 
)
pure virtual

§ createUiNotification()

virtual uint64_t BaseLib::Database::IDatabaseController::createUiNotification ( const BaseLib::PVariable notificationDescription)
pure virtual

§ createUser()

virtual bool BaseLib::Database::IDatabaseController::createUser ( const std::string &  name,
const std::vector< uint8_t > &  passwordHash,
const std::vector< uint8_t > &  salt,
const std::vector< uint64_t > &  groups 
)
pure virtual

§ deleteAllRoles()

virtual void BaseLib::Database::IDatabaseController::deleteAllRoles ( )
pure virtual

§ deleteBuilding()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::deleteBuilding ( uint64_t  buildingId)
pure virtual

§ deleteBuildingPart()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::deleteBuildingPart ( uint64_t  buildingPartId)
pure virtual

§ deleteCategory()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::deleteCategory ( uint64_t  categoryId)
pure virtual

§ deleteData()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::deleteData ( std::string &  component,
std::string &  key 
)
pure virtual

§ deleteDevice()

virtual void BaseLib::Database::IDatabaseController::deleteDevice ( uint64_t  id)
pure virtual

§ deleteFamily()

virtual void BaseLib::Database::IDatabaseController::deleteFamily ( int32_t  familyId)
pure virtual

§ deleteFamilyVariable()

virtual void BaseLib::Database::IDatabaseController::deleteFamilyVariable ( BaseLib::Database::DataRow data)
pure virtual

§ deleteGlobalServiceMessage()

virtual void BaseLib::Database::IDatabaseController::deleteGlobalServiceMessage ( int32_t  familyId,
int32_t  messageId,
std::string &  messageSubId,
std::string &  message 
)
pure virtual

§ deleteGroup()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::deleteGroup ( uint64_t  groupId)
pure virtual

§ deleteLicenseVariable()

virtual void BaseLib::Database::IDatabaseController::deleteLicenseVariable ( int32_t  moduleId,
uint64_t  mapKey 
)
pure virtual

§ deleteMetadata()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::deleteMetadata ( uint64_t  peerId,
std::string &  serialNumber,
std::string &  dataId 
)
pure virtual

§ deleteNodeData()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::deleteNodeData ( const std::string &  node,
const std::string &  key 
)
pure virtual

§ deletePeer()

virtual void BaseLib::Database::IDatabaseController::deletePeer ( uint64_t  id)
pure virtual

§ deletePeerParameter()

virtual void BaseLib::Database::IDatabaseController::deletePeerParameter ( uint64_t  peerID,
DataRow data 
)
pure virtual

§ deletePeers()

virtual void BaseLib::Database::IDatabaseController::deletePeers ( int32_t  deviceID)
pure virtual

§ deleteRole()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::deleteRole ( uint64_t  roleId)
pure virtual

§ deleteRoom()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::deleteRoom ( uint64_t  roomId)
pure virtual

§ deleteServiceMessage()

virtual void BaseLib::Database::IDatabaseController::deleteServiceMessage ( uint64_t  databaseID)
pure virtual

§ deleteStory()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::deleteStory ( uint64_t  storyId)
pure virtual

§ deleteSystemVariable()

virtual void BaseLib::Database::IDatabaseController::deleteSystemVariable ( std::string &  variableId)
pure virtual

§ deleteUser()

virtual bool BaseLib::Database::IDatabaseController::deleteUser ( uint64_t  userId)
pure virtual

§ deleteUserData()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::deleteUserData ( uint64_t  userId,
const std::string &  component,
const std::string &  key 
)
pure virtual

§ deleteVariableProfile()

virtual void BaseLib::Database::IDatabaseController::deleteVariableProfile ( uint64_t  profileId)
pure virtual

§ disableMaintenanceMode()

virtual bool BaseLib::Database::IDatabaseController::disableMaintenanceMode ( )
pure virtual

§ enableMaintenanceMode()

virtual bool BaseLib::Database::IDatabaseController::enableMaintenanceMode ( )
pure virtual

§ getAcl()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::getAcl ( uint64_t  groupId)
pure virtual

§ getAllMetadata()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::getAllMetadata ( PRpcClientInfo  clientInfo,
std::shared_ptr< Systems::Peer peer,
bool  checkAcls 
)
pure virtual

§ getAllNodeDataNodes()

virtual std::set<std::string> BaseLib::Database::IDatabaseController::getAllNodeDataNodes ( )
pure virtual

§ getAllSystemVariables()

virtual std::shared_ptr<BaseLib::Database::DataTable> BaseLib::Database::IDatabaseController::getAllSystemVariables ( )
pure virtual

§ getBuildingMetadata()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::getBuildingMetadata ( uint64_t  buildingId)
pure virtual

§ getBuildingPartMetadata()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::getBuildingPartMetadata ( uint64_t  buildingPartId)
pure virtual

§ getBuildingParts()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::getBuildingParts ( BaseLib::PRpcClientInfo  clientInfo,
std::string  languageCode,
bool  checkAcls 
)
pure virtual

§ getBuildingPartsInBuilding()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::getBuildingPartsInBuilding ( PRpcClientInfo  clientInfo,
uint64_t  buildingId,
bool  checkAcls 
)
pure virtual

§ getBuildings()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::getBuildings ( std::string  languageCode)
pure virtual

§ getCategories()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::getCategories ( PRpcClientInfo  clientInfo,
std::string  languageCode,
bool  checkAcls 
)
pure virtual

§ getCategoryMetadata()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::getCategoryMetadata ( uint64_t  categoryId)
pure virtual

§ getData()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::getData ( std::string &  component,
std::string &  key 
)
pure virtual

§ getDevices()

virtual std::shared_ptr<DataTable> BaseLib::Database::IDatabaseController::getDevices ( uint32_t  family)
pure virtual

§ getDeviceVariables()

virtual std::shared_ptr<DataTable> BaseLib::Database::IDatabaseController::getDeviceVariables ( uint64_t  deviceID)
pure virtual

§ getFamilyVariables()

virtual std::shared_ptr<BaseLib::Database::DataTable> BaseLib::Database::IDatabaseController::getFamilyVariables ( int32_t  familyId)
pure virtual

§ getGroup()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::getGroup ( uint64_t  groupId,
std::string  languageCode 
)
pure virtual

§ getGroups()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::getGroups ( std::string  languageCode)
pure virtual

§ getHomegearVariableString()

virtual bool BaseLib::Database::IDatabaseController::getHomegearVariableString ( HomegearVariables::Enum  id,
std::string &  value 
)
pure virtual

§ getLicenseVariables()

virtual std::shared_ptr<DataTable> BaseLib::Database::IDatabaseController::getLicenseVariables ( int32_t  moduleId)
pure virtual

§ getMetadata()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::getMetadata ( uint64_t  peerId,
std::string &  dataId 
)
pure virtual

§ getNodeData()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::getNodeData ( const std::string &  node,
const std::string &  key,
bool  requestFromTrustedServer = false 
)
pure virtual

§ getPassword()

virtual std::shared_ptr<DataTable> BaseLib::Database::IDatabaseController::getPassword ( const std::string &  name)
pure virtual

§ getPeerParameters()

virtual std::shared_ptr<DataTable> BaseLib::Database::IDatabaseController::getPeerParameters ( uint64_t  peerID)
pure virtual

§ getPeers()

virtual std::shared_ptr<DataTable> BaseLib::Database::IDatabaseController::getPeers ( uint64_t  deviceID)
pure virtual

§ getPeerVariables()

virtual std::shared_ptr<DataTable> BaseLib::Database::IDatabaseController::getPeerVariables ( uint64_t  peerID)
pure virtual

§ getRoleMetadata()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::getRoleMetadata ( uint64_t  roleId)
pure virtual

§ getRoles()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::getRoles ( PRpcClientInfo  clientInfo,
std::string  languageCode,
bool  checkAcls 
)
pure virtual

§ getRoomMetadata()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::getRoomMetadata ( uint64_t  roomId)
pure virtual

§ getRoomName()

virtual std::string BaseLib::Database::IDatabaseController::getRoomName ( PRpcClientInfo  clientInfo,
uint64_t  roomId 
)
pure virtual

§ getRooms()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::getRooms ( PRpcClientInfo  clientInfo,
std::string  languageCode,
bool  checkAcls 
)
pure virtual

§ getRoomsInStory()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::getRoomsInStory ( PRpcClientInfo  clientInfo,
uint64_t  storyId,
bool  checkAcls 
)
pure virtual

§ getServiceMessages()

virtual std::shared_ptr<DataTable> BaseLib::Database::IDatabaseController::getServiceMessages ( uint64_t  peerId)
pure virtual

§ getStories()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::getStories ( std::string  languageCode)
pure virtual

§ getStoriesInBuilding()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::getStoriesInBuilding ( PRpcClientInfo  clientInfo,
uint64_t  buildingId,
bool  checkAcls 
)
pure virtual

§ getStoryMetadata()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::getStoryMetadata ( uint64_t  storyId)
pure virtual

§ getSystemVariable()

virtual std::shared_ptr<BaseLib::Database::DataTable> BaseLib::Database::IDatabaseController::getSystemVariable ( const std::string &  variableId)
pure virtual

§ getSystemVariablesInRoom()

virtual std::shared_ptr<BaseLib::Database::DataTable> BaseLib::Database::IDatabaseController::getSystemVariablesInRoom ( uint64_t  roomId)
pure virtual

§ getUiElementMetadata()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::getUiElementMetadata ( uint64_t  databaseId)
pure virtual

§ getUiElements()

virtual std::shared_ptr<DataTable> BaseLib::Database::IDatabaseController::getUiElements ( )
pure virtual

§ getUiNotification()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::getUiNotification ( uint64_t  databaseId,
const std::string &  languageCode 
)
pure virtual

§ getUiNotifications()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::getUiNotifications ( const std::string &  languageCode)
pure virtual

§ getUserData()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::getUserData ( uint64_t  userId,
const std::string &  component,
const std::string &  key 
)
pure virtual

§ getUserId()

virtual uint64_t BaseLib::Database::IDatabaseController::getUserId ( const std::string &  name)
pure virtual

§ getUserKeyIndex1()

virtual int64_t BaseLib::Database::IDatabaseController::getUserKeyIndex1 ( uint64_t  userId)
pure virtual

§ getUserKeyIndex2()

virtual int64_t BaseLib::Database::IDatabaseController::getUserKeyIndex2 ( uint64_t  userId)
pure virtual

§ getUserMetadata()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::getUserMetadata ( uint64_t  userId)
pure virtual

§ getUsers()

virtual std::shared_ptr<DataTable> BaseLib::Database::IDatabaseController::getUsers ( )
pure virtual

§ getUsersGroups()

virtual std::vector<uint64_t> BaseLib::Database::IDatabaseController::getUsersGroups ( uint64_t  userId)
pure virtual

§ getVariableProfiles()

virtual std::shared_ptr<BaseLib::Database::DataTable> BaseLib::Database::IDatabaseController::getVariableProfiles ( )
pure virtual

§ groupExists()

virtual bool BaseLib::Database::IDatabaseController::groupExists ( uint64_t  groupId)
pure virtual

§ hotBackup()

virtual void BaseLib::Database::IDatabaseController::hotBackup ( )
pure virtual

§ init()

virtual void BaseLib::Database::IDatabaseController::init ( )
pure virtual

§ initializeDatabase()

virtual void BaseLib::Database::IDatabaseController::initializeDatabase ( )
pure virtual

§ isOpen()

virtual bool BaseLib::Database::IDatabaseController::isOpen ( )
pure virtual

§ open()

virtual void BaseLib::Database::IDatabaseController::open ( const std::string &  databasePath,
const std::string &  databaseFilename,
const std::string &  maintenanceDatabasePath,
bool  databaseSynchronous,
bool  databaseMemoryJournal,
bool  databaseWALJournal,
const std::string &  backupPath,
const std::string &  maintenanceBackupPath,
const std::string &  backupFilename 
)
pure virtual

§ peerExists() [1/2]

virtual bool BaseLib::Database::IDatabaseController::peerExists ( uint64_t  peerId)
pure virtual

§ peerExists() [2/2]

virtual bool BaseLib::Database::IDatabaseController::peerExists ( const std::string &  serialNumber)
pure virtual

§ releaseSavepointAsynchronous()

virtual void BaseLib::Database::IDatabaseController::releaseSavepointAsynchronous ( std::string &  name)
pure virtual

§ releaseSavepointSynchronous()

virtual void BaseLib::Database::IDatabaseController::releaseSavepointSynchronous ( std::string &  name)
pure virtual

§ removeBuildingPartFromBuilding()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::removeBuildingPartFromBuilding ( uint64_t  buildingId,
uint64_t  buildingPartId 
)
pure virtual

§ removeBuildingPartFromBuildings()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::removeBuildingPartFromBuildings ( uint64_t  buildingPartId)
pure virtual

§ removeCategoryFromSystemVariables()

virtual void BaseLib::Database::IDatabaseController::removeCategoryFromSystemVariables ( uint64_t  categoryId)
pure virtual

§ removeRoleFromSystemVariables()

virtual void BaseLib::Database::IDatabaseController::removeRoleFromSystemVariables ( uint64_t  roleId)
pure virtual

§ removeRoomFromStories()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::removeRoomFromStories ( uint64_t  roomId)
pure virtual

§ removeRoomFromStory()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::removeRoomFromStory ( uint64_t  storyId,
uint64_t  roomId 
)
pure virtual

§ removeRoomFromSystemVariables()

virtual void BaseLib::Database::IDatabaseController::removeRoomFromSystemVariables ( uint64_t  roomId)
pure virtual

§ removeStoryFromBuilding()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::removeStoryFromBuilding ( uint64_t  buildingId,
uint64_t  storyId 
)
pure virtual

§ removeStoryFromBuildings()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::removeStoryFromBuildings ( uint64_t  storyId)
pure virtual

§ removeUiElement()

virtual void BaseLib::Database::IDatabaseController::removeUiElement ( uint64_t  databaseId)
pure virtual

§ removeUiNotification()

virtual void BaseLib::Database::IDatabaseController::removeUiNotification ( uint64_t  databaseId)
pure virtual

§ roleExists()

virtual bool BaseLib::Database::IDatabaseController::roleExists ( uint64_t  roleId)
pure virtual

§ roomExists()

virtual bool BaseLib::Database::IDatabaseController::roomExists ( uint64_t  roomId)
pure virtual

§ saveDevice()

virtual uint64_t BaseLib::Database::IDatabaseController::saveDevice ( uint64_t  id,
int32_t  address,
std::string &  serialNumber,
uint32_t  type,
uint32_t  family 
)
pure virtual

§ saveDeviceVariableAsynchronous()

virtual void BaseLib::Database::IDatabaseController::saveDeviceVariableAsynchronous ( DataRow data)
pure virtual

§ saveFamilyVariableAsynchronous()

virtual void BaseLib::Database::IDatabaseController::saveFamilyVariableAsynchronous ( int32_t  familyId,
BaseLib::Database::DataRow data 
)
pure virtual

§ saveGlobalServiceMessageAsynchronous()

virtual void BaseLib::Database::IDatabaseController::saveGlobalServiceMessageAsynchronous ( DataRow data)
pure virtual

§ saveLicenseVariable()

virtual void BaseLib::Database::IDatabaseController::saveLicenseVariable ( int32_t  moduleId,
DataRow data 
)
pure virtual

§ savePeer()

virtual uint64_t BaseLib::Database::IDatabaseController::savePeer ( uint64_t  id,
uint32_t  parentID,
int32_t  address,
std::string &  serialNumber,
uint32_t  type 
)
pure virtual

§ savePeerParameterAsynchronous()

virtual void BaseLib::Database::IDatabaseController::savePeerParameterAsynchronous ( DataRow data)
pure virtual

§ savePeerParameterBuildingPartAsynchronous()

virtual void BaseLib::Database::IDatabaseController::savePeerParameterBuildingPartAsynchronous ( BaseLib::Database::DataRow data)
pure virtual

§ savePeerParameterCategoriesAsynchronous()

virtual void BaseLib::Database::IDatabaseController::savePeerParameterCategoriesAsynchronous ( BaseLib::Database::DataRow data)
pure virtual

§ savePeerParameterRolesAsynchronous()

virtual void BaseLib::Database::IDatabaseController::savePeerParameterRolesAsynchronous ( BaseLib::Database::DataRow data)
pure virtual

§ savePeerParameterRoomAsynchronous()

virtual void BaseLib::Database::IDatabaseController::savePeerParameterRoomAsynchronous ( BaseLib::Database::DataRow data)
pure virtual

§ savePeerParameterSynchronous()

virtual uint64_t BaseLib::Database::IDatabaseController::savePeerParameterSynchronous ( DataRow data)
pure virtual

§ savePeerVariableAsynchronous()

virtual void BaseLib::Database::IDatabaseController::savePeerVariableAsynchronous ( DataRow data)
pure virtual

§ saveServiceMessageAsynchronous()

virtual void BaseLib::Database::IDatabaseController::saveServiceMessageAsynchronous ( uint64_t  peerId,
DataRow data 
)
pure virtual

§ saveSpecialPeerParameterAsynchronous()

virtual void BaseLib::Database::IDatabaseController::saveSpecialPeerParameterAsynchronous ( DataRow data)
pure virtual

§ setBuildingMetadata()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::setBuildingMetadata ( uint64_t  buildingId,
BaseLib::PVariable  metadata 
)
pure virtual

§ setBuildingPartMetadata()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::setBuildingPartMetadata ( uint64_t  buildingPartId,
BaseLib::PVariable  metadata 
)
pure virtual

§ setCategoryMetadata()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::setCategoryMetadata ( uint64_t  categoryId,
BaseLib::PVariable  metadata 
)
pure virtual

§ setData()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::setData ( std::string &  component,
std::string &  key,
BaseLib::PVariable value 
)
pure virtual

§ setHomegearVariableString()

virtual void BaseLib::Database::IDatabaseController::setHomegearVariableString ( HomegearVariables::Enum  id,
std::string &  value 
)
pure virtual

§ setMetadata()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::setMetadata ( PRpcClientInfo  clientInfo,
uint64_t  peerId,
std::string &  serialNumber,
std::string &  dataId,
BaseLib::PVariable metadata 
)
pure virtual

§ setNodeData()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::setNodeData ( const std::string &  node,
const std::string &  key,
const BaseLib::PVariable value 
)
pure virtual

§ setPeerID()

virtual bool BaseLib::Database::IDatabaseController::setPeerID ( uint64_t  oldPeerId,
uint64_t  newPeerId 
)
pure virtual

Changes the ID of a peer.

Parameters
oldPeerIdThe old ID of the peer.
newPeerIdThe new ID of the peer.
Returns
Returns "true" on success or "false" when the new ID is already in use.

§ setPeerSerialNumber()

virtual bool BaseLib::Database::IDatabaseController::setPeerSerialNumber ( uint64_t  peer_id,
const std::string &  new_serial_number 
)
pure virtual

§ setRoleMetadata()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::setRoleMetadata ( uint64_t  roleId,
BaseLib::PVariable  metadata 
)
pure virtual

§ setRoomMetadata()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::setRoomMetadata ( uint64_t  roomId,
BaseLib::PVariable  metadata 
)
pure virtual

§ setStoryMetadata()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::setStoryMetadata ( uint64_t  storyId,
BaseLib::PVariable  metadata 
)
pure virtual

§ setSystemVariable()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::setSystemVariable ( std::string &  variableId,
BaseLib::PVariable value,
uint64_t  roomId,
const std::string &  categories,
const std::string &  roles,
int32_t  flags 
)
pure virtual

§ setSystemVariableCategories()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::setSystemVariableCategories ( std::string &  variableId,
const std::string &  categories 
)
pure virtual

§ setSystemVariableRoles()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::setSystemVariableRoles ( std::string &  variableId,
const std::string &  roles 
)
pure virtual

§ setSystemVariableRoom()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::setSystemVariableRoom ( std::string &  variableId,
uint64_t  room 
)
pure virtual

§ setUiElementMetadata()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::setUiElementMetadata ( uint64_t  databaseId,
const BaseLib::PVariable metadata 
)
pure virtual

§ setUserData()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::setUserData ( uint64_t  userId,
const std::string &  component,
const std::string &  key,
const BaseLib::PVariable value 
)
pure virtual

§ setUserKeyIndex1()

virtual void BaseLib::Database::IDatabaseController::setUserKeyIndex1 ( uint64_t  userId,
int64_t  keyIndex 
)
pure virtual

§ setUserKeyIndex2()

virtual void BaseLib::Database::IDatabaseController::setUserKeyIndex2 ( uint64_t  userId,
int64_t  keyIndex 
)
pure virtual

§ setUserMetadata()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::setUserMetadata ( uint64_t  userId,
BaseLib::PVariable  metadata 
)
pure virtual

§ storyExists()

virtual bool BaseLib::Database::IDatabaseController::storyExists ( uint64_t  storyId)
pure virtual

§ updateBuilding()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::updateBuilding ( uint64_t  buildingId,
BaseLib::PVariable  translations,
BaseLib::PVariable  metadata 
)
pure virtual

§ updateBuildingPart()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::updateBuildingPart ( uint64_t  buildingPartId,
BaseLib::PVariable  translations,
BaseLib::PVariable  metadata 
)
pure virtual

§ updateCategory()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::updateCategory ( uint64_t  categoryId,
BaseLib::PVariable  translations,
BaseLib::PVariable  metadata 
)
pure virtual

§ updateGroup()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::updateGroup ( uint64_t  groupId,
BaseLib::PVariable  translations,
BaseLib::PVariable  acl 
)
pure virtual

§ updateRole()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::updateRole ( uint64_t  roleId,
BaseLib::PVariable  translations,
BaseLib::PVariable  metadata 
)
pure virtual

§ updateRoom()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::updateRoom ( uint64_t  roomId,
BaseLib::PVariable  translations,
BaseLib::PVariable  metadata 
)
pure virtual

§ updateStory()

virtual BaseLib::PVariable BaseLib::Database::IDatabaseController::updateStory ( uint64_t  storyId,
BaseLib::PVariable  translations,
BaseLib::PVariable  metadata 
)
pure virtual

§ updateUser()

virtual bool BaseLib::Database::IDatabaseController::updateUser ( uint64_t  userId,
const std::vector< uint8_t > &  passwordHash,
const std::vector< uint8_t > &  salt,
const std::vector< uint64_t > &  groups 
)
pure virtual

§ updateVariableProfile()

virtual bool BaseLib::Database::IDatabaseController::updateVariableProfile ( uint64_t  profileId,
const BaseLib::PVariable translations,
const BaseLib::PVariable profile 
)
pure virtual

§ userNameExists()

virtual bool BaseLib::Database::IDatabaseController::userNameExists ( const std::string &  name)
pure virtual

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