.NET Based OPC UA Client/Server SDK  3.2.2.525
UnifiedAutomation.UaServer.RoleModel Class Reference

https://reference.opcfoundation.org/v105/Core/docs/Part18/4.4.1 More...

Inherits UnifiedAutomation.UaServer.BaseObjectModel, UnifiedAutomation.UaServer.IMethodDispatcher, and UnifiedAutomation.UaServer.IRoleMethods.

Public Member Functions

StatusCode AddApplication (RequestContext context, RoleModel model, string ApplicationUri)
 This Method is used to add an application mapping rule to a Role. More...
 
StatusCode AddEndpoint (RequestContext context, RoleModel model, EndpointType Endpoint)
 This Method is used to add an endpoint mapping rule to a Role. More...
 
StatusCode AddIdentity (RequestContext context, RoleModel model, IdentityMappingRuleType Rule)
 This Method is used to add an identity mapping rule to a Role. More...
 
StatusCode RemoveApplication (RequestContext context, RoleModel model, string ApplicationUri)
 This Method is used to remove an application mapping rule from a Role. More...
 
StatusCode RemoveEndpoint (RequestContext context, RoleModel model, EndpointType Endpoint)
 This Method is used to remove an endpoint mapping rule from a Role. More...
 
StatusCode RemoveIdentity (RequestContext context, RoleModel model, IdentityMappingRuleType Rule)
 This Method is used to remove an identity mapping rule from a Role. More...
 
 RoleModel ()
 Initializes a new instance of the RoleModel class. More...
 
 RoleModel (RoleModel template)
 Initializes a new instance of the RoleModel class. More...
 
virtual CallMethodEventHandler GetMethodDispatcher (RequestContext context, NodeId objectId, NodeId methodId)
 Gets the method dispatcher. More...
 
virtual StatusCode DispatchMethod (RequestContext context, MethodHandle methodHandle, IList< Variant > inputArguments, List< StatusCode > inputArgumentResults, List< Variant > outputArguments)
 Dispatches the method. More...
 
- Public Member Functions inherited from UnifiedAutomation.UaServer.BaseObjectModel
 BaseObjectModel ()
 Initializes a new instance of the BaseObjectModel class. More...
 
 BaseObjectModel (BaseObjectModel template)
 Initializes a new instance of the BaseObjectModel class. More...
 
- Public Member Functions inherited from UnifiedAutomation.UaServer.ModelControllerBase
virtual ModelHandle GetModelHandle (StringTable namespaceUris, object instance)
 Gets the metadata handle. More...
 
virtual DataValue GetValue (IMapperContext context, ModelMapping mapping)
 Gets the value associated with the mapping. More...
 
virtual bool SetValue (IMapperContext context, ModelMapping mapping, DataValue value)
 Sets the value associated with the mapping. More...
 

Protected Member Functions

virtual bool IsAdminRole ()
 Return whether role is an admin role. More...
 

Properties

UaSchema.RoleType RoleType [get, set]
 The RoleType from the configuration. More...
 
ServerManager ServerManager [get, set]
 The ServerManager is used to persist the configuration. More...
 
uint Id [get, set]
 The internal optimized handle for the Role. More...
 
string[] Applications [get, set]
 Gets or sets the Applications More...
 
bool ApplicationsExclude [get, set]
 Gets or sets the ApplicationsExclude More...
 
bool CustomConfiguration [get, set]
 Gets or sets the CustomConfiguration More...
 
EndpointType[] Endpoints [get, set]
 Gets or sets the Endpoints More...
 
bool EndpointsExclude [get, set]
 Gets or sets the EndpointsExclude More...
 
IdentityMappingRuleType[] Identities [get, set]
 Gets or sets the Identities More...
 
IRoleMethods RoleMethods [get, set]
 Gets or sets the Role methods. More...
 
- Properties inherited from UnifiedAutomation.UaServer.ModelControllerBase
ModelHandle ModelHandle [get, set]
 Gets or sets the metadata handle. More...
 
object UserData [get, set]
 Gets or sets the user data. More...
 

Detailed Description

Constructor & Destructor Documentation

UnifiedAutomation.UaServer.RoleModel.RoleModel ( )

Initializes a new instance of the RoleModel class.

UnifiedAutomation.UaServer.RoleModel.RoleModel ( RoleModel  template)

Initializes a new instance of the RoleModel class.

