Skip to main content

Permission

The Permission class represents an access permission with associated metadata and hierarchical relationships.

Properties

NameDescription
IdThe unique identifier of the permission.
ChildrenThe list of child permissions.
TypeThere are default authorization codes defined in the system, as well as authorization codes added later by users. Type information determines this. 0 is the default authorization codes. 1 is the authorization codes added later.
SecretKeyThe encrypted secret key associated with the permission.
CodeThe unique code representing the permission.
NameThe multilingual name of the permission.
ValueThe access value assigned to the permission.
WhyIf the authority value inherited from another authority groups, this property holds the unique identifier of the inherited authority.
DescriptionThe multilingual description of the permission.

Constructors

NameDescription
Permission()Initializes a new instance of the Permission class with default values.
  • Value is initialized to AccessValue.NotSet.
  • Name, Description, and Children are initialized as empty collections. |