namespacebo
Source: index.
List of models and helper namespaces.
Namespaces
Methods
- CommandObject(properties, rules, extensions)
- CommandObjectSync(properties, rules, extensions)
- EditableChildCollection(name, itemType)
- EditableChildCollectionSync(name, itemType)
- EditableChildModel(properties, rules, extensions)
- EditableChildModelSync(properties, rules, extensions)
- EditableRootCollection(name, itemType, rules, extensions)
- EditableRootCollectionSync(name, itemType, rules, extensions)
- EditableRootModel(properties, rules, extensions)
- EditableRootModelSync(properties, rules, extensions)
- initialize(cfgPath)
- ReadOnlyChildCollection(name, itemType)
- ReadOnlyChildCollectionSync(name, itemType)
- ReadOnlyChildModel(properties, rules, extensions)
Classes
i18n
I18nError
Namespaces
commonRules
dataAccess
dataTypes
rules
shared
system
Methods
staticCommandObject(properties, rules, extensions) → CommandObject
Factory method to create definitions of asynchronous command object models.
Valid child model types are:
* ReadOnlyChildModel
* ReadOnlyChildCollection
Parameters
Name | Type | Optional | Description |
---|---|---|---|
properties |
|
The property definitions. |
|
rules |
bo.shared.RuleManager |
|
The validation and authorization rules. |
extensions |
|
The customization of the model. |
- Throws
-
Argument error: The properties must be a PropertyManager object.
-
Argument error: The rules must be a RuleManager object.
-
Argument error: The extensions must be a ExtensionManager object.
-
Model error: The child objects must be ReadOnlyChildModel or ReadOnlyChildCollection instances.
- Returns
-
CommandObject
The constructor of an asynchronous command object model.
staticCommandObjectSync(properties, rules, extensions) → CommandObjectSync
Factory method to create definitions of synchronous command object models.
Valid child model types are:
* ReadOnlyChildModelSync
* ReadOnlyChildCollectionSync
Parameters
Name | Type | Optional | Description |
---|---|---|---|
properties |
|
The property definitions. |
|
rules |
bo.shared.RuleManager |
|
The validation and authorization rules. |
extensions |
|
The customization of the model. |
- Throws
-
Argument error: The properties must be a PropertyManager object.
-
Argument error: The rules must be a RuleManager object.
-
Argument error: The extensions must be a ExtensionManagerSync object.
-
Model error: The child objects must be ReadOnlyChildModelSync or ReadOnlyChildCollectionSync instances.
- Returns
-
CommandObjectSync
The constructor of a synchronous command object model.
staticEditableChildCollection(name, itemType) → EditableChildCollection
Factory method to create definitions of asynchronous editable child collections.
Valid collection item types are:
* EditableChildModel
Parameters
Name | Type | Optional | Description |
---|---|---|---|
name |
string |
|
The name of the collection. |
itemType |
|
The model type of the collection items. |
- Throws
-
Argument error: The collection name must be a non-empty string.
-
Model error: The item type must be an EditableChildModel.
- Returns
-
EditableChildCollection
The constructor of an asynchronous editable child collection.
staticEditableChildCollectionSync(name, itemType) → EditableChildCollectionSync
Factory method to create definitions of synchronous editable child collections.
Valid collection item types are:
* EditableChildModelSync
Parameters
Name | Type | Optional | Description |
---|---|---|---|
name |
string |
|
The name of the collection. |
itemType |
|
The model type of the collection items. |
- Throws
-
Argument error: The collection name must be a non-empty string.
-
Model error: The item type must be an EditableChildModelSync.
- Returns
-
EditableChildCollectionSync
The constructor of a synchronous editable child collection.
staticEditableChildModel(properties, rules, extensions) → EditableChildModel
Factory method to create definitions of asynchronous editable child models.
Valid child model types are:
* ReadOnlyChildCollection
* ReadOnlyChildModel
Parameters
Name | Type | Optional | Description |
---|---|---|---|
properties |
|
The property definitions. |
|
rules |
bo.shared.RuleManager |
|
The validation and authorization rules. |
extensions |
|
The customization of the model. |
- Throws
-
Argument error: The properties must be a PropertyManager object.
-
Argument error: The rules must be a RuleManager object.
-
Argument error: The extensions must be a ExtensionManager object.
-
Model error: The child objects must be EditableChildCollection or EditableChildModel instances.
- Returns
-
EditableChildModel
The constructor of an asynchronous editable child model.
staticEditableChildModelSync(properties, rules, extensions) → EditableChildModelSync
Factory method to create definitions of synchronous editable child models.
Valid child model types are:
* EditableChildCollectionSync
* EditableChildModelSync
Parameters
Name | Type | Optional | Description |
---|---|---|---|
properties |
|
The property definitions. |
|
rules |
bo.shared.RuleManager |
|
The validation and authorization rules. |
extensions |
|
The customization of the model. |
- Throws
-
Argument error: The properties must be a PropertyManager object.
-
Argument error: The rules must be a RuleManager object.
-
Argument error: The extensions must be a ExtensionManagerSync object.
-
Model error: The child objects must be EditableChildCollectionSync or EditableChildModelSync instances.
- Returns
-
EditableChildModelSync
The constructor of a synchronous editable child model.
staticEditableRootCollection(name, itemType, rules, extensions) → EditableRootCollection
Factory method to create definitions of asynchronous editable root collections.
Valid collection item types are:
* EditableChildModel
Parameters
Name | Type | Optional | Description |
---|---|---|---|
name |
string |
|
The name of the collection. |
itemType |
|
The model type of the collection items. |
|
rules |
bo.shared.RuleManager |
|
The authorization rules. |
extensions |
|
The customization of the collection. |
- Throws
-
Argument error: The collection name must be a non-empty string.
-
Argument error: The rules must be a RuleManager object.
-
Argument error: The extensions must be a ExtensionManager object.
-
Model error: The item type must be an EditableChildModel.
- Returns
-
EditableRootCollection
The constructor of an asynchronous editable root collection.
staticEditableRootCollectionSync(name, itemType, rules, extensions) → EditableRootCollectionSync
Factory method to create definitions of synchronous editable root collections.
Valid collection item types are:
* EditableChildModelSync
Parameters
Name | Type | Optional | Description |
---|---|---|---|
name |
string |
|
The name of the collection. |
itemType |
|
The model type of the collection items. |
|
rules |
bo.shared.RuleManager |
|
The authorization rules. |
extensions |
|
The customization of the collection. |
- Throws
-
Argument error: The collection name must be a non-empty string.
-
Argument error: The rules must be a RuleManager object.
-
Argument error: The extensions must be a ExtensionManagerSync object.
-
Model error: The item type must be an EditableChildModelSync.
- Returns
-
EditableRootCollectionSync
The constructor of a synchronous editable root collection.
staticEditableRootModel(properties, rules, extensions) → EditableRootModel
Factory method to create definitions of asynchronous editable root models.
Valid child model types are:
* EditableChildCollection
* EditableChildModel
Parameters
Name | Type | Optional | Description |
---|---|---|---|
properties |
|
The property definitions. |
|
rules |
bo.shared.RuleManager |
|
The validation and authorization rules. |
extensions |
|
The customization of the model. |
- Throws
-
Argument error: The properties must be a PropertyManager object.
-
Argument error: The rules must be a RuleManager object.
-
Argument error: The extensions must be a ExtensionManager object.
-
Model error: The child objects must be EditableChildCollection or EditableChildModel instances.
- Returns
-
EditableRootModel
The constructor of an asynchronous editable root model.
staticEditableRootModelSync(properties, rules, extensions) → EditableRootModelSync
Factory method to create definitions of synchronous editable root models.
Valid child model types are:
* EditableChildCollectionSync
* EditableChildModelSync
Parameters
Name | Type | Optional | Description |
---|---|---|---|
properties |
|
The property definitions. |
|
rules |
bo.shared.RuleManager |
|
The validation and authorization rules. |
extensions |
|
The customization of the model. |
- Throws
-
Argument error: The properties must be a PropertyManager object.
-
Argument error: The rules must be a RuleManager object.
-
Argument error: The extensions must be a ExtensionManagerSync object.
-
Model error: The child objects must be EditableChildCollectionSync or EditableChildModelSync instances.
- Returns
-
EditableRootModelSync
The constructor of a synchronous editable root model.
staticinitialize(cfgPath)
Initializes the business objects.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
cfgPath |
string |
|
The relative path of the configuration file (.js or .json). E.g. /config/business-objects.json |
staticReadOnlyChildCollection(name, itemType) → ReadOnlyChildCollection
Factory method to create definitions of asynchronous read-only child collections.
Valid collection item types are:
* ReadOnlyChildModel
Parameters
Name | Type | Optional | Description |
---|---|---|---|
name |
string |
|
The name of the collection. |
itemType |
|
The model type of the collection items. |
- Throws
-
Argument error: The collection name must be a non-empty string.
-
Model error: The item type must be an ReadOnlyChildModel.
- Returns
-
ReadOnlyChildCollection
The constructor of an asynchronous read-only child collection.
staticReadOnlyChildCollectionSync(name, itemType) → ReadOnlyChildCollectionSync
Factory method to create definitions of synchronous read-only child collections.
Valid collection item types are:
* ReadOnlyChildModelSync
Parameters
Name | Type | Optional | Description |
---|---|---|---|
name |
string |
|
The name of the collection. |
itemType |
|
The model type of the collection items. |
- Throws
-
Argument error: The collection name must be a non-empty string.
-
Model error: The item type must be an ReadOnlyChildModelSync.
- Returns
-
ReadOnlyChildCollectionSync
The constructor of a asynchronous read-only child collection.
staticReadOnlyChildModel(properties, rules, extensions) → ReadOnlyChildModel
Factory method to create definitions of asynchronous read-only child models.
Valid child model types are:
* ReadOnlyChildCollection
* ReadOnlyChildModel
Parameters
Name | Type | Optional | Description |
---|---|---|---|
properties |
|
The property definitions. |
|
rules |
bo.shared.RuleManager |
|
The validation and authorization rules. |
extensions |
|
The customization of the model. |
- Throws
-
Argument error: The properties must be a PropertyManager object.
-
Argument error: The rules must be a RuleManager object.
-
Argument error: The extensions must be a ExtensionManager object.
-
Model error: The child objects must be ReadOnlyChildCollection or ReadOnlyChildModel instances.
- Returns
-
ReadOnlyChildModel
The constructor of an asynchronous read-only child model.
staticReadOnlyChildModelSync(properties, rules, extensions) → ReadOnlyChildModelSync
Factory method to create definitions of synchronous read-only child models.
Valid child model types are:
* ReadOnlyChildCollectionSync
* ReadOnlyChildModelSync
Parameters
Name | Type | Optional | Description |
---|---|---|---|
properties |
|
The property definitions. |
|
rules |
bo.shared.RuleManager |
|
The validation and authorization rules. |
extensions |
|
The customization of the model. |
- Throws
-
Argument error: The properties must be a PropertyManager object.
-
Argument error: The rules must be a RuleManager object.
-
Argument error: The extensions must be a ExtensionManagerSync object.
-
Model error: The child objects must be ReadOnlyChildCollectionSync or ReadOnlyChildModelSync instances.
- Returns
-
ReadOnlyChildModelSync
The constructor of a synchronous read-only child model.
staticReadOnlyRootCollection(name, itemType, rules, extensions) → ReadOnlyRootCollection
Factory method to create definitions of asynchronous read-only root collections.
Valid collection item types are:
* ReadOnlyChildModel
Parameters
Name | Type | Optional | Description |
---|---|---|---|
name |
string |
|
The name of the collection. |
itemType |
|
The model type of the collection items. |
|
rules |
bo.shared.RuleManager |
|
The validation and authorization rules. |
extensions |
|
The customization of the collection. |
- Throws
-
Argument error: The collection name must be a non-empty string.
-
Argument error: The rules must be a RuleManager object.
-
Argument error: The extensions must be a ExtensionManager object.
-
Model error: The item type must be an ReadOnlyChildModel.
- Returns
-
ReadOnlyRootCollection
The constructor of an asynchronous read-only root collection.
staticReadOnlyRootCollectionSync(name, itemType, rules, extensions) → ReadOnlyRootCollectionSync
Factory method to create definitions of synchronous read-only root collections.
Valid collection item types are:
* ReadOnlyChildModelSync
Parameters
Name | Type | Optional | Description |
---|---|---|---|
name |
string |
|
The name of the collection. |
itemType |
|
The model type of the collection items. |
|
rules |
bo.shared.RuleManager |
|
The validation and authorization rules. |
extensions |
|
The customization of the collection. |
- Throws
-
Argument error: The collection name must be a non-empty string.
-
Argument error: The rules must be a RuleManager object.
-
Argument error: The extensions must be a ExtensionManagerSync object.
-
Model error: The item type must be a ReadOnlyChildModelSync.
- Returns
-
ReadOnlyRootCollectionSync
The constructor of a synchronous read-only root collection.
staticReadOnlyRootModel(properties, rules, extensions) → ReadOnlyRootModel
Factory method to create definitions of asynchronous read-only root models.
Valid child model types are:
* ReadOnlyChildCollection
* ReadOnlyChildModel
Parameters
Name | Type | Optional | Description |
---|---|---|---|
properties |
|
The property definitions. |
|
rules |
bo.shared.RuleManager |
|
The validation and authorization rules. |
extensions |
|
The customization of the model. |
- Throws
-
Argument error: The properties must be a PropertyManager object.
-
Argument error: The rules must be a RuleManager object.
-
Argument error: The extensions must be a ExtensionManager object.
-
Model error: The child objects must be ReadOnlyChildCollection or ReadOnlyChildModel instances.
- Returns
-
ReadOnlyRootModel
The constructor of an asynchronous read-only root model.
staticReadOnlyRootModelSync(properties, rules, extensions) → ReadOnlyRootModelSync
Factory method to create definitions of synchronous read-only root models.
Valid child model types are:
* ReadOnlyChildCollectionSync
* ReadOnlyChildModelSync
Parameters
Name | Type | Optional | Description |
---|---|---|---|
properties |
|
The property definitions. |
|
rules |
bo.shared.RuleManager |
|
The validation and authorization rules. |
extensions |
|
The customization of the model. |
- Throws
-
Argument error: The properties must be a PropertyManager object.
-
Argument error: The rules must be a RuleManager object.
-
Argument error: The extensions must be a ExtensionManagerSync object.
-
Model error: The child objects must be ReadOnlyChildCollectionSync or ReadOnlyChildModelSync instances.
- Returns
-
ReadOnlyRootModelSync
The constructor of a synchronous read-only root model.