tridion-sites-extensions-api-docs

Home > @tridion-sites/models > SecurityDescriptor

SecurityDescriptor class

SecurityDescriptor is a grouping of all the Rights and Permissions (allow and denies) for the trustees. Specific to a user and a context (IdentifiableObject).

Signature:

export declare class SecurityDescriptor

Constructors

Constructor Modifiers Description
(constructor)({ backendModel, permissions, rights })   Constructs a new instance of the SecurityDescriptor class

Properties

Property Modifiers Type Description
_backendModel   BackendSecurityDescriptor  
getInternalModel   () => BackendSecurityDescriptor  
hasPermission   (permission: Permission) => boolean Allows to check whether security descriptor includes provided permission.
hasRight   (right: Right) => boolean Allows to check whether security descriptor includes provided right.
permissions   ReadonlyArray<Permission> | undefined Permissions of an Identifiable object for a trustee.
rights   ReadonlyArray<Right> | undefined Permissions of an Identifiable object for a trustee.