Partizan Access Control Management SDK User Manual: Version 1.0.2, 09 February 2016
Partizan Access Control Management SDK User Manual: Version 1.0.2, 09 February 2016
Partizan Access Control Management SDK User Manual: Version 1.0.2, 09 February 2016
This document is the Software User Manual (SUM) for the Partizan Access
Control Management SDK project and was made according to the software
engineering standard described in ISO/IEC JTC 1/SC 7. The Software User Manual
(SUM) instructs how to install and use the Partizan ACM SDK software.
This document covers the use for the following users of the Partizan ACM
system:
1.2 Applicability
This Software User Manual (SUM) applies to the Partizan Access Control
Management SDK version 1.0.
1.3 Purpose
The purpose of the SUM is to assist the user in installing and using the Partizan
ACM SDK software.
E-mail: [email protected]
Skype: partizan-support
http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-
1880261.html a and download software according to operating system installed at
PC. After the download is completed, install the software using the instructions
provided by the installer.
Please run Partizan ACM SDK.exe and install software using the instructions.
Default installation path is C:\\Program files(x86)\Partizan\Partizan ACM SDK\
The application can be started by using server.bat file. On first tab “Status”
the server information is described (Pic. 1)
On second tab “Server” port parameters can be configured (Pic. 2). By default
service is running at http://localhost:8089/acm-rest/. Demo application can be found
at http://localhost:8089/acm-rest/test (Pic.3)
4.1 Controllers
4.1.1 Get all controllers
Functional description: this operation gets a list of all controllers from the
database.
Formal description
Functional description: this operation gets a specific controller from the database.
Formal description
Formal description
Functional description: this operation deletes the controller from the system.
Formal description
Formal description
Formal description
Formal description
Formal description
DELETE /acm-rest/dev-group/{name}
Returns:
o JSON: { "response" : state } (see appendix A for list of states)
o HTTP status code 500, { "response" : RMI_ERROR } - in case of server
error
Functional description: this operation gets door parameters from the database.
Formal description
Formal description
Formal description
Formal description
Functional description: this operation opens the door for a long time.
Formal description
PUT /acm-rest/door/{controllerID}/{doorNumber}/longopen
Returns:
o JSON: { "response" : state } (see appendix A for list of states)
o HTTP status code 500, { "response" : RMI_ERROR } - in case of server
error
4.3.7 Lock the door
Formal description
PUT /acm-rest/door/{controllerID}/{doorNumber}/lock
Returns:
o JSON: { "response" : state } (see appendix A for list of states)
o HTTP status code 500, { "response" : RMI_ERROR } - in case of server
error
4.3.8 Unlock the door
Formal description
PUT /acm-rest/door/{controllerID}/{doorNumber}/unlock
Returns:
o JSON: { "response" : state } (see appendix A for list of states)
o HTTP status code 500, { "response" : RMI_ERROR } - in case of server
error
Functional description: this operation gets all cards from the database.
Formal description
GET /acm-rest/cards
Returns:
o { cards_list_with_info }
o Empty string if there are no cards in the database
4.4.2 Add card
Formal description
DELETE /acm-rest/cards/{deviceID}/{doorNumber}/{cardNumber}
Returns:
o JSON: { "response" : state } (see appendix A for list of states)
o HTTP status code 500, { "response" : RMI_ERROR } - in case of server
error
4.4.4 Edit card
Formal description
Formal description
DELETE /acm-rest/cards/deleteInRange/{firstId}/{lastId}
Request body:
o int firstId – first card id
o int lastId – last card id
Returns:
o JSON: { "response" : state } (see appendix A for list of states)
o HTTP status code 500, { "response" : RMI_ERROR } - in case of server
error
4.5 Timezones
4.5.1 Get all timezones
Functional description: this operation gets all timezones from the controller.
Formal description
GET /acm-rest/timezones/{controllerID}/{doorNumber}
Returns:
o { timezones_list_with_info }
o Empty string if there are no such controller or door
4.5.2 Get one time zone
Functional description: this operation gets one timezone from the controller.
Formal description
GET /acm-rest/timezones/{controllerID}/{doorNumber}/{timezoneNumber}
Returns:
o { timezones_info }
o Empty string if there are no such controller or door
4.5.3 Edit the timezone
Functional description: this operation gets all holidays from the controllers.
Formal description
GET /acm-rest/holidays/{deviceID}
Returns:
o { device_holidays_list }
o Empty string if there are no such controller or no holidays
4.6.2 Get one holiday
Functional description: this operation gets one holiday from the controller.
Formal description
GET /acm-rest/holidays/{deviceID}/{holidayIndex}
Returns:
o { device_holiday }
o Empty string if there are no such controller or controller have no holiday
with such index
4.6.3 Add holiday
Formal description
Returns:
Formal description
Functional description: this operation gets all events from the database.
Formal description
Functional description: this operation gets all events from specified controller
from the database.
Partizan ACM SDK User Manual Page 25
Formal description
Functional description: this operation gets events from all controllers from the
database.
Formal description
Functional description: this operation gets events from specified controller from
the database.
Formal description
OK
NOT_CONNECTED - Device is not connected right now. Changes will take
effect after device will be connected.
INTERNAL_ERROR - Device is not responding on commands
SOCKET_ERROR - Socket error
NOT_OK - Unknown response from device
CS_ERROR - Bad packet from device
START_ERROR - Bad packet from device
NO_DEVICE - No such device
RMI_ERROR - RMI error
DUPLICATE - Item is already in the database
DB_ERROR - Database error
NO_DOOR - No such door
JSON_ERROR - JSON parsing error
NOT_FOUND - Item not found
ERROR_LOAD_SET - Unable to load settings to device