Module rbum_scope_helper

Source
Expand description

Scope helper

Scope matching rule, assuming item length is 4 :

own_pathsscope_levelvisit level 0visit level 1visit level 2visit level 3
‘’-1‘’
‘’0%%%%
‘’1‘’%%%
‘’2‘’%%
‘’3‘’%
‘AAAA’-1AAAA
‘AAAA’0%%%%
‘AAAA’1AAAA%AAAA%AAAA%
‘AAAA’2AAAA%AAAA%
‘AAAA’3AAAA%
‘AAAA/BBBB’-1AAAA/BBBB
‘AAAA/BBBB’0%%%%
‘AAAA/BBBB’1AAAA%AAAA%AAAA%
‘AAAA/BBBB’2AAAA/BBBB%AAAA/BBBB%
‘AAAA/BBBB’3AAAA/BBBB%
‘AAAA/BBBB/CCCC’-1AAAA/BBBB/CCCC
‘AAAA/BBBB/CCCC’0%%%%
‘AAAA/BBBB/CCCC’1AAAA%AAAA%AAAA%
‘AAAA/BBBB/CCCC’2AAAA/BBBB%AAAA/BBBB%
‘AAAA/BBBB/CCCC’3AAAA/BBBB/CCCC%

Functions§

check_scope
Check scope Legality.
check_without_owner_and_unsafe_fill_ctx
Check owner field of the context and fill the context.
degrade_own_paths
Downgrade of own paths.
get_max_level_id_by_context
Get the max level id from the own paths in the context.
get_path_item
Get the path entries at the specified level from the own paths.
get_pre_paths
Get the previous path at the specified level from the own paths.
get_scope_level_by_context
Get the scope level from the own paths in context.
unsafe_fill_ctx
Fill the context.
unsafe_fill_groups_only
Fill the group field of the context.
unsafe_fill_own_paths_only
Fill the own_paths field of the context.
unsafe_fill_owner_only
Fill the owner field of the context.
unsafe_fill_roles_only
Fill the roles field of the context.