NavigationAccessHelper class

From Catglobe Wiki
Revision as of 05:14, 13 January 2017 by Nguyenduyan (talk | contribs)
Jump to: navigation, search

NavigationAccessHelper



Class to manipulate navigation access

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
  • string ToString() - The string representation of the object.

Properties

  • string ObjectTypeName { get; } - The name of the type of 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"));