Class: RuleList

bo.rules. RuleList

Represents the lists of rules of a model instance.

new RuleList()

Creates a new rule list instance.

Methods

add(id, rule)

Adds a new rule to the list of rules of its owner property.

Parameters:
Name Type Description
id string

The identifier of the rule list, typically the property name.

rule bo.rules.ValidationRule | bo.rules.AuthorizationRule

A validation or authorization rule.

Throws:

sort()

Sorts the lists of rules by rule priority.

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.