Class NSSentryAgent
Data and function right queries.
Examples
NSSentryAgent agent;
agent.callMethod(arg1, arg2);
Constructors
NSSentryAgent()
Data and function right queries.
Declaration
NSSentryAgent Examples
NSSentryAgent agent;
agent.callMethod(arg1, arg2);
Methods
CanCreateAppointmentInAllDiaries()
Checks if the current associate can create appointments in diaries belonging all other associates. It checks only against associates that are diary owners.
Declaration
Bool CanCreateAppointmentInAllDiaries() Examples
NSSentryAgent agent;
Bool res = agent.CanCreateAppointmentInAllDiaries();
Returns
| Type | Description |
| Bool |
CanCreateAppointmentInAssociateDiaries(Integer[])
Checks if the current associate can create appointments in diaries belonging to the associates listed in associateIds. Checks only against associates that are diary owners.
Declaration
Bool CanCreateAppointmentInAssociateDiaries(Integer[] associateIds) Examples
NSSentryAgent agent;
Integer[] associateIds;
Bool res = agent.CanCreateAppointmentInAssociateDiaries(associateIds);
Parameters
| Type | Name | Description |
| Integer[] | associateIds |
Returns
| Type | Description |
| Bool | If none of the associates listed in the associateIds parameter is a diary owner, the method will return true. |
CanCreateAppointmentInEachAssociatesDiary(Integer[])
Checks if the current associate can create appointments in diaries belonging to the associates listed in associateIds. Checks only against associates who are diary owners.
Declaration
Bool[] CanCreateAppointmentInEachAssociatesDiary(Integer[] associateIds) Parameters
| Type | Name | Description |
| Integer[] | associateIds |
Returns
| Type | Description |
| Bool[] |
GetFunctionRights()
Gets a string array of all functions rights for the role of the current associate.
Declaration
String[] GetFunctionRights() Examples
NSSentryAgent agent;
String[] res = agent.GetFunctionRights();
Returns
| Type | Description |
| String[] |
GetNewTableRight(String)
Returns an NSTableRight for a new row based on tableName parameter.
Declaration
NSTableRight GetNewTableRight(String tableName) Examples
NSSentryAgent agent;
String tableName;
NSTableRight res = agent.GetNewTableRight(tableName);
Parameters
| Type | Name | Description |
| String | tableName |
Returns
| Type | Description |
| NSTableRight |
GetTableRightByContactOwnership(String,Integer)
Return the NSTableRight from the relationship between the current user and the given user and group.
Declaration
NSTableRight GetTableRightByContactOwnership(String tableName, Integer contactId) Examples
NSSentryAgent agent;
String tableName;
Integer contactId;
NSTableRight res = agent.GetTableRightByContactOwnership(tableName, contactId);
Parameters
| Type | Name | Description |
| String | tableName | |
| Integer | contactId |
Returns
| Type | Description |
| NSTableRight |
GetTableRightByOwnership(String,Integer,Integer)
Return the NSTableRight from the relationship between the current user and the given user and group.
Declaration
NSTableRight GetTableRightByOwnership(String tableName, Integer contactGroupId, Integer contactAssociateId) Examples
NSSentryAgent agent;
String tableName;
Integer contactGroupId;
Integer contactAssociateId;
NSTableRight res = agent.GetTableRightByOwnership(tableName, contactGroupId, contactAssociateId);
Parameters
| Type | Name | Description |
| String | tableName | |
| Integer | contactGroupId | |
| Integer | contactAssociateId |
Returns
| Type | Description |
| NSTableRight |