Parameters
templateThe template.

Member Function Documentation

StatusCode UnifiedAutomation.UaServer.RoleModel.AddApplication ( RequestContext  context,
RoleModel  model,
string  ApplicationUri 
)

This Method is used to add an application mapping rule to a Role.

Implements UnifiedAutomation.UaServer.IRoleMethods.

StatusCode UnifiedAutomation.UaServer.RoleModel.AddEndpoint ( RequestContext  context,
RoleModel  model,
EndpointType  Endpoint 
)

This Method is used to add an endpoint mapping rule to a Role.

Implements UnifiedAutomation.UaServer.IRoleMethods.

StatusCode UnifiedAutomation.UaServer.RoleModel.AddIdentity ( RequestContext  context,
RoleModel  model,
IdentityMappingRuleType  Rule 
)

This Method is used to add an identity mapping rule to a Role.

Implements UnifiedAutomation.UaServer.IRoleMethods.

virtual StatusCode UnifiedAutomation.UaServer.RoleModel.DispatchMethod ( RequestContext  context,
MethodHandle  methodHandle,
IList< Variant inputArguments,
List< StatusCode inputArgumentResults,
List< Variant outputArguments 
)
virtual

Dispatches the method.

Parameters
contextThe context.
methodHandleThe method handle.
inputArgumentsThe input arguments.
inputArgumentResultsThe input argument results.
outputArgumentsThe output arguments.
Returns
virtual CallMethodEventHandler UnifiedAutomation.UaServer.RoleModel.GetMethodDispatcher ( RequestContext  context,
NodeId  objectId,
NodeId  methodId 
)
virtual

Gets the method dispatcher.

Parameters
contextThe context.
objectIdThe object id.
methodIdThe method id.
Returns

Implements UnifiedAutomation.UaServer.IMethodDispatcher.

virtual bool UnifiedAutomation.UaServer.RoleModel.IsAdminRole ( )
protectedvirtual

Return whether role is an admin role.

The default implementation returns 'true' for the WellKnownRoles ConfigureAdmin and SecurityAdmin.

This method is called in AddIdentity.

Returns
StatusCode UnifiedAutomation.UaServer.RoleModel.RemoveApplication ( RequestContext  context,
RoleModel  model,
string  ApplicationUri 
)

This Method is used to remove an application mapping rule from a Role.

Implements UnifiedAutomation.UaServer.IRoleMethods.

StatusCode UnifiedAutomation.UaServer.RoleModel.RemoveEndpoint ( RequestContext  context,
RoleModel  model,
EndpointType  Endpoint 
)

This Method is used to remove an endpoint mapping rule from a Role.

Implements UnifiedAutomation.UaServer.IRoleMethods.

StatusCode UnifiedAutomation.UaServer.RoleModel.RemoveIdentity ( RequestContext  context,
RoleModel  model,
IdentityMappingRuleType  Rule 
)

This Method is used to remove an identity mapping rule from a Role.

Returns

Implements UnifiedAutomation.UaServer.IRoleMethods.

Property Documentation

string [] UnifiedAutomation.UaServer.RoleModel.Applications
getset

Gets or sets the Applications

bool UnifiedAutomation.UaServer.RoleModel.ApplicationsExclude
getset

Gets or sets the ApplicationsExclude

bool UnifiedAutomation.UaServer.RoleModel.CustomConfiguration
getset

Gets or sets the CustomConfiguration

EndpointType [] UnifiedAutomation.UaServer.RoleModel.Endpoints
getset

Gets or sets the Endpoints

bool UnifiedAutomation.UaServer.RoleModel.EndpointsExclude
getset

Gets or sets the EndpointsExclude

uint UnifiedAutomation.UaServer.RoleModel.Id
getset

The internal optimized handle for the Role.

IdentityMappingRuleType [] UnifiedAutomation.UaServer.RoleModel.Identities
getset

Gets or sets the Identities

IRoleMethods UnifiedAutomation.UaServer.RoleModel.RoleMethods
getset

Gets or sets the Role methods.

The Role methods.

UaSchema.RoleType UnifiedAutomation.UaServer.RoleModel.RoleType
getset

The RoleType from the configuration.

ServerManager UnifiedAutomation.UaServer.RoleModel.ServerManager
getset

The ServerManager is used to persist the configuration.


The documentation for this class was generated from the following files: