![]() |
yumapro
24.10-11
YumaPro SDK
|
The External ACM handler provides the required access control APIs outside of the server control. More...
Typedefs | |
typedef boolean(* | agt_acm_extern_rpc_fn_t) (xml_msg_hdr_t *msg, const xmlChar *user, const obj_template_t *rpcobj) |
Check if the specified user is allowed to invoke an RPC. More... | |
typedef boolean(* | agt_acm_extern_notif_fn_t) (const xmlChar *user, const obj_template_t *notifobj) |
Check if the specified user is allowed to receive a notification event. More... | |
typedef boolean(* | agt_acm_extern_write_fn_t) (xml_msg_hdr_t *msg, const xmlChar *user, const val_value_t *newval, const val_value_t *curval, op_editop_t editop) |
Check if the specified user is allowed to access a value node. More... | |
typedef boolean(* | agt_acm_extern_read_fn_t) (xml_msg_hdr_t *msg, const xmlChar *user, const val_value_t *val) |
Check if the specified user is allowed to read a value node. More... | |
Functions | |
void | agt_acm_extern_register_callbacks (agt_acm_extern_rpc_fn_t rpcfn, agt_acm_extern_notif_fn_t notfn, agt_acm_extern_write_fn_t writefn, agt_acm_extern_read_fn_t readfn) |
Register the external callbacks for ACM implementation. More... | |
boolean | agt_acm_extern_rpc_allowed (xml_msg_hdr_t *msg, const xmlChar *user, const obj_template_t *rpcobj) |
Check if the specified user is allowed to invoke an RPC. More... | |
boolean | agt_acm_extern_notif_allowed (const xmlChar *user, const obj_template_t *notifobj) |
Check if the specified user is allowed to receive a notification event. More... | |
boolean | agt_acm_extern_val_write_allowed (xml_msg_hdr_t *msg, const xmlChar *user, const val_value_t *newval, const val_value_t *curval, op_editop_t editop) |
Check if the specified user is allowed to access a value node. More... | |
boolean | agt_acm_extern_val_read_allowed (xml_msg_hdr_t *msg, const xmlChar *user, const val_value_t *val) |
Check if the specified user is allowed to read a value node. More... | |
The External ACM handler provides the required access control APIs outside of the server control.
The vendor callbacks are required to check access rights each time access is requested by a client.
typedef boolean(* agt_acm_extern_notif_fn_t) (const xmlChar *user, const obj_template_t *notifobj) |
Check if the specified user is allowed to receive a notification event.
user | user name string |
notifobj | obj_template_t for the notification event to check |
typedef boolean(* agt_acm_extern_read_fn_t) (xml_msg_hdr_t *msg, const xmlChar *user, const val_value_t *val) |
Check if the specified user is allowed to read a value node.
msg | XML header from incoming message in progress |
user | user name string |
val | val_value_t in progress to check |
typedef boolean(* agt_acm_extern_rpc_fn_t) (xml_msg_hdr_t *msg, const xmlChar *user, const obj_template_t *rpcobj) |
Check if the specified user is allowed to invoke an RPC.
msg | XML header in incoming message in progress |
user | user name string |
rpcobj | obj_template_t for the RPC method to check |
typedef boolean(* agt_acm_extern_write_fn_t) (xml_msg_hdr_t *msg, const xmlChar *user, const val_value_t *newval, const val_value_t *curval, op_editop_t editop) |
Check if the specified user is allowed to access a value node.
The val->obj template will be checked against the val->editop requested access and the user's configured max-access
msg | XML header from incoming message in progress |
user | user name string to check for access |
newval | val_value_t in progress to check (may be NULL, if curval set) |
curval | val_value_t in progress to check (may be NULL, if newval set) |
editop | requested CRUD operation |
boolean agt_acm_extern_notif_allowed | ( | const xmlChar * | user, |
const obj_template_t * | notifobj | ||
) |
Check if the specified user is allowed to receive a notification event.
user | user name string |
notifobj | obj_template_t for the notification event to check |
void agt_acm_extern_register_callbacks | ( | agt_acm_extern_rpc_fn_t | rpcfn, |
agt_acm_extern_notif_fn_t | notfn, | ||
agt_acm_extern_write_fn_t | writefn, | ||
agt_acm_extern_read_fn_t | readfn | ||
) |
Register the external callbacks for ACM implementation.
A NULL callback means that type of access will always be granted!!!
rpcfn | check-rpc function callback |
notfn | check-notification function callback |
writefn | check-val-write function callback |
readfn | check-val-write function callback |
boolean agt_acm_extern_rpc_allowed | ( | xml_msg_hdr_t * | msg, |
const xmlChar * | user, | ||
const obj_template_t * | rpcobj | ||
) |
Check if the specified user is allowed to invoke an RPC.
msg | XML header in incoming message in progress |
user | user name string |
rpcobj | obj_template_t for the RPC method to check |
boolean agt_acm_extern_val_read_allowed | ( | xml_msg_hdr_t * | msg, |
const xmlChar * | user, | ||
const val_value_t * | val | ||
) |
Check if the specified user is allowed to read a value node.
msg | XML header from incoming message in progress |
user | user name string |
val | val_value_t in progress to check |
boolean agt_acm_extern_val_write_allowed | ( | xml_msg_hdr_t * | msg, |
const xmlChar * | user, | ||
const val_value_t * | newval, | ||
const val_value_t * | curval, | ||
op_editop_t | editop | ||
) |
Check if the specified user is allowed to access a value node.
The val->obj template will be checked against the val->editop requested access and the user's configured max-access
msg | XML header from incoming message in progress |
user | user name string |
newval | val_value_t in progress to check (may be NULL, if curval set) |
curval | val_value_t in progress to check (may be NULL, if newval set) |
editop | requested CRUD operation |