@umbraco-cms/backoffice
    Preparing search index...

    This base provides the necessary for a class to become a context-api controller.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    allowedSections: Observable<string[] | undefined> = ...
    avatarUrls: Observable<string[] | undefined> = ...
    currentUser: Observable<UmbCurrentUserModel> = ...
    documentStartNodeUniques: Observable<UmbReferenceByUnique[] | undefined> = ...
    email: Observable<string | undefined> = ...
    fallbackPermissions: Observable<string[] | undefined> = ...
    hasAccessToAllLanguages: Observable<boolean | undefined> = ...
    hasAccessToSensitiveData: Observable<boolean | undefined> = ...
    hasDocumentRootAccess: Observable<boolean | undefined> = ...
    hasMediaRootAccess: Observable<boolean | undefined> = ...
    isAdmin: Observable<boolean | undefined> = ...
    languageIsoCode: Observable<string | undefined> = ...
    languages: Observable<string[] | undefined> = ...
    mediaStartNodeUniques: Observable<UmbReferenceByUnique[] | undefined> = ...
    name: Observable<string | undefined> = ...
    permissions: Observable<unknown[] | undefined> = ...
    unique: Observable<string | undefined> = ...
    userName: Observable<string | undefined> = ...

    Accessors

    Methods

    • The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.

      MDN Reference

      Parameters

      • type: string
      • callback: EventListenerOrEventListenerObject | null
      • Optionaloptions: boolean | AddEventListenerOptions

      Returns void

    • The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.

      MDN Reference

      Parameters

      • event: Event

      Returns boolean

    • Checks if a user is the current user.

      Parameters

      • userUnique: string

        The user id to check

      Returns Promise<boolean>

      True if the user is the current user, otherwise false

    • Loads the current user. Concurrent callers share the same in-flight promise, so awaiting load() always waits for #currentUser to be populated.

      Returns Promise<void>

      Resolves once the current user observable has emitted.

    • The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.

      MDN Reference

      Parameters

      • type: string
      • callback: EventListenerOrEventListenerObject | null
      • Optionaloptions: boolean | EventListenerOptions

      Returns void