discontinuedPackage thingsboard_pe_client has been discontinued and replaced by thingsboard_client.

CustomMenuControllerApi class

Constructors

CustomMenuControllerApi(Dio _dio, [Serializers? _serializers])
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

createCustomMenu({required CustomMenuInfo customMenuInfo, BuiltList<String>? assignToList, bool? force, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) → Future<Response<CustomMenu>>
Create Custom Menu (createCustomMenu) The api is designed to create Custom Menu without configuration. Is not applicable for update. Security check is performed to verify that the user has 'WRITE' permission for the custom menu with specified id.
deleteCustomMenu({required String customMenuId, bool? force, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) → Future<Response<CustomMenuDeleteResult>>
Delete custom menu (deleteCustomMenu) Deletes the custom menu based on the provided Custom Menu Id. Referencing non-existing custom menu Id will cause an error. If the custom menu is assigned to the list of users or customers bad request is returned.To delete a custom menu that has assignee list set 'force' request param to true
getCustomMenu({String? ifNoneMatch, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) → Future<Response<CustomMenuConfig>>
Get end-user Custom Menu configuration (getCustomMenu) Fetch the Custom Menu configuration object for the authorized user. The custom menu is configured in the white labeling parameters and has one of three user scopes:SYSTEM, TENANT, CUSTOMER and four assignee type: NO_ASSIGN, ALL, CUSTOMERS, USERS.There are three default (assignee type: ALL) menus configured on the system level for each scope and if no other menu is configured for user, system configuration of the corresponding scope will be applied.If a custom menu with assignee type ALL is configured on the tenant level, it overrides the menu configuration of the corresponding scope on the system level. If a custom menu with assignee type USER_GROUPS is configured on the tenant level, it overrides default tenant menu.If a custom menu with assignee type CUSTOMERS is configured on tenant level for specific customer, it will be applied to all customer users.If a custom menu with assignee type ALL is configured on the customer level, it overrides the menu assigned on tenant level.If a custom menu with assignee type USER_GROUPS is configured on the customer level, it overrides default customer menu.If a custom menu is assigned to specific user, it overrides all other configuration.
getCustomMenuAssigneeList({required String customMenuId, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) → Future<Response<BuiltList<EntityInfo>>>
Get Custom Menu assignee list (getCustomMenuAssigneeList) Fetch the list of Entity Info objects that represents users or customers, or empty list if custom menu is not assigned or has NO_ASSIGN/ALL assignee type. Security check is performed to verify that the user has 'READ' permission for the custom menu with specified id.
getCustomMenuConfig({required String customMenuId, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) → Future<Response<CustomMenuConfig>>
Get Custom Menu configuration by id (getCustomMenuConfig) Fetch the Custom Menu configuration based on the provided Custom Menu Id. Security check is performed to verify that the user has 'READ' permission for the custom menu with specified id.
getCustomMenuInfoById({required String customMenuId, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) → Future<Response<CustomMenuInfo>>
Get Custom Menu Info (getCustomMenuInfoById) Fetch the Custom Menu Info object based on the provided Custom Menu Id. Security check is performed to verify that the user has 'READ' permission for the custom menu with specified id.
getCustomMenuInfos({required int pageSize, required int page, CMScope? scope, CMAssigneeType? assigneeType, String? textSearch, String? sortProperty, String? sortOrder, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) → Future<Response<PageDataCustomMenuInfo>>
Get all custom menus configured at user level (getCustomMenuInfos) Returns a page of custom menu info objects owned by the tenant or the customer of a current user, scope and assigneeType request parameters can be used to filter the result. Security check is performed to verify that the user has 'READ' permission for the white labeling resource.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
updateCustomMenuAssigneeList({required String id, required CMAssigneeType assigneeType, bool? force, BuiltList<String>? requestBody, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) → Future<Response<void>>
Update custom menu assignee list (updateCustomMenuAssigneeList) The api designed to update the list of assignees or assignee type based on the provided Custom Menu Id. To change assignee type, put new assignee type in path parameter. Security check is performed to verify that the user has 'WRITE' permission for the custom menu with specified id.
updateCustomMenuConfig({required String customMenuId, required CustomMenuConfig customMenuConfig, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) → Future<Response<CustomMenu>>
Update Custom Menu configuration based on the provided Custom Menu Id (updateCustomMenuConfig) Security check is performed to verify that the user has 'WRITE' permission for the custom menu with specified id.
updateCustomMenuName({required String customMenuId, required String body, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) → Future<Response<void>>
Update Custom Menu name based on the provided Custom Menu Id (updateCustomMenuName) Security check is performed to verify that the user has 'WRITE' permission for the custom menu with specified id.

Operators

operator ==(Object other) → bool
The equality operator.
inherited