Legrand / Raritan / Server Technology Xerus™ JSON-RPC API
|
Access control for door locks. More...
Classes | |
struct | AbsoluteTimeCondition |
A condition representing an absolute time range. More... | |
struct | CardCondition |
A condition for specific cards and card readers. More... | |
struct | CardReaderInfo |
Information in order to refer to a specific card reader. More... | |
struct | DoorAccessDeniedEvent |
Event: Door access denied. More... | |
struct | DoorAccessGrantedEvent |
Event: Door access granted. More... | |
struct | DoorAccessRule |
Data representing a rule to control access to certain doors. More... | |
struct | DoorAccessRuleAddedEvent |
Event: Door access rule added. More... | |
struct | DoorAccessRuleChangedEvent |
Event: Door access rule modified. More... | |
struct | DoorAccessRuleDeletedEvent |
Event: Door access rule deleted. More... | |
struct | KeypadCondition |
A condition for keypads with a secret pin. More... | |
struct | KeypadInfo |
Information in order to refer to a specific keypad. More... | |
struct | PeriodicTimeCondition |
A condition representing a periodic time range. More... | |
Public Types | |
enum | DoorAccessDenialReason { DENIED_NO_MATCHING_RULE , DENIED_ABSOLUTE_TIME_CONDITION , DENIED_PERIODIC_TIME_CONDITION , DENIED_CONDITIONS_TIMEOUT } |
Door Access Denial Reason. More... | |
Public Member Functions | |
map< int, DoorAccessRule > | getDoorAccessRules () |
Get all stored door access control rules. More... | |
int | setAllDoorAccessRules (in map< int, DoorAccessRule > rules, out vector< int > invalidRuleIds) |
Replace all the currently existing rules. More... | |
int | addDoorAccessRule (in DoorAccessRule rule, out int ruleId) |
Add a door access control rule. More... | |
int | modifyDoorAccessRule (in int id, in DoorAccessRule modifiedRule) |
Modify an existing door access control rule. More... | |
int | deleteDoorAccessRule (in int id) |
Delete an existing door access control rule. More... | |
Public Attributes | |
constant int | ERR_INVALID_SETTINGS = 1 |
Invalid settings. More... | |
constant int | ERR_NO_SUCH_ID = 2 |
No such ID. More... | |
constant int | ERR_MAX_RULES_REACHED = 3 |
Maximum number of rules. More... | |
Access control for door locks.
Definition at line 16 of file DoorAccessControl.idl.
Door Access Denial Reason.
Definition at line 115 of file DoorAccessControl.idl.
int smartlock::DoorAccessControl::addDoorAccessRule | ( | in DoorAccessRule | rule, |
out int | ruleId | ||
) |
Add a door access control rule.
If successful, the id of the new rule will be returned.
rule | the new rule |
int smartlock::DoorAccessControl::deleteDoorAccessRule | ( | in int | id | ) |
Delete an existing door access control rule.
id | id of the rule to delete |
map< int, DoorAccessRule > smartlock::DoorAccessControl::getDoorAccessRules | ( | ) |
Get all stored door access control rules.
int smartlock::DoorAccessControl::modifyDoorAccessRule | ( | in int | id, |
in DoorAccessRule | modifiedRule | ||
) |
Modify an existing door access control rule.
id | id of the rule to modify |
modifiedRule | rule containing the new settings |
int smartlock::DoorAccessControl::setAllDoorAccessRules | ( | in map< int, DoorAccessRule > | rules, |
out vector< int > | invalidRuleIds | ||
) |
Replace all the currently existing rules.
Note that this not only adds and modifies rules, but also deletes existing rules that are not present in the given rule set.
In case of any rule being invalid, no changes will be made at all.
rules | the new rule set |
invalidRules | in case of an error, return ids of invalid rules |
constant int smartlock::DoorAccessControl::ERR_INVALID_SETTINGS = 1 |
Invalid settings.
Definition at line 18 of file DoorAccessControl.idl.
constant int smartlock::DoorAccessControl::ERR_MAX_RULES_REACHED = 3 |
Maximum number of rules.
Definition at line 20 of file DoorAccessControl.idl.
constant int smartlock::DoorAccessControl::ERR_NO_SUCH_ID = 2 |
No such ID.
Definition at line 19 of file DoorAccessControl.idl.