Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AccessControlList

Hierarchy

  • AccessControlList

Index

Constructors

constructor

Properties

acl

acl: any

aclUri

aclUri: any

documentUri

documentUri: any

owner

owner: any

Accessors

setAcl

  • set setAcl(acl: any): void

Static MODES

  • get MODES(): any

Methods

addPermissionsToMode

  • addPermissionsToMode(mode: any, agent: any): Promise<void>
  • Parameters

    • mode: any

      An existing mode (subject) in the acl file

    • agent: any

      WebId of the user the mode will be assigned to

    Returns Promise<void>

assignPermissions

  • assignPermissions(permissions: any): Promise<object>

createACL

  • createACL(permissions?: any): Promise<Response>

createMode

  • createMode(__namedParameters: object): Promise<object>

createPermissionsTurtle

  • createPermissionsTurtle(permissions: Permissions[]): any

createQuad

  • createQuad(subject: any, predicate: any, object: any): object
  • Parameters

    • subject: any

      Subject of the quad

    • predicate: any

      Predicate of the quad

    • object: any

      Object of the quad

    Returns object

    • object: any
    • predicate: any
    • subject: any

createQuadList

  • createQuadList(modes: string[], agents: string[] | null): any[]

createSolidResource

  • createSolidResource(url: string, options?: object): Promise<Response>
  • Parameters

    • url: string

      Url where the solid file has to be created

    • Default value options: object = {}

      Options to add as part of the native fetch options object

    Returns Promise<Response>

deleteACL

  • deleteACL(): Promise<boolean>

getACLFile

  • getACLFile(): Promise<any>

getParentACL

  • getParentACL(url: string): any

getPermissions

  • getPermissions(): Promise<any>

getSubjects

  • getSubjects(document: any): Promise<any[]>
  • Parameters

    • document: any

      The base ldflex proxy document from where the data will be extracted

    Returns Promise<any[]>

    A custom object to visualize the acls of a document or container in a Pod

isSameMode

  • isSameMode(modes1: any, modes2: any): any
  • Parameters

    • modes1: any

      An array of mode names to be compared

    • modes2: any

      An array of mode names to be compared

    Returns any

    The result of comparing two array to see if are equals

Generated using TypeDoc