Class UserAuthorizationSystem
This class abstracts the UAS system of the controller into the CAPI programming model.
Inherited Members
Namespace: ABB.Robotics.Controllers
Assembly: ABB.Robotics.Controllers.PC.dll
Syntax
public sealed class UserAuthorizationSystem : SDKControllerBoundBase, IComparable, INamedObject, IDisposable
Methods
CheckDemandGrant(Grant)
Checks if the current user has the supplied grant.
Declaration
public bool CheckDemandGrant(Grant grant)
Parameters
Type | Name | Description |
---|---|---|
Grant | grant | Grant to check for. |
Returns
Type | Description |
---|---|
System.Boolean | True if grant is held by the user. |
CheckDemandGrant(Grant, out String)
Checks if the current user has the required grant.
Declaration
public bool CheckDemandGrant(Grant grant, out string value)
Parameters
Type | Name | Description |
---|---|---|
Grant | grant | grant to check for. |
System.String | value | Value of grant. |
Returns
Type | Description |
---|---|
System.Boolean | true if the user has the grant. |
CheckDemandGrant(String)
Checks if the current user has the required grant.
Declaration
public bool CheckDemandGrant(string grant)
Parameters
Type | Name | Description |
---|---|---|
System.String | grant | grant to check for. |
Returns
Type | Description |
---|---|
System.Boolean | true if the user has the grant. |
CheckDemandGrant(String, out String)
Checks if the current user has the required grant.
Declaration
public bool CheckDemandGrant(string grant, out string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | grant | grant to check for. |
System.String | value | The value of the grant. |
Returns
Type | Description |
---|---|
System.Boolean | true if the user has the grant. |
DemandGrant(Grant)
Demands the Grant. Throws a GrantDemandRejectedException on rejections.
Declaration
public void DemandGrant(Grant grant)
Parameters
Type | Name | Description |
---|---|---|
Grant | grant | Grant to demand. |
DemandGrant(Grant, out String)
Checks if the current user has the required grant.
Declaration
public void DemandGrant(Grant grant, out string value)
Parameters
Type | Name | Description |
---|---|---|
Grant | grant | grant to check for. |
System.String | value | The value of the grant. |
DemandGrant(String)
Checks if the current user has the required grant.
Declaration
public void DemandGrant(string grant)
Parameters
Type | Name | Description |
---|---|---|
System.String | grant | grant to check for. |
DemandGrant(String, out String)
Checks if the current user has the required grant.
Declaration
public void DemandGrant(string grant, out string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | grant | grant to check for. |
System.String | value | Value of the grant. |
GetCurrentGrants()
Get the grants of the current user.
Declaration
public Grant[] GetCurrentGrants()
Returns
Type | Description |
---|---|
Grant[] |
GetGrantDefinitions()
Get resource definitions for all available grants.
Declaration
public GrantConfiguration GetGrantDefinitions()
Returns
Type | Description |
---|---|
GrantConfiguration |