-
clearActionFromRules(action, ruleSet)
-
Clear action definition from rules of access
Parameters:
Name |
Type |
Default |
Description |
action |
object
|
|
action data |
ruleSet |
object
|
null
|
specific set of rules for this action |
Returns:
clean action data
-
Type
-
object
-
clearFromDirtyFields(action)
-
Deletes fields listed in DIRTY_FIELDS constant from object
Parameters:
Name |
Type |
Description |
action |
Object
|
action object |
-
filter(manifest, auth, role, root)
-
Filters manifest for current user auth, role, root.
Removes all actions that can not be performed
Parameters:
Name |
Type |
Description |
manifest |
object
|
full raw manifest |
auth |
boolean
|
user auth status |
role |
boolean
|
user role status |
root |
boolean
|
user root status |
Returns:
filtered manifest
-
Type
-
object
-
filterRoute(route, auth, role, root)
-
Clear route from action variants that not permited for user according to
his auth, role, root status
Parameters:
Name |
Type |
Description |
route |
object
|
route object |
auth |
boolean
|
user auth status |
role |
boolean
|
user role status |
root |
boolean
|
user root status |
Returns:
Return router with only actions user can access with current states of auth, role, root. With removed definitions of what rules of access are.
-
Type
-
object
-
filterRouteAction()
-
-
findAll(input)
-
Searching fields in directory
Parameters:
Name |
Type |
Description |
input |
Object
|
Properties
Name |
Type |
Description |
notModule |
notModule
|
|
srcDir |
string
|
|
|
-
findAll(input)
-
Searching fields in directory
Parameters:
Name |
Type |
Description |
input |
Object
|
Properties
Name |
Type |
Description |
notModule |
notModule
|
|
srcDir |
string
|
|
|
-
findAll(input)
-
Searching fields in directory
Parameters:
Name |
Type |
Description |
input |
Object
|
Properties
Name |
Type |
Description |
notModule |
notModule
|
|
srcDir |
string
|
|
|
-
findAll(input)
-
Searching fields in directory
Parameters:
Name |
Type |
Description |
input |
Object
|
Properties
Name |
Type |
Description |
notModule |
notModule
|
|
srcDir |
string
|
|
|
-
getConstructor(conf)
-
Returns constructor of Session driver
Parameters:
Name |
Type |
Description |
conf |
Object
|
configuration os session from application config
Properties
Name |
Type |
Description |
driver |
string
|
name of session storage engine |
|
Returns:
class constructor or undefined
-
Type
-
Object
-
insert(what, where)
-
Insert initalizator after and before specified modules or at the end
Parameters:
Name |
Type |
Description |
what |
Object
|
initializator class constructor |
where |
Object
|
specification where to insert
Properties
Name |
Type |
Description |
after |
Array.String
|
list of constructor names of
initalizators after which item should be inserted |
before |
Array.String
|
list of constructor names of
initalizators before which item should be inserted |
|
-
remove(rem, add)
-
Removing item and optionally adding few on place of removed
Parameters:
Name |
Type |
Description |
rem |
string
|
name of class of initalizator to remove |
add |
Array.Constructor
|
list of class constructors |
-
replace(whatRemove, whatInsert, where)
-
Replacing existing item or if item is not exists in list
then inserting items accroding to where instruction
Parameters:
Name |
Type |
Description |
whatRemove |
string
|
name of class of initalizator to remove |
whatInsert |
Array.Constructor
|
list of class constructors |
where |
Object
|
specification where to insert
Properties
Name |
Type |
Description |
after |
Array.String
|
list of constructor names of
initalizators after which item should be inserted |
before |
Array.String
|
list of constructor names of
initalizators before which item should be inserted |
|
-
ruleSetHasFieldsDirective(ruleSet)
-
Return true if ruleSet object has not empty list of fields
Parameters:
Name |
Type |
Description |
ruleSet |
Object
|
specific set of rules for action |
Returns:
if rule set has not empty fields list
-
Type
-
boolean