NavigationAccessHelper class

From Catglobe Wiki
Jump to: navigation, search

NavigationAccessHelper



Helper class to fetch navigation access

Parent class

Inherits from object

Constructors

  • () - Instanciate new helper

Methods

  • Array of string AllAvailableNavigationAccess() - Get names of all navigation access in the system
  • Array of string AllNavigationAccessWithAccess() - Get names of all navigation access the current user has access to in the system
  • bool HasNavigationAccess(string navigationAccessName "Name of the nav access to check") - Check if the current user has access to a specific navigation access
  • (From object) string ToString() - The string representation of the object.

Properties

  • string ObjectTypeName { get; } - The name of the type of object.
  • (From object) TypeInformation TypeInformation { get; } - Get information about this class.


Examples

NavigationAccessHelper nav = new NavigationAccessHelper();
print(nav.AllAvailableNavigationAccess());
print(nav.AllNavigationAccessWithAccess());
print(nav.HasNavigationAccess("Questionnaire_Search"));