Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Repository

Class that can be used as a main entry point to manipulate a sensenet content repository

Hierarchy

  • Repository

Implements

  • IDisposable

Index

Constructors

constructor

Properties

authentication

authentication: IAuthenticationService = new BypassAuthentication()

Authentication service associated with the repository object

configuration

The configuration for the Repository object

Private fetchMethod

fetchMethod: fetch

schemas

schemas: SchemaStore

security

security: Security = new Security(this)

Shortcut for security- and permission-related custom actions

versioning

versioning: Versioning = new Versioning(this)

Shortcut for versioning related custom actions

Methods

awaitReadyState

  • awaitReadyState(): Promise<void>
  • Async method that will be resolved when the Repository is ready to make HTTP calls

    Returns Promise<void>

copy

Private createArray

  • createArray<T>(param: T[] | T): T[]

delete

dispose

  • dispose(): void

executeAction

  • executeAction<TBodyType, TReturns>(options: IActionOptions<TBodyType, any>): Promise<TReturns>
  • Executes a specified custom OData action

    Type parameters

    • TBodyType

    • TReturns

    Parameters

    • options: IActionOptions<TBodyType, any>

      Options for the Custom Action

    Returns Promise<TReturns>

fetch

  • fetch(info: RequestInfo, init?: RequestInit, awaitReadyState?: boolean): Promise<Response>
  • Wrapper for a native window.fetch method. The repository's readyState will be awaited and credentials will be included by default

    Parameters

    • info: RequestInfo
    • Optional init: RequestInit

      Optional init parameters

    • Default value awaitReadyState: boolean = true

    Returns Promise<Response>

getActions

load

  • Loads a content from the content repository. If used with a fully qualified content path, it will be transformed to an item path.

    Type parameters

    Parameters

    • options: ILoadOptions<TContentType>

      Options for the Load request

    Returns Promise<IODataResponse<TContentType>>

loadCollection

move

patch

post

put

Generated using TypeDoc