Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

NavigationAccessHelper class

From Catglobe Wiki
Revision as of 05:03, 2 July 2020 by Administrator (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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"));