<a id=“SuperOffice_WebApi_Agents_ISentryAgent”></a> Interface ISentryAgent
Namespace: SuperOffice.WebApi.AgentsAssembly: SuperOffice.WebApi.dll Data and function right queries
Implements
IAgentBase, IDisposableMethods
<a id=“SuperOffice_WebApi_Agents_ISentryAgent_CanCreateAppointmentInAllDiariesAsync_SuperOffice_WebApi_RequestOptions_”></a> CanCreateAppointmentInAllDiariesAsync(RequestOptions)
CanCreateAppointmentInAllDiaries will check if the current associate can create appointments in diaries belonging all other associates. CanCreateAppointmentInAssociateDiaries will only check against associates that are diary owners.Parameters
requestOptions RequestOptions
Override language/culture codes on this request.
Returns
Task<bool> Returns true if the current associate can create appointments in the diary of all the other associates, otherwise false.<a id=“SuperOffice_WebApi_Agents_ISentryAgent_CanCreateAppointmentInAssociateDiariesAsync_System_Int32___SuperOffice_WebApi_RequestOptions_”></a> CanCreateAppointmentInAssociateDiariesAsync(int[], RequestOptions)
CanCreateAppointmentInAssociateDiaries will check if the current associate can create appointments in diaries belonging to the associates listed in associateIds. CanCreateAppointmentInAssociateDiaries will only check against associates that are diary owners. If none of the associates listed in the associateIds parameter is a diary owner, the method will return true.Parameters
associateIds int[]
Array of associate ids to check.
requestOptions RequestOptions
Override language/culture codes on this request.
Returns
Task<bool> Returns true if the current associate can create appointments in the diary of all the other associates, otherwise false.<a id=“SuperOffice_WebApi_Agents_ISentryAgent_CanCreateAppointmentInEachAssociatesDiaryAsync_System_Int32___SuperOffice_WebApi_RequestOptions_”></a> CanCreateAppointmentInEachAssociatesDiaryAsync(int[], RequestOptions)
CanCreateAppointmentInEachAssociateDiary will check if the current associate can create appointments in diaries belonging to the associates listed in associateIds. CanCreateAppointmentInEachAssociateDiary will only check against associates that are diary owners. If none of the associates listed in the associateIds parameter is a diary owner, the method will return true.Parameters
associateIds int[]
Array of associate ids to check.
requestOptions RequestOptions
Override language/culture codes on this request.
Returns
Task<bool[]> Returns true if for each given associate if the current associate can create appointments in that diary, otherwise false.<a id=“SuperOffice_WebApi_Agents_ISentryAgent_GetFunctionRightsAsync_SuperOffice_WebApi_RequestOptions_”></a> GetFunctionRightsAsync(RequestOptions)
Get a string array of all functions rights for the role of the current associate.Parameters
requestOptions RequestOptions
Override language/culture codes on this request.
Returns
Task<string[]> String array with the technical names of assigned function rights<a id=“SuperOffice_WebApi_Agents_ISentryAgent_GetNewTableRightAsync_System_String_SuperOffice_WebApi_RequestOptions_”></a> GetNewTableRightAsync(string, RequestOptions)
Returns a TableRight for a new row based on tableName parameter.Parameters
tableName string
Name of the table to get the TableRights from
requestOptions RequestOptions
Override language/culture codes on this request.
Returns
Task<TableRight> The TableRight<a id=“SuperOffice_WebApi_Agents_ISentryAgent_GetTableRightByContactOwnershipAsync_System_String_System_Int32_SuperOffice_WebApi_RequestOptions_”></a> GetTableRightByContactOwnershipAsync(string, int, RequestOptions)
Return the TableRight from the relationship between the current user and the given user and group.Parameters
tableName string
Name of the table to get the TableRights from.
contactId int
The owner contact.
requestOptions RequestOptions
Override language/culture codes on this request.
Returns
Task<TableRight> The TableRight<a id=“SuperOffice_WebApi_Agents_ISentryAgent_GetTableRightByOwnershipAsync_System_String_System_Int32_System_Int32_SuperOffice_WebApi_RequestOptions_”></a> GetTableRightByOwnershipAsync(string, int, int, RequestOptions)
Return the TableRight from the relationship between the current user and the given user and group.Parameters
tableName string
Name of the table to get the TableRights from.
contactGroupId int
The user-group that the associate id is part of.
contactAssociateId int
The associate id of the owner of the record
requestOptions RequestOptions
Override language/culture codes on this request.
Returns
Task<TableRight> The TableRight<a id=“SuperOffice_WebApi_Agents_ISentryAgent_HasFunctionRightAsync_System_String_SuperOffice_WebApi_RequestOptions_”></a> HasFunctionRightAsync(string, RequestOptions)
Get a boolean value indicating if the current user has the functional right.Parameters
functionRight string
Function right to check.
requestOptions RequestOptions
Override language/culture codes on this request.