Mixin: Base

Base

This provides methods to store and use global settings when interacting with Nuxeo Platform.

It's not meant to be used directly.

Source:

Methods

auth() → {Base}

Sets the auth object to use to authenticate the user.

Source:
Returns:

The object itself.

Type
Base

Adds a header.

Parameters:
Name Type Description
name string

the header name

value string

the header value

Source:
Returns:

The object itself..

Type
Base

headers(headers) → {Base}

Adds headers. The given headers are merged with the existing ones if any.

Parameters:
Name Type Description
headers object

the headers to be merged with the existing ones.

Source:
Returns:

The object itself.

Type
Base

httpTimeout() → {Base}

Sets a HTTP timeout.

Source:
Returns:

The object itself.

Type
Base

repositoryName() → {Base}

Sets the repository name.

Source:
Returns:

The object itself.

Type
Base

schemas() → {Base}

Sets the schemas.

Source:
Returns:

The object itself.

Type
Base

timeout() → {Base}

Sets a global timeout, used as HTTP timeout and transaction timeout
by default.

Source:
Returns:

The object itself.

Type
Base

transactionTimeout() → {Base}

Sets a transaction timeout.

Source:
Returns:

The object itself.

Type
Base