libhomegear-base
0.7
Base library for Homegear and Homegear family modules.
|
#include <Acls.h>
Public Member Functions | |
Acls (BaseLib::SharedObjects *bl, int32_t clientId) | |
~Acls () | |
bool | categoriesReadSet () |
bool | categoriesWriteSet () |
bool | rolesReadSet () |
bool | rolesWriteSet () |
bool | devicesReadSet () |
bool | devicesWriteSet () |
bool | roomsReadSet () |
bool | roomsWriteSet () |
bool | buildingPartsReadSet () |
bool | buildingPartsWriteSet () |
bool | buildingPartsRoomsCategoriesRolesDevicesReadSet () |
bool | buildingPartsRoomsCategoriesRolesDevicesWriteSet () |
bool | variablesReadSet () |
bool | variablesWriteSet () |
bool | variablesBuildingPartsRoomsCategoriesRolesDevicesReadSet () |
bool | variablesBuildingPartsRoomsCategoriesRolesDevicesWriteSet () |
bool | variablesBuildingPartsRoomsCategoriesRolesReadSet () |
bool | variablesBuildingPartsRoomsCategoriesRolesWriteSet () |
void | clear () |
bool | fromUser (std::string &userName) |
bool | fromGroups (std::vector< uint64_t > &groupIds) |
PVariable | toVariable () |
void | fromVariable (PVariable serializedData) |
bool | checkServiceAccess (std::string serviceName) |
Checks if the ACLs grant access to a service. More... | |
bool | checkCategoriesReadAccess (std::set< uint64_t > &categories) |
Checks if the ACLs grant access to one or more categories. More... | |
bool | checkCategoriesWriteAccess (std::set< uint64_t > &categories) |
Checks if the ACLs grant access to one or more categories. More... | |
bool | checkCategoryReadAccess (uint64_t categoryId) |
Checks if the ACLs grant access to a category. More... | |
bool | checkCategoryWriteAccess (uint64_t categoryId) |
Checks if the ACLs grant access to a category. More... | |
bool | checkRolesReadAccess (std::set< uint64_t > &roles) |
Checks if the ACLs grant access to one or more roles. More... | |
bool | checkRolesWriteAccess (std::set< uint64_t > &roles) |
Checks if the ACLs grant access to one or more roles. More... | |
bool | checkRoleReadAccess (uint64_t roleId) |
Checks if the ACLs grant access to a role. More... | |
bool | checkRoleWriteAccess (uint64_t roleId) |
Checks if the ACLs grant access to a role. More... | |
bool | checkDeviceReadAccess (std::shared_ptr< Systems::Peer > peer) |
Checks if the ACLs grant access to a device. More... | |
bool | checkDeviceWriteAccess (std::shared_ptr< Systems::Peer > peer) |
Checks if the ACLs grant access to a device. More... | |
bool | checkEventServerMethodAccess (std::string methodName) |
Checks if the ACLs grant access to an event server method. More... | |
bool | checkMethodAccess (std::string methodName) |
Checks if the ACLs grant access to a method. More... | |
bool | checkMethodAndCategoryReadAccess (std::string methodName, uint64_t categoryId) |
Checks if the ACLs grant access to a method and category. More... | |
bool | checkMethodAndCategoryWriteAccess (std::string methodName, uint64_t categoryId) |
Checks if the ACLs grant access to a method and category. More... | |
bool | checkMethodAndRoleReadAccess (std::string methodName, uint64_t roleId) |
Checks if the ACLs grant access to a method and role. More... | |
bool | checkMethodAndRoleWriteAccess (std::string methodName, uint64_t roleId) |
Checks if the ACLs grant access to a method and role. More... | |
bool | checkMethodAndRoomReadAccess (std::string methodName, uint64_t roomId) |
Checks if the ACLs grant access to a method and room. More... | |
bool | checkMethodAndRoomWriteAccess (std::string methodName, uint64_t roomId) |
Checks if the ACLs grant access to a method and room. More... | |
bool | checkMethodAndBuildingPartReadAccess (std::string methodName, uint64_t buildingPartId) |
Checks if the ACLs grant access to a method and building part. More... | |
bool | checkMethodAndBuildingPartWriteAccess (std::string methodName, uint64_t buildingPartId) |
Checks if the ACLs grant access to a method and building part. More... | |
bool | checkMethodAndDeviceWriteAccess (std::string methodName, uint64_t peerId) |
Checks if the ACLs grant access to a method and device. More... | |
bool | checkNodeBlueVariableReadAccess (const std::string &nodeId, int32_t input) |
Checks if the ACLs grant access to a NodeBLUE variable. More... | |
bool | checkNodeBlueVariableWriteAccess (const std::string &nodeId, int32_t input) |
Checks if the ACLs grant access to a NodeBLUE variable. More... | |
bool | checkRoomReadAccess (uint64_t roomId) |
Checks if the ACLs grant access to a room. More... | |
bool | checkRoomWriteAccess (uint64_t roomId) |
Checks if the ACLs grant access to a room. More... | |
bool | checkBuildingPartReadAccess (uint64_t buildingPartId) |
Checks if the ACLs grant access to a building part. More... | |
bool | checkBuildingPartWriteAccess (uint64_t buildingPartId) |
Checks if the ACLs grant access to a building part. More... | |
bool | checkSystemVariableReadAccess (Database::PSystemVariable systemVariable) |
Checks if the ACLs grant access to a system variable. More... | |
bool | checkSystemVariableWriteAccess (Database::PSystemVariable systemVariable) |
Checks if the ACLs grant access to a system variable. More... | |
bool | checkVariableReadAccess (std::shared_ptr< Systems::Peer > peer, int32_t channel, const std::string &variableName) |
Checks if the ACLs grant access to a variable. More... | |
bool | checkVariableWriteAccess (std::shared_ptr< Systems::Peer > peer, int32_t channel, const std::string &variableName) |
Checks if the ACLs grant access to a variable. More... | |
BaseLib::Security::Acls::Acls | ( | BaseLib::SharedObjects * | bl, |
int32_t | clientId | ||
) |
BaseLib::Security::Acls::~Acls | ( | ) |
bool BaseLib::Security::Acls::buildingPartsReadSet | ( | ) |
bool BaseLib::Security::Acls::buildingPartsRoomsCategoriesRolesDevicesReadSet | ( | ) |
bool BaseLib::Security::Acls::buildingPartsRoomsCategoriesRolesDevicesWriteSet | ( | ) |
bool BaseLib::Security::Acls::buildingPartsWriteSet | ( | ) |
bool BaseLib::Security::Acls::categoriesReadSet | ( | ) |
bool BaseLib::Security::Acls::categoriesWriteSet | ( | ) |
bool BaseLib::Security::Acls::checkBuildingPartReadAccess | ( | uint64_t | buildingPartId | ) |
Checks if the ACLs grant access to a building part.
buildingPartId | The ID of the building part to check. |
bool BaseLib::Security::Acls::checkBuildingPartWriteAccess | ( | uint64_t | buildingPartId | ) |
Checks if the ACLs grant access to a building part.
buildingPartId | The ID of the building part to check. |
bool BaseLib::Security::Acls::checkCategoriesReadAccess | ( | std::set< uint64_t > & | categories | ) |
Checks if the ACLs grant access to one or more categories.
categories | The IDs of the categories to check. |
bool BaseLib::Security::Acls::checkCategoriesWriteAccess | ( | std::set< uint64_t > & | categories | ) |
Checks if the ACLs grant access to one or more categories.
categories | The IDs of the categories to check. |
bool BaseLib::Security::Acls::checkCategoryReadAccess | ( | uint64_t | categoryId | ) |
Checks if the ACLs grant access to a category.
roomId | The ID of the category to check. |
bool BaseLib::Security::Acls::checkCategoryWriteAccess | ( | uint64_t | categoryId | ) |
Checks if the ACLs grant access to a category.
roomId | The ID of the category to check. |
bool BaseLib::Security::Acls::checkDeviceReadAccess | ( | std::shared_ptr< Systems::Peer > | peer | ) |
Checks if the ACLs grant access to a device.
Also checks the room and categories assigned to the device.
peer | The peer to check. |
bool BaseLib::Security::Acls::checkDeviceWriteAccess | ( | std::shared_ptr< Systems::Peer > | peer | ) |
Checks if the ACLs grant access to a device.
Also checks the room and categories assigned to the device.
peer | The peer to check. |
bool BaseLib::Security::Acls::checkEventServerMethodAccess | ( | std::string | methodName | ) |
Checks if the ACLs grant access to an event server method.
methodName | The name of the method to check. |
bool BaseLib::Security::Acls::checkMethodAccess | ( | std::string | methodName | ) |
Checks if the ACLs grant access to a method.
methodName | The name of the method to check. |
bool BaseLib::Security::Acls::checkMethodAndBuildingPartReadAccess | ( | std::string | methodName, |
uint64_t | buildingPartId | ||
) |
Checks if the ACLs grant access to a method and building part.
methodName | The name of the method to check. |
buildingPartId | The ID of the building part to check. |
bool BaseLib::Security::Acls::checkMethodAndBuildingPartWriteAccess | ( | std::string | methodName, |
uint64_t | buildingPartId | ||
) |
Checks if the ACLs grant access to a method and building part.
methodName | The name of the method to check. |
buildingPartId | The ID of the building part to check. |
bool BaseLib::Security::Acls::checkMethodAndCategoryReadAccess | ( | std::string | methodName, |
uint64_t | categoryId | ||
) |
Checks if the ACLs grant access to a method and category.
methodName | The name of the method to check. |
categoryId | The ID of the category to check. |
bool BaseLib::Security::Acls::checkMethodAndCategoryWriteAccess | ( | std::string | methodName, |
uint64_t | categoryId | ||
) |
Checks if the ACLs grant access to a method and category.
methodName | The name of the method to check. |
categoryId | The ID of the category to check. |
bool BaseLib::Security::Acls::checkMethodAndDeviceWriteAccess | ( | std::string | methodName, |
uint64_t | peerId | ||
) |
Checks if the ACLs grant access to a method and device.
methodName | The name of the method to check. |
peerId | The ID of the peer to check. |
bool BaseLib::Security::Acls::checkMethodAndRoleReadAccess | ( | std::string | methodName, |
uint64_t | roleId | ||
) |
Checks if the ACLs grant access to a method and role.
methodName | The name of the method to check. |
roleId | The ID of the role to check. |
bool BaseLib::Security::Acls::checkMethodAndRoleWriteAccess | ( | std::string | methodName, |
uint64_t | roleId | ||
) |
Checks if the ACLs grant access to a method and role.
methodName | The name of the method to check. |
roleId | The ID of the role to check. |
bool BaseLib::Security::Acls::checkMethodAndRoomReadAccess | ( | std::string | methodName, |
uint64_t | roomId | ||
) |
Checks if the ACLs grant access to a method and room.
methodName | The name of the method to check. |
roomId | The ID of the room to check. |
bool BaseLib::Security::Acls::checkMethodAndRoomWriteAccess | ( | std::string | methodName, |
uint64_t | roomId | ||
) |
Checks if the ACLs grant access to a method and room.
methodName | The name of the method to check. |
roomId | The ID of the room to check. |
bool BaseLib::Security::Acls::checkNodeBlueVariableReadAccess | ( | const std::string & | nodeId, |
int32_t | input | ||
) |
Checks if the ACLs grant access to a NodeBLUE variable.
nodeId | The node ID to check. |
input | The input index. |
bool BaseLib::Security::Acls::checkNodeBlueVariableWriteAccess | ( | const std::string & | nodeId, |
int32_t | input | ||
) |
Checks if the ACLs grant access to a NodeBLUE variable.
nodeId | The node ID to check. |
input | The input index. |
bool BaseLib::Security::Acls::checkRoleReadAccess | ( | uint64_t | roleId | ) |
Checks if the ACLs grant access to a role.
roomId | The ID of the role to check. |
bool BaseLib::Security::Acls::checkRolesReadAccess | ( | std::set< uint64_t > & | roles | ) |
Checks if the ACLs grant access to one or more roles.
roles | The IDs of the roles to check. |
bool BaseLib::Security::Acls::checkRolesWriteAccess | ( | std::set< uint64_t > & | roles | ) |
Checks if the ACLs grant access to one or more roles.
roles | The IDs of the roles to check. |
bool BaseLib::Security::Acls::checkRoleWriteAccess | ( | uint64_t | roleId | ) |
Checks if the ACLs grant access to a role.
roomId | The ID of the role to check. |
bool BaseLib::Security::Acls::checkRoomReadAccess | ( | uint64_t | roomId | ) |
Checks if the ACLs grant access to a room.
roomId | The ID of the room to check. |
bool BaseLib::Security::Acls::checkRoomWriteAccess | ( | uint64_t | roomId | ) |
Checks if the ACLs grant access to a room.
roomId | The ID of the room to check. |
bool BaseLib::Security::Acls::checkServiceAccess | ( | std::string | serviceName | ) |
Checks if the ACLs grant access to a service.
serviceName | The name of the service to check. |
bool BaseLib::Security::Acls::checkSystemVariableReadAccess | ( | Database::PSystemVariable | systemVariable | ) |
Checks if the ACLs grant access to a system variable.
systemVariable | The system variable to check. |
bool BaseLib::Security::Acls::checkSystemVariableWriteAccess | ( | Database::PSystemVariable | systemVariable | ) |
Checks if the ACLs grant access to a system variable.
systemVariable | The system variable to check. |
bool BaseLib::Security::Acls::checkVariableReadAccess | ( | std::shared_ptr< Systems::Peer > | peer, |
int32_t | channel, | ||
const std::string & | variableName | ||
) |
Checks if the ACLs grant access to a variable.
peer | The peer to check. |
channel | The channel to check. |
variableName | The variable name to check. |
bool BaseLib::Security::Acls::checkVariableWriteAccess | ( | std::shared_ptr< Systems::Peer > | peer, |
int32_t | channel, | ||
const std::string & | variableName | ||
) |
Checks if the ACLs grant access to a variable.
peer | The peer to check. |
channel | The channel to check. |
variableName | The variable name to check. |
void BaseLib::Security::Acls::clear | ( | ) |
bool BaseLib::Security::Acls::devicesReadSet | ( | ) |
bool BaseLib::Security::Acls::devicesWriteSet | ( | ) |
bool BaseLib::Security::Acls::fromGroups | ( | std::vector< uint64_t > & | groupIds | ) |
bool BaseLib::Security::Acls::fromUser | ( | std::string & | userName | ) |
void BaseLib::Security::Acls::fromVariable | ( | PVariable | serializedData | ) |
bool BaseLib::Security::Acls::rolesReadSet | ( | ) |
bool BaseLib::Security::Acls::rolesWriteSet | ( | ) |
bool BaseLib::Security::Acls::roomsReadSet | ( | ) |
bool BaseLib::Security::Acls::roomsWriteSet | ( | ) |
PVariable BaseLib::Security::Acls::toVariable | ( | ) |
bool BaseLib::Security::Acls::variablesBuildingPartsRoomsCategoriesRolesDevicesReadSet | ( | ) |
bool BaseLib::Security::Acls::variablesBuildingPartsRoomsCategoriesRolesDevicesWriteSet | ( | ) |
bool BaseLib::Security::Acls::variablesBuildingPartsRoomsCategoriesRolesReadSet | ( | ) |
bool BaseLib::Security::Acls::variablesBuildingPartsRoomsCategoriesRolesWriteSet | ( | ) |
bool BaseLib::Security::Acls::variablesReadSet | ( | ) |
bool BaseLib::Security::Acls::variablesWriteSet | ( | ) |