Namespace: shared

bo. shared

Contains components used by models, collections and other components.

Properties:
Name Type Description
ExtensionManager function

Extension manager constructor to create new a new extension manager object for an asynchronous model.

ExtensionManagerSync function

Extension manager constructor to create new a new extension manager object for a synchronous model.

EventHandlerList function

Event handler list constructor to create a new event handler collection.

DataStore function

DataStore constructor to create new data store.

ModelState object

Model state object specifies the possible states of the editable models.

ModelError function

Model error constructor to create a new error related to a model.

ConfigurationError function

Configuration error constructor to create a new error related to configuration.

PropertyInfo function

Property definition constructor to create new property definition.

PropertyFlag function

Property flag constructor to create new flag set for a property definition.

PropertyManager function

Property manager constructor to create a new property manager.

PropertyContext function

Property context constructor to create new context object for custom property functions.

TransferContext function

Transfer context constructor to create new context object for custom client and data transfer functions.

DataPortalAction function

Data portal action enumeration specifies the model operations to execute on data access objects.

DataPortalContext function

Data portal context constructor to create new context object for custom data portal functions.

DataPortalEvent function

Data portal event enumeration specifies the events of data portal operations.

DataPortalEventArgs function

Data portal event arguments constructor to create new context object for data portal events.

DataPortalError function

Data portal error constructor to create a new error related to data portal actions.

Classes

ConfigurationError
DataPortalAction
DataPortalContext
DataPortalError
DataPortalEvent
DataPortalEventArgs
DataStore
EventHandlerList
ExtensionManager
ExtensionManagerBase
ExtensionManagerSync
ModelError
ModelState
PropertyContext
PropertyFlag
PropertyInfo
PropertyManager
TransferContext

Members

<inner> configuration

The configuration object for business objects.

Properties:
Name Type Argument Description
connectionManager bo.dataAccess.ConnectionManagerBase

The connection manager instance. It must be set via bo.initialize or bo.configuration.initialize.

daoBuilder external.daoBuilder

Factory method to create data access objects. The default method is bo.dataAccess.daoBuilder.

getUser external.getUser

Returns the current user. The default method returns null, i.e. anonymous user is assumed.

getLocale external.getLocale

Returns the current locale. The default method returns an empty string, i.e. the business objects will use the default messages.

pathOfLocales string <optional>

The relative path of the directory containing project locales. If not supplied, the business objects cannot interpret the first message argument as the message key, i.e. the first message argument must be the message text.

noAccessBehavior bo.rules.NoAccessBehavior

The default behavior for unauthorized operations. The default value is bo.rules.NoAccessBehavior#throwError.

initialize internal~initializeCfg

Reads the configuration of business objects.

If you find bugs or have feature requests, please let us know.

JavaScript business objects ♦ Copyright © 2014-2016 Logikum, Ltd.
Documentation generated by JSDoc 3.2.2 on 2015. December 31. using the DocStrap template.