UA ANSI C Server Professional
1.4.0.285
|
Data Structures | |
struct | _UaServer_UserCtx |
Stores all user information. More... | |
struct | _UaServer_iNode |
Stores access information for UaNodes similar Unix inodes. More... | |
Functions | |
OpcUa_Boolean | UaServer_UserMgt_InGroup (OpcUa_UInt16 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_IsHistoryWritable (UaServer_iNode *pInode, UaServer_UserCtx *pUserCtx) |
Checks if the history of a variable is writable by the given user. 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_IsSubscribable (UaServer_iNode *pInode, UaServer_UserCtx *pUserCtx) |
Checks if the user can subcribe for events on this object. More... | |
OpcUa_Void | UaServer_UserMgt_SetPermissions (OpcUa_BaseNode *pNode, OpcUa_UInt16 uid, OpcUa_UInt16 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... | |
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_Boolean UaServer_UserMgt_InGroup | ( | OpcUa_UInt16 | 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_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_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_IsHistoryWritable | ( | UaServer_iNode * | pInode, |
UaServer_UserCtx * | pUserCtx | ||
) |
Checks if the history of 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_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_IsSubscribable | ( | UaServer_iNode * | pInode, |
UaServer_UserCtx * | pUserCtx | ||
) |
Checks if the user can subcribe for events on this object.
[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_UInt16 | uid, | ||
OpcUa_UInt16 | 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:
|