|
| 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< DataTable > | getUiElements ()=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 ¬ificationDescription)=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::DataTable > | getAllSystemVariables ()=0 |
|
virtual std::shared_ptr< BaseLib::Database::DataTable > | getSystemVariable (const std::string &variableId)=0 |
|
virtual std::shared_ptr< BaseLib::Database::DataTable > | getSystemVariablesInRoom (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< DataTable > | getPassword (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< DataTable > | getUsers ()=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::DataTable > | getFamilyVariables (int32_t familyId)=0 |
|
virtual void | deleteFamilyVariable (BaseLib::Database::DataRow &data)=0 |
|
virtual std::shared_ptr< DataTable > | getDevices (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< DataTable > | getPeers (uint64_t deviceID)=0 |
|
virtual std::shared_ptr< DataTable > | getDeviceVariables (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< DataTable > | getPeerParameters (uint64_t peerID)=0 |
|
virtual std::shared_ptr< DataTable > | getPeerVariables (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< DataTable > | getServiceMessages (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< DataTable > | getLicenseVariables (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::DataTable > | getVariableProfiles ()=0 |
|
virtual bool | updateVariableProfile (uint64_t profileId, const BaseLib::PVariable &translations, const BaseLib::PVariable &profile)=0 |
|