OpenVeo Core server

API Docs for: 7.0.0
Show:

storage

Module: core

static

Summary

Storage is a global context for the core.

Methods

getConfiguration

Syntax

getConfiguration

() Object static

Summary

Gets OpenVeo configuration.

Returns:

Object:

The OpenVeo configuration

getDatabase

Syntax

getDatabase

() Database static

Summary

Gets the current database instance.

Returns:

Database:

A Database object

getEntities

Syntax

getEntities

() Object static

Summary

Gets the list of entities defined by plugins.

Returns:

Object:

entities

getMenu

Syntax

getMenu

() Array static

Summary

Gets the computed back end menu with all links.

Returns:

Array:

The list of back end links

getPermissions

Syntax

getPermissions

() Object static

Summary

Gets the list of permissions defined by plugins.

Returns:

Object:

permissions

getServerConfiguration

Syntax

getServerConfiguration

() Object static

Summary

Gets the application server configuration.

Returns:

Object:

The server configuration

getWebServiceScopes

Syntax

getWebServiceScopes

() Object static

Summary

Gets the list of web service scopes defined by plugins.

Returns:

Object:

scopes

setConfiguration

Syntax

setConfiguration

(
  • conf
)
static

Summary

Sets the OpenVeo configuration.

Parameters:

  • conf Object

    The OpenVeo configuration

setDatabase

Syntax

setDatabase

(
  • newDatabase
)
static

Summary

Sets a new database instance as the current database.

Parameters:

  • newDatabase Database

    The new database of the application

setEntities

Syntax

setEntities

(
  • newEntities
)
static

Summary

Sets the list of entities.

Parameters:

  • newEntities Object

    The list of entities

setMenu

Syntax

setMenu

(
  • newMenu
)
static

Summary

Sets the back end menu list of links.

Parameters:

  • newMenu Array

    The list of back end menu links

setPermissions

Syntax

setPermissions

(
  • permissions
)
static

Summary

Sets the list of permissions.

Parameters:

  • permissions Object

    The new list of permissions

setServerConfiguration

Syntax

setServerConfiguration

(
  • configuration
)
static

Summary

Sets the application server configuration.

Parameters:

  • configuration Object

    The server configuration

setWebServiceScopes

Syntax

setWebServiceScopes

(
  • newScopes
)
static

Summary

Sets the web service list of scopes.

Parameters:

  • newScopes Object

    The new list of scopes for the web service