Role class

From Catglobe Wiki
Jump to: navigation, search

Role



Manage and Execute role extensions

Parent class

Inherits from object

Methods

  • (From object) string ToString() - The string representation of the object.

Properties

  • Array of RoleExtension GetExtensions { get; } - Get the extension scripts
  • string Name { get; } - Get the name of the role
  • string ObjectTypeName { get; } - The name of the type of object.
  • int ParentResourceId { get; } - Get the parent resource id of the role
  • string RoleGuid { get; } - Get the GUID of the role
  • (From object) TypeInformation TypeInformation { get; } - Get information about this class.

Static Methods

  • string Role_convertGroupToRole(int groupResourceId "Resource id of the group mark as role") - Mark the given group as a role. Returns the GUID of the group
  • Array of Role Role_findAllRoles(int folderResourceId "Folder to look for role in. Can be 0 for system wide", bool canAdministrate "Only return roles that the current user has access to administrate") - Detect roles available
  • Dictionary Role_findAllRolesByUserResourceIds(Array of int userResourceIds "Resource ids of users to lookup") - Detect roles of users