Gjsify LogoGjsify Logo

The opaque permissions structure. It is used to define the permissions of objects in different roles.

record

Hierarchy

  • RTSPPermissions

Index

Constructors

Properties

miniObject: Gst.MiniObject
name: string

Methods

  • addPermissionForRole(role: string, permission: string, allowed: boolean): void
  • Add a new permission for role to permissions with the access in allowed.

    Parameters

    • role: string

      a role

    • permission: string

      the permission

    • allowed: boolean

      whether the role has this permission or not

    Returns void

  • addRole(role: string): void
  • Add a new role to permissions without any permissions. You can add permissions for the role with gst_rtsp_permissions_add_permission_for_role().

    Parameters

    • role: string

      a role

    Returns void

  • Add a new role to permissions based on structure, for example given a role named tester, which should be granted a permission named permission1, the structure could be created with:

    gst_structure_new ("tester", "permission1", G_TYPE_BOOLEAN, TRUE, NULL);
    

    Parameters

    Returns void

  • isAllowed(role: string, permission: string): boolean
  • Check if role in permissions is given permission for permission.

    Parameters

    • role: string

      a role

    • permission: string

      a permission

    Returns boolean

  • removeRole(role: string): void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method