ANSI C Based OPC UA Client/Server/PubSub SDK
1.9.1.442
|
Data Structures | |
struct | UaServer_UserCtx |
Stores all user information. More... | |
struct | UaServer_iNode |
Stores access information for OpcUa_BaseNodes similar to Unix iNodes. More... | |
Macros | |
#define | UA_OTHER_ATTRWRITABLE UA_ATTRWRITABLE |
Other: Write non-value attributes of the node, depending on WriteMask. More... | |
#define | UA_OTHER_WRITABLE UA_WRITABLE |
Other: Write the value attribute of a variable or variable type. More... | |
#define | UA_OTHER_EXECUTABLE UA_EXECUTABLE |
Other: Execute a method. More... | |
#define | UA_OTHER_HISTORYINSERT UA_HISTORYINSERT |
Other: Insert into data or event history. More... | |
#define | UA_OTHER_HISTORYMODIFY UA_HISTORYMODIFY |
Other: Modify data or event history. More... | |
#define | UA_OTHER_HISTORYDELETE UA_HISTORYDELETE |
Other: Delete data or event history. More... | |
#define | UA_OTHER_READABLE UA_READABLE |
Other: Read the value attribute of a variable or variable type. More... | |
#define | UA_OTHER_HISTORYREADABLE UA_HISTORYREADABLE |
Other: Read the data or event history of a node. More... | |
#define | UA_OTHER_BROWSEABLE UA_BROWSEABLE |
Other: Node gets returned in browse results. More... | |
#define | UA_OTHER_ATTRREADABLE UA_ATTRREADABLE |
Other: Read non-value attributes of the node. More... | |
#define | UA_OTHER_EVENTREADABLE UA_EVENTREADABLE |
Other: Subscribe to the object to receive events. More... | |
#define | UA_OTHER_OBSERVATION (UA_OTHER_READABLE | UA_OTHER_HISTORYREADABLE | UA_OTHER_BROWSEABLE | UA_OTHER_ATTRREADABLE | UA_OTHER_EVENTREADABLE) |
Other: Reading and subscribing to values, no modification or execution allowed. More... | |
#define | UA_OTHER_OPERATION (UA_OTHER_OBSERVATION | UA_OTHER_WRITABLE | UA_OTHER_EXECUTABLE) |
Other: Observation rights together with write and execute rights. More... | |
#define | UA_OTHER_ALL (UA_OTHER_OPERATION | UA_OTHER_ATTRWRITABLE | UA_OTHER_HISTORYINSERT | UA_OTHER_HISTORYMODIFY | UA_OTHER_HISTORYDELETE) |
Other: All access rights. More... | |
#define | UA_GROUP_ATTRWRITABLE (UA_OTHER_ATTRWRITABLE << UA_NUM_PERM_BITS) |
Group: Write non-value attributes of the node, depending on WriteMask. More... | |
#define | UA_GROUP_WRITABLE (UA_OTHER_WRITABLE << UA_NUM_PERM_BITS) |
Group: Write the value attribute of a variable or variable type. More... | |
#define | UA_GROUP_EXECUTABLE (UA_OTHER_EXECUTABLE << UA_NUM_PERM_BITS) |
Group: Execute a method. More... | |
#define | UA_GROUP_HISTORYINSERT (UA_OTHER_HISTORYINSERT << UA_NUM_PERM_BITS) |
Group: Insert into data or event history. More... | |
#define | UA_GROUP_HISTORYMODIFY (UA_OTHER_HISTORYMODIFY << UA_NUM_PERM_BITS) |
Group: Modify data or event history. More... | |
#define | UA_GROUP_HISTORYDELETE (UA_OTHER_HISTORYDELETE << UA_NUM_PERM_BITS) |
Group: Delete data or event history. More... | |
#define | UA_GROUP_READABLE (UA_OTHER_READABLE << UA_NUM_PERM_BITS) |
Group: Read the value attribute of a variable or variable type. More... | |
#define | UA_GROUP_HISTORYREADABLE (UA_OTHER_HISTORYREADABLE << UA_NUM_PERM_BITS) |
Group: Read the data or event history of a node. More... | |
#define | UA_GROUP_BROWSEABLE (UA_OTHER_BROWSEABLE << UA_NUM_PERM_BITS) |
Group: Node gets returned in browse results. More... | |
#define | UA_GROUP_ATTRREADABLE (UA_OTHER_ATTRREADABLE << UA_NUM_PERM_BITS) |
Group: Read non-value attributes of the node. More... | |
#define | UA_GROUP_EVENTREADABLE (UA_OTHER_EVENTREADABLE << UA_NUM_PERM_BITS) |
Group: Subscribe to the object to receive events. More... | |
#define | UA_GROUP_OBSERVATION (UA_GROUP_READABLE | UA_GROUP_HISTORYREADABLE | UA_GROUP_BROWSEABLE | UA_GROUP_ATTRREADABLE | UA_GROUP_EVENTREADABLE) |
Group: Reading and subscribing to values, no modification or execution allowed. More... | |
#define | UA_GROUP_OPERATION (UA_GROUP_OBSERVATION | UA_GROUP_WRITABLE | UA_GROUP_EXECUTABLE) |
Group: Observation rights together with write and execute rights. More... | |
#define | UA_GROUP_ALL (UA_GROUP_OPERATION | UA_GROUP_ATTRWRITABLE | UA_GROUP_HISTORYINSERT | UA_GROUP_HISTORYMODIFY | UA_GROUP_HISTORYDELETE) |
Group: All access rights. More... | |
#define | UA_USER_ATTRWRITABLE (UA_GROUP_ATTRWRITABLE << UA_NUM_PERM_BITS) |
User: Write non-value attributes of the node, depending on WriteMask. More... | |
#define | UA_USER_WRITABLE (UA_GROUP_WRITABLE << UA_NUM_PERM_BITS) |
User: Write the value attribute of a variable or variable type. More... | |
#define | UA_USER_EXECUTABLE (UA_GROUP_EXECUTABLE << UA_NUM_PERM_BITS) |
User: Execute a method. More... | |
#define | UA_USER_HISTORYINSERT (UA_GROUP_HISTORYINSERT << UA_NUM_PERM_BITS) |
User: Insert into data or event history. More... | |
#define | UA_USER_HISTORYMODIFY (UA_GROUP_HISTORYMODIFY << UA_NUM_PERM_BITS) |
User: Modify data or event history. More... | |
#define | UA_USER_HISTORYDELETE (UA_GROUP_HISTORYDELETE << UA_NUM_PERM_BITS) |
User: Delete data or event history. More... | |
#define | UA_USER_READABLE (UA_GROUP_READABLE << UA_NUM_PERM_BITS) |
User: Read the value attribute of a variable or variable type. More... | |
#define | UA_USER_HISTORYREADABLE (UA_GROUP_HISTORYREADABLE << UA_NUM_PERM_BITS) |
User: Read the data or event history of a node. More... | |
#define | UA_USER_BROWSEABLE (UA_GROUP_BROWSEABLE << UA_NUM_PERM_BITS) |
User: Node gets returned in browse results. More... | |
#define | UA_USER_ATTRREADABLE (UA_GROUP_ATTRREADABLE << UA_NUM_PERM_BITS) |
User: Read non-value attributes of the node. More... | |
#define | UA_USER_EVENTREADABLE (UA_GROUP_EVENTREADABLE << UA_NUM_PERM_BITS) |
User: Subscribe to the object to receive events. More... | |
#define | UA_USER_OBSERVATION (UA_USER_READABLE | UA_USER_HISTORYREADABLE | UA_USER_BROWSEABLE | UA_USER_ATTRREADABLE | UA_USER_EVENTREADABLE) |
User: Reading and subscribing to values, no modification or execution allowed. More... | |
#define | UA_USER_OPERATION (UA_USER_OBSERVATION | UA_USER_WRITABLE | UA_USER_EXECUTABLE) |
User: Observation rights together with write and execute rights. More... | |
#define | UA_USER_ALL (UA_USER_OPERATION | UA_USER_ATTRWRITABLE | UA_USER_HISTORYINSERT | UA_USER_HISTORYMODIFY | UA_USER_HISTORYDELETE) |
User: All access rights. More... | |
#define | UA_ALL_SIGNING_REQUIRED (0x1 << (3 * UA_NUM_PERM_BITS)) |
Access requires message signing. | |
#define | UA_ALL_ENCRYPTION_REQUIRED UA_ALL_SIGNING_REQUIRED |
Access requires message encryption. | |
#define | UA_OTHER_HISTORY_READABLE UA_OTHER_HISTORYREADABLE |
Deprecated! More... | |
#define | UA_OTHER_HISTORY_WRITABLE (UA_OTHER_HISTORYINSERT | UA_OTHER_HISTORYMODIFY | UA_OTHER_HISTORYDELETE) |
Deprecated! More... | |
#define | UA_GROUP_HISTORY_READABLE UA_GROUP_HISTORYREADABLE |
Deprecated! More... | |
#define | UA_GROUP_HISTORY_WRITABLE (UA_GROUP_HISTORYINSERT | UA_GROUP_HISTORYMODIFY | UA_GROUP_HISTORYDELETE) |
Deprecated! More... | |
#define | UA_USER_HISTORY_READABLE UA_USER_HISTORYREADABLE |
Deprecated! More... | |
#define | UA_USER_HISTORY_WRITABLE (UA_USER_HISTORYINSERT | UA_USER_HISTORYMODIFY | UA_USER_HISTORYDELETE) |
Deprecated! More... | |
Functions | |
OpcUa_Boolean | UaServer_UserMgt_InGroup (OpcUa_gid_t gid, UaServer_UserCtx *pUserCtx) |
Checks if the given user is member of the group gid. More... | |
OpcUa_Boolean | UaServer_UserMgt_IsBrowseable (UaServer_iNode *pInode, UaServer_UserCtx *pUserCtx) |
Checks if a node is browseable by the given user. More... | |
OpcUa_Boolean | UaServer_UserMgt_IsExecutable (UaServer_iNode *pInode, UaServer_UserCtx *pUserCtx) |
Checks if a method is executable by the given user. More... | |
OpcUa_Boolean | UaServer_UserMgt_IsReadable (UaServer_iNode *pInode, UaServer_UserCtx *pUserCtx) |
Checks if a variable is readable by the given user. More... | |
OpcUa_Boolean | UaServer_UserMgt_IsWritable (UaServer_iNode *pInode, UaServer_UserCtx *pUserCtx) |
Checks if a variable is writable by the given user. More... | |
OpcUa_Boolean | UaServer_UserMgt_IsHistoryReadable (UaServer_iNode *pInode, UaServer_UserCtx *pUserCtx) |
Checks if the history of a variable is readable by the given user. More... | |
OpcUa_Boolean | UaServer_UserMgt_IsHistoryInsertable (UaServer_iNode *pInode, UaServer_UserCtx *pUserCtx) |
Checks if the given user can insert into the history of a given variable. More... | |
OpcUa_Boolean | UaServer_UserMgt_IsHistoryModifiable (UaServer_iNode *pInode, UaServer_UserCtx *pUserCtx) |
Checks if the given user can modify the history of a given variable. More... | |
OpcUa_Boolean | UaServer_UserMgt_IsHistoryDeletable (UaServer_iNode *pInode, UaServer_UserCtx *pUserCtx) |
Checks if the given user can delete from the history of a given variable. More... | |
OpcUa_Boolean | UaServer_UserMgt_IsAttributeReadable (UaServer_iNode *pInode, UaServer_UserCtx *pUserCtx) |
Checks if node attributes other than value are readable by the user. More... | |
OpcUa_Boolean | UaServer_UserMgt_IsAttributeWritable (UaServer_iNode *pInode, UaServer_UserCtx *pUserCtx) |
Checks if node attributes other than value are writable by the user. More... | |
OpcUa_Boolean | UaServer_UserMgt_IsEventReadable (UaServer_iNode *pInode, UaServer_UserCtx *pUserCtx) |
Checks if the user can receive the event with the given INode. More... | |
OpcUa_Void | UaServer_UserMgt_SetPermissions (OpcUa_BaseNode *pNode, OpcUa_uid_t uid, OpcUa_gid_t gid, OpcUa_UInt16 mode) |
This function changes the permissions of a UaNode. More... | |
OpcUa_Void | UaServer_UserMgt_SetDefaultPermissions (OpcUa_NodeType nodeType, UaServer_iNode defaultPermissions) |
Sets the default permissions for the given nodeType . More... | |
OpcUa_Void | UaServer_UserMgt_SetDefaultPermissionsAllTypes (UaServer_iNode defaultPermissions) |
Sets the default permissions for all node types. More... | |
UaServer_iNode | UaServer_UserMgt_GetDefaultPermissions (OpcUa_NodeType nodeType) |
Returns the default permissions for the given nodeType . More... | |
OpcUa_Void | UaServer_UserMgt_SetAnonymousUserContext (UaServer_UserCtx anonymousUserCtx) |
Sets the user context to be used for anonymous logons. More... | |
OpcUa_Void | UaServer_UserMgt_SetHistoryUserContext (UaServer_UserCtx historyUserCtx) |
Sets the user context to be used for historizing. More... | |
OpcUa_Void | UaServer_UserMgt_SetPubSubUserContext (UaServer_UserCtx pubSubUserCtx) |
Sets the user context to be used for PubSub. More... | |
#define UA_GROUP_ALL (UA_GROUP_OPERATION | UA_GROUP_ATTRWRITABLE | UA_GROUP_HISTORYINSERT | UA_GROUP_HISTORYMODIFY | UA_GROUP_HISTORYDELETE) |
Group: All access rights.
#define UA_GROUP_ATTRREADABLE (UA_OTHER_ATTRREADABLE << UA_NUM_PERM_BITS) |
Group: Read non-value attributes of the node.
#define UA_GROUP_ATTRWRITABLE (UA_OTHER_ATTRWRITABLE << UA_NUM_PERM_BITS) |
Group: Write non-value attributes of the node, depending on WriteMask.
#define UA_GROUP_BROWSEABLE (UA_OTHER_BROWSEABLE << UA_NUM_PERM_BITS) |
Group: Node gets returned in browse results.
#define UA_GROUP_EVENTREADABLE (UA_OTHER_EVENTREADABLE << UA_NUM_PERM_BITS) |
Group: Subscribe to the object to receive events.
#define UA_GROUP_EXECUTABLE (UA_OTHER_EXECUTABLE << UA_NUM_PERM_BITS) |
Group: Execute a method.
#define UA_GROUP_HISTORY_READABLE UA_GROUP_HISTORYREADABLE |
Deprecated!
#define UA_GROUP_HISTORY_WRITABLE (UA_GROUP_HISTORYINSERT | UA_GROUP_HISTORYMODIFY | UA_GROUP_HISTORYDELETE) |
Deprecated!
#define UA_GROUP_HISTORYDELETE (UA_OTHER_HISTORYDELETE << UA_NUM_PERM_BITS) |
Group: Delete data or event history.
#define UA_GROUP_HISTORYINSERT (UA_OTHER_HISTORYINSERT << UA_NUM_PERM_BITS) |
Group: Insert into data or event history.
#define UA_GROUP_HISTORYMODIFY (UA_OTHER_HISTORYMODIFY << UA_NUM_PERM_BITS) |
Group: Modify data or event history.
#define UA_GROUP_HISTORYREADABLE (UA_OTHER_HISTORYREADABLE << UA_NUM_PERM_BITS) |
Group: Read the data or event history of a node.
#define UA_GROUP_OBSERVATION (UA_GROUP_READABLE | UA_GROUP_HISTORYREADABLE | UA_GROUP_BROWSEABLE | UA_GROUP_ATTRREADABLE | UA_GROUP_EVENTREADABLE) |
Group: Reading and subscribing to values, no modification or execution allowed.
#define UA_GROUP_OPERATION (UA_GROUP_OBSERVATION | UA_GROUP_WRITABLE | UA_GROUP_EXECUTABLE) |
Group: Observation rights together with write and execute rights.
#define UA_GROUP_READABLE (UA_OTHER_READABLE << UA_NUM_PERM_BITS) |
Group: Read the value attribute of a variable or variable type.
#define UA_GROUP_WRITABLE (UA_OTHER_WRITABLE << UA_NUM_PERM_BITS) |
Group: Write the value attribute of a variable or variable type.
#define UA_OTHER_ALL (UA_OTHER_OPERATION | UA_OTHER_ATTRWRITABLE | UA_OTHER_HISTORYINSERT | UA_OTHER_HISTORYMODIFY | UA_OTHER_HISTORYDELETE) |
Other: All access rights.
#define UA_OTHER_ATTRREADABLE UA_ATTRREADABLE |
Other: Read non-value attributes of the node.
#define UA_OTHER_ATTRWRITABLE UA_ATTRWRITABLE |
Other: Write non-value attributes of the node, depending on WriteMask.
#define UA_OTHER_BROWSEABLE UA_BROWSEABLE |
Other: Node gets returned in browse results.
#define UA_OTHER_EVENTREADABLE UA_EVENTREADABLE |
Other: Subscribe to the object to receive events.
#define UA_OTHER_EXECUTABLE UA_EXECUTABLE |
Other: Execute a method.
#define UA_OTHER_HISTORY_READABLE UA_OTHER_HISTORYREADABLE |
Deprecated!
#define UA_OTHER_HISTORY_WRITABLE (UA_OTHER_HISTORYINSERT | UA_OTHER_HISTORYMODIFY | UA_OTHER_HISTORYDELETE) |
Deprecated!
#define UA_OTHER_HISTORYDELETE UA_HISTORYDELETE |
Other: Delete data or event history.
#define UA_OTHER_HISTORYINSERT UA_HISTORYINSERT |
Other: Insert into data or event history.
#define UA_OTHER_HISTORYMODIFY UA_HISTORYMODIFY |
Other: Modify data or event history.
#define UA_OTHER_HISTORYREADABLE UA_HISTORYREADABLE |
Other: Read the data or event history of a node.
#define UA_OTHER_OBSERVATION (UA_OTHER_READABLE | UA_OTHER_HISTORYREADABLE | UA_OTHER_BROWSEABLE | UA_OTHER_ATTRREADABLE | UA_OTHER_EVENTREADABLE) |
Other: Reading and subscribing to values, no modification or execution allowed.
#define UA_OTHER_OPERATION (UA_OTHER_OBSERVATION | UA_OTHER_WRITABLE | UA_OTHER_EXECUTABLE) |
Other: Observation rights together with write and execute rights.
#define UA_OTHER_READABLE UA_READABLE |
Other: Read the value attribute of a variable or variable type.
#define UA_OTHER_WRITABLE UA_WRITABLE |
Other: Write the value attribute of a variable or variable type.
#define UA_USER_ALL (UA_USER_OPERATION | UA_USER_ATTRWRITABLE | UA_USER_HISTORYINSERT | UA_USER_HISTORYMODIFY | UA_USER_HISTORYDELETE) |
User: All access rights.
#define UA_USER_ATTRREADABLE (UA_GROUP_ATTRREADABLE << UA_NUM_PERM_BITS) |
User: Read non-value attributes of the node.
#define UA_USER_ATTRWRITABLE (UA_GROUP_ATTRWRITABLE << UA_NUM_PERM_BITS) |
User: Write non-value attributes of the node, depending on WriteMask.
#define UA_USER_BROWSEABLE (UA_GROUP_BROWSEABLE << UA_NUM_PERM_BITS) |
User: Node gets returned in browse results.
#define UA_USER_EVENTREADABLE (UA_GROUP_EVENTREADABLE << UA_NUM_PERM_BITS) |
User: Subscribe to the object to receive events.
#define UA_USER_EXECUTABLE (UA_GROUP_EXECUTABLE << UA_NUM_PERM_BITS) |
User: Execute a method.
#define UA_USER_HISTORY_READABLE UA_USER_HISTORYREADABLE |
Deprecated!
#define UA_USER_HISTORY_WRITABLE (UA_USER_HISTORYINSERT | UA_USER_HISTORYMODIFY | UA_USER_HISTORYDELETE) |
Deprecated!
#define UA_USER_HISTORYDELETE (UA_GROUP_HISTORYDELETE << UA_NUM_PERM_BITS) |
User: Delete data or event history.
#define UA_USER_HISTORYINSERT (UA_GROUP_HISTORYINSERT << UA_NUM_PERM_BITS) |
User: Insert into data or event history.
#define UA_USER_HISTORYMODIFY (UA_GROUP_HISTORYMODIFY << UA_NUM_PERM_BITS) |
User: Modify data or event history.
#define UA_USER_HISTORYREADABLE (UA_GROUP_HISTORYREADABLE << UA_NUM_PERM_BITS) |
User: Read the data or event history of a node.
#define UA_USER_OBSERVATION (UA_USER_READABLE | UA_USER_HISTORYREADABLE | UA_USER_BROWSEABLE | UA_USER_ATTRREADABLE | UA_USER_EVENTREADABLE) |
User: Reading and subscribing to values, no modification or execution allowed.
#define UA_USER_OPERATION (UA_USER_OBSERVATION | UA_USER_WRITABLE | UA_USER_EXECUTABLE) |
User: Observation rights together with write and execute rights.
#define UA_USER_READABLE (UA_GROUP_READABLE << UA_NUM_PERM_BITS) |
User: Read the value attribute of a variable or variable type.
#define UA_USER_WRITABLE (UA_GROUP_WRITABLE << UA_NUM_PERM_BITS) |
User: Write the value attribute of a variable or variable type.
UaServer_iNode UaServer_UserMgt_GetDefaultPermissions | ( | OpcUa_NodeType | nodeType | ) |
Returns the default permissions for the given nodeType
.
[in] | nodeType | The node type to get the permissions for. |
OpcUa_Boolean UaServer_UserMgt_InGroup | ( | OpcUa_gid_t | gid, |
UaServer_UserCtx * | pUserCtx | ||
) |
Checks if the given user is member of the group gid.
[in] | gid | Group id of the group. |
[in] | pUserCtx | User context. |
OpcUa_Boolean UaServer_UserMgt_IsAttributeReadable | ( | UaServer_iNode * | pInode, |
UaServer_UserCtx * | pUserCtx | ||
) |
Checks if node attributes other than value are readable by the user.
[in] | pInode | The The INode information of the UaNode that is going to be accessed |
[in] | pUserCtx | The user context which identifies the user of the current session. |
OpcUa_Boolean UaServer_UserMgt_IsAttributeWritable | ( | UaServer_iNode * | pInode, |
UaServer_UserCtx * | pUserCtx | ||
) |
Checks if node attributes other than value are writable by the user.
If this method returns 1 the UserWriteMask will be the same as the WriteMask, otherwise all attributes except value will be read only for the user.
[in] | pInode | The The INode information of the UaNode that is going to be accessed |
[in] | pUserCtx | The user context which identifies the user of the current session. |
OpcUa_Boolean UaServer_UserMgt_IsBrowseable | ( | UaServer_iNode * | pInode, |
UaServer_UserCtx * | pUserCtx | ||
) |
Checks if a node is browseable by the given user.
[in] | pInode | The The INode information of the UaNode that is going to be accessed |
[in] | pUserCtx | The user context which identifies the user of the current session. |
OpcUa_Boolean UaServer_UserMgt_IsEventReadable | ( | UaServer_iNode * | pInode, |
UaServer_UserCtx * | pUserCtx | ||
) |
Checks if the user can receive the event with the given INode.
[in] | pInode | The The INode information of the event that is going to be accessed |
[in] | pUserCtx | The user context which identifies the user of the current session. |
OpcUa_Boolean UaServer_UserMgt_IsExecutable | ( | UaServer_iNode * | pInode, |
UaServer_UserCtx * | pUserCtx | ||
) |
Checks if a method is executable by the given user.
[in] | pInode | The The INode information of the UaNode that is going to be accessed |
[in] | pUserCtx | The user context which identifies the user of the current session. |
OpcUa_Boolean UaServer_UserMgt_IsHistoryDeletable | ( | UaServer_iNode * | pInode, |
UaServer_UserCtx * | pUserCtx | ||
) |
Checks if the given user can delete from the history of a given variable.
This controls access to the variable's value attribute.
[in] | pInode | The The INode information of the UaNode that is going to be accessed |
[in] | pUserCtx | The user context which identifies the user of the current session. |
OpcUa_Boolean UaServer_UserMgt_IsHistoryInsertable | ( | UaServer_iNode * | pInode, |
UaServer_UserCtx * | pUserCtx | ||
) |
Checks if the given user can insert into the history of a given variable.
This controls access to the variable's value attribute.
[in] | pInode | The The INode information of the UaNode that is going to be accessed |
[in] | pUserCtx | The user context which identifies the user of the current session. |
OpcUa_Boolean UaServer_UserMgt_IsHistoryModifiable | ( | UaServer_iNode * | pInode, |
UaServer_UserCtx * | pUserCtx | ||
) |
Checks if the given user can modify the history of a given variable.
This controls access to the variable's value attribute.
[in] | pInode | The The INode information of the UaNode that is going to be accessed |
[in] | pUserCtx | The user context which identifies the user of the current session. |
OpcUa_Boolean UaServer_UserMgt_IsHistoryReadable | ( | UaServer_iNode * | pInode, |
UaServer_UserCtx * | pUserCtx | ||
) |
Checks if the history of a variable is readable by the given user.
This controls access to the variable's value attribute.
[in] | pInode | The The INode information of the UaNode that is going to be accessed |
[in] | pUserCtx | The user context which identifies the user of the current session. |
OpcUa_Boolean UaServer_UserMgt_IsReadable | ( | UaServer_iNode * | pInode, |
UaServer_UserCtx * | pUserCtx | ||
) |
Checks if a variable is readable by the given user.
This controls access to the variable's value attribute.
[in] | pInode | The The INode information of the UaNode that is going to be accessed |
[in] | pUserCtx | The user context which identifies the user of the current session. |
OpcUa_Boolean UaServer_UserMgt_IsWritable | ( | UaServer_iNode * | pInode, |
UaServer_UserCtx * | pUserCtx | ||
) |
Checks if a variable is writable by the given user.
This controls access to the variable's value attribute.
[in] | pInode | The The INode information of the UaNode that is going to be accessed |
[in] | pUserCtx | The user context which identifies the user of the current session. |
OpcUa_Void UaServer_UserMgt_SetAnonymousUserContext | ( | UaServer_UserCtx | anonymousUserCtx | ) |
Sets the user context to be used for anonymous logons.
[in] | anonymousUserCtx | The user context to be used. |
OpcUa_Void UaServer_UserMgt_SetDefaultPermissions | ( | OpcUa_NodeType | nodeType, |
UaServer_iNode | defaultPermissions | ||
) |
Sets the default permissions for the given nodeType
.
These default permissions are set when a new node of the given nodeType
is created. This avoids setting the individual permissions for each node that is created.
[in] | nodeType | The node type to set the permissions as default. |
[in] | defaultPermissions | The default permissions to set for the specified nodeType . |
OpcUa_Void UaServer_UserMgt_SetDefaultPermissionsAllTypes | ( | UaServer_iNode | defaultPermissions | ) |
Sets the default permissions for all node types.
These function is a convenience function and behaves like UaServer_UserMgt_SetDefaultPermissions.
[in] | defaultPermissions | The default permissions to set for all node types. |
OpcUa_Void UaServer_UserMgt_SetHistoryUserContext | ( | UaServer_UserCtx | historyUserCtx | ) |
Sets the user context to be used for historizing.
[in] | historyUserCtx | The user context to be used. |
OpcUa_Void UaServer_UserMgt_SetPermissions | ( | OpcUa_BaseNode * | pNode, |
OpcUa_uid_t | uid, | ||
OpcUa_gid_t | gid, | ||
OpcUa_UInt16 | mode | ||
) |
This function changes the permissions of a UaNode.
[in] | pNode | Pointer to node which should be changed. |
[in] | uid | The userid of the owner. |
[in] | gid | The groupid of the owning group. |
[in] | mode | The new node permissions are specified in mode , which is a bit mask created by ORing together zero or more of the following:
|
OpcUa_Void UaServer_UserMgt_SetPubSubUserContext | ( | UaServer_UserCtx | pubSubUserCtx | ) |
Sets the user context to be used for PubSub.
[in] | pubSubUserCtx | The user context to be used. |