Liking cljdoc? Tell your friends :D

tiny-rbac.builder


add-actionclj

(add-action role-set resource action)

Defines a new action on resource Throws exception when the resource is missing

Defines a new action on resource
Throws exception when the resource is missing 
sourceraw docstring

add-inheritanceclj

(add-inheritance role-set role inherits)

Adds inheritance to a role. The parent role should exist, validates for cyclic inheritance. On error throws an Exception

Adds inheritance to a role.
The parent role should exist, validates for cyclic inheritance.
On error throws an Exception
sourceraw docstring

add-permissionclj

(add-permission role-set role resource action permission)

Provides a permission for a role. Validates for the resource, action and role. On error throws an Exception

Provides a permission for a role.
Validates for the resource, action and role.
On error throws an Exception
sourceraw docstring

add-resourceclj

(add-resource role-set resources)

Defines a new resource to the role-set

Defines a new resource to the role-set
sourceraw docstring

add-roleclj

(add-role role-set role)

Defines a new role to the role-set

Defines a new role to the role-set
sourceraw docstring

delete-actionclj

(delete-action role-set resource action)

Deletes an action on resource. Throws Exception when the resource or the action is missing

Deletes an action on resource.
Throws Exception when the resource or the action is missing
sourceraw docstring

delete-inheritanceclj

(delete-inheritance role-set role inheritance)
source

delete-permissionclj

(delete-permission role-set role resource action permission)

Revokes a permission for a user, for an action on resource Validates for the resource, action, role and permission. On error throws an Exception

Revokes a permission for a user, for an action on resource
Validates for the resource, action, role and permission.
On error throws an Exception
sourceraw docstring

delete-resourceclj

(delete-resource role-set resource)

Deletes a resource from the role-set, if it exist, else throws Exception. Removes all actions, and permissions on the given resource

Deletes a resource from the role-set, if it exist, else throws Exception.
Removes all actions, and permissions on the given resource
sourceraw docstring

delete-roleclj

(delete-role role-set role)
source

initclj

(init role-set)
(init initial-set role-set)

Initialize and validates role-set from given map. If anything goes wrong throws Exception

Initialize and validates role-set from given map.
If anything goes wrong throws Exception
sourceraw docstring

remove-permit-actionclj

(remove-permit-action permission resource action)
source

remove-role-permit-actionclj

(remove-role-permit-action permits resource action)
source

remove-roles-actionclj

(remove-roles-action roles resource action)
source

valid-inheritanceclj

(valid-inheritance role-set role inheritance)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close