Class NSSentryAgent
Data and function right queries.
Syntax
Examples
NSSentryAgent agent;
agent.callMethod(arg1, arg2);
Constructors
NSSentryAgent()
Data and function right queries.
Declaration
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()
Returns
Examples
NSSentryAgent agent;
Bool res = agent.CanCreateAppointmentInAllDiaries();
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)
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.
|
Examples
NSSentryAgent agent;
Integer[] associateIds;
Bool res = agent.CanCreateAppointmentInAssociateDiaries(associateIds);
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
Examples
NSSentryAgent agent;
agent.callMethod(arg1, arg2);
GetFunctionRights()
Gets a string array of all functions rights for the role of the current associate.
Declaration
String[] GetFunctionRights()
Returns
Examples
NSSentryAgent agent;
String[] res = agent.GetFunctionRights();
GetNewTableRight(String)
Returns an NSTableRight for a new row based on tableName parameter.
Declaration
NSTableRight GetNewTableRight(String tableName)
Parameters
Type |
Name |
Description |
String |
tableName |
|
Returns
Examples
NSSentryAgent agent;
String tableName;
NSTableRight res = agent.GetNewTableRight(tableName);
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)
Parameters
Returns
Examples
NSSentryAgent agent;
String tableName;
Integer contactId;
NSTableRight res = agent.GetTableRightByContactOwnership(tableName, contactId);
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)
Parameters
Returns
Examples
NSSentryAgent agent;
String tableName;
Integer contactGroupId;
Integer contactAssociateId;
NSTableRight res = agent.GetTableRightByOwnership(tableName, contactGroupId, contactAssociateId);
HasFunctionRight(String)
Gets a boolean value indicating if the current user has the functional right.
Declaration
Bool HasFunctionRight(String functionRight)
Parameters
Type |
Name |
Description |
String |
functionRight |
|
Returns
Examples
NSSentryAgent agent;
agent.callMethod(arg1, arg2);