class Lenel::OpenAccess
- Lenel::OpenAccess
- PlaceOS::Driver
- Reference
- Object
Included Modules
Defined in:
lenel/open_access.cr:4lenel/open_access.cr:8
Class Method Summary
Instance Method Summary
-
#badge_types
Query the available badge types.
-
#check_comms
Test service connectivity.
- #connected
-
#create_badge(type : Int32, id : Int64, personid : Int32, uselimit : Int32 | Nil = nil, activate : Time | Nil = nil, deactivate : Time | Nil = nil)
Creates a new badge of the specied type, belonging to personid with a specific id.
- #create_badge_epoch(type : Int32, id : Int64, personid : Int32, activate_epoch : Int32, deactivate_epoch : Int32, uselimit : Int32 | Nil = nil)
-
#create_cardholder(email : String, firstname : String, lastname : String)
Creates a new cardholder.
-
#delete_badge(badgekey : Int32) : Nil
Deletes a badge with the specified badgekey.
- #delete_badges(badgekeys : Array(Int32)) : Int32
-
#delete_cardholder(id : Int32) : Nil
Deletes a cardholed by their person id.
- #disconnected
-
#list_badges(personid : Int32)
List badges belonging to a cardholder
-
#list_directories
Query the directories available for auth.
-
#list_events(filter : String, page_number : Int32 | Nil = nil)
List Logged Events
-
#list_events_in_range(filter : String, from : Time | Nil = nil, til : Time | Nil = nil)
List events that occured during a given time window.
-
#lookup_badge_id(id : Int64)
Get badge by id (instead of badgekey)
-
#lookup_badge_key(badgekey : Int32)
Get badge by badgekey (instead of id) Note: id is the number in the QR data or burnt to the swipe card.
-
#lookup_cardholder(email : String)
Lookup a cardholder by email address.
-
#lookup_cardholder_id(id : Int32)
Lookup a cardholder by ID
- #lookup_cardholders(email : String)
- #on_load
- #on_update
- #search(type_name : String, filter : String | Nil = nil)
-
#search_readers(filter : String)
List card readers matching a given filter
- #update_badge(badgekey : Int32, id : Int64 | Nil = nil, uselimit : Int32 | Nil = nil, activate : Time | Nil = nil, deactivate : Time | Nil = nil)
- #update_badge_epoch(badgekey : Int32, activate_epoch : Int32, deactivate_epoch : Int32, id : Int64 | Nil = nil, uselimit : Int32 | Nil = nil)
-
#version
Gets the version of the attached OnGuard system.
Class Method Detail
Instance Method Detail
Query the available badge types.
Badge types contain default configuration that is applied to any badge created under them. This includes items such as access areas, activation windows and other bulk config. These may then be override on individual badge instances.
Creates a new badge of the specied type, belonging to personid with a specific id.
Note: 'id' is the physical badge number (e.g. the ID written to an NFC chip)
Creates a new cardholder.
An error will be returned if an existing cardholder exists for the specified email address.
List events that occured during a given time window. Default to past 24h.
Get badge by badgekey (instead of id) Note: id is the number in the QR data or burnt to the swipe card. badgekey is Lenel's primary key for badges