(add-child-contexts! db-spec context child-contexts)
FIXME FIXME FIXME FIXME
FIXME FIXME FIXME FIXME
(create-context! db-spec context parent-contexts)
Create a context
, in the database specified by db-spec
.
db-spec
is a :next.jdbc.specs/db-spec
compliant value.
context
is a map with the following keys and values:
:resource-id The application id that identifies the resource for
which the context is created.
:context-type-name The name of the context type to use for this
context. It must be a valid context-type-name
previously created using create-context-type!
E.g.,
{:resource-id #uuid "28b81079-a2b7-419d-92b1-7249bc326ea1"
:context-type-name "device"}
parent-contexts
is a collection of already existing contexts, that
will be set as the parents for context
. To be able to create a
top-level context, pass an empty collection.
Create a `context`, in the database specified by `db-spec`. `db-spec` is a `:next.jdbc.specs/db-spec` compliant value. `context` is a map with the following keys and values: :resource-id The application id that identifies the resource for which the context is created. :context-type-name The name of the context type to use for this context. It must be a valid context-type-name previously created using `create-context-type!` E.g., {:resource-id #uuid "28b81079-a2b7-419d-92b1-7249bc326ea1" :context-type-name "device"} `parent-contexts` is a collection of already existing contexts, that will be set as the parents for `context`. To be able to create a top-level context, pass an empty collection.
(create-role! db-spec role)
Create a role
, in the database specified by db-spec
.
db-spec
is a :next.jdbc.specs/db-spec
compliant value.
role
is a map with the following keys and values:
:name A mandatory key which contains a keyword with the role name. :description An optional key which contains a string with the description of the role.
E.g., {:name :asset-manager :description "Role used to manage the assets in the application"}
Create a `role`, in the database specified by `db-spec`. `db-spec` is a `:next.jdbc.specs/db-spec` compliant value. `role` is a map with the following keys and values: :name A mandatory key which contains a keyword with the role name. :description An optional key which contains a string with the description of the role. E.g., {:name :asset-manager :description "Role used to manage the assets in the application"}
(create-roles! db-spec roles)
Create a collection of roles
, in the database specified by db-spec
.
db-spec
is a :next.jdbc.specs/db-spec
compliant value.
roles
is collection of role
, as specified in create-role!
Create a collection of `roles`, in the database specified by `db-spec`. `db-spec` is a `:next.jdbc.specs/db-spec` compliant value. `roles` is collection of `role`, as specified in `create-role!`
(delete-contexts! db-spec contexts)
FIXME FIXME FIXME FIXME
FIXME FIXME FIXME FIXME
(delete-role! db-spec role)
Delete role
definition, from the db using db-spec
connection
db-spec
is a :next.jdbc.specs/db-spec
compliant value.
role
is a map, as specified in create-role!
. Except
in this case, the role id
is mandatory.
Delete `role` definition, from the db using `db-spec` connection `db-spec` is a `:next.jdbc.specs/db-spec` compliant value. `role` is a map, as specified in `create-role!`. Except in this case, the role `id` is mandatory.
(delete-role-by-id! db-spec role-id)
Delete role
whose id is role-id
, from the db using db-spec
connection
db-spec
is a :next.jdbc.specs/db-spec
compliant value.
Delete `role` whose id is `role-id`, from the db using `db-spec` connection `db-spec` is a `:next.jdbc.specs/db-spec` compliant value.
(delete-role-by-name! db-spec name)
Delete role
whose name is name
, from the db using db-spec
connection
db-spec
is a :next.jdbc.specs/db-spec
compliant value.
Delete `role` whose name is `name`, from the db using `db-spec` connection `db-spec` is a `:next.jdbc.specs/db-spec` compliant value.
(delete-roles! db-spec roles)
Delete roles
definitions, from the db using db-spec
connection
db-spec
is a :next.jdbc.specs/db-spec
compliant value.
roles
is a collection of maps, as specified in
create-role!
. Except in this case, the role id
is mandatory.
Delete `roles` definitions, from the db using `db-spec` connection `db-spec` is a `:next.jdbc.specs/db-spec` compliant value. `roles` is a collection of maps, as specified in `create-role!`. Except in this case, the role `id` is mandatory.
(get-role-assignments-by-user db-spec user-id)
(get-role-assignments-by-user db-spec user-id context-id)
(get-role-by-id db-spec role-id)
Get the role whose id is role-id
, from the db using db-spec
connection
db-spec
is a :next.jdbc.specs/db-spec
compliant value.
Get the role whose id is `role-id`, from the db using `db-spec` connection `db-spec` is a `:next.jdbc.specs/db-spec` compliant value.
(get-role-by-name db-spec name)
Get the role whose name is name
, from the db using db-spec
connection
db-spec
is a :next.jdbc.specs/db-spec
compliant value.
Get the role whose name is `name`, from the db using `db-spec` connection `db-spec` is a `:next.jdbc.specs/db-spec` compliant value.
(get-roles db-spec)
Get all role definitions, from the db using db-spec
connection
db-spec
is a :next.jdbc.specs/db-spec
compliant value.
Get all role definitions, from the db using `db-spec` connection `db-spec` is a `:next.jdbc.specs/db-spec` compliant value.
(has-permission? db-spec user-id resource-id context-type-name permission-name)
(remove-child-contexts! db-spec context child-contexts)
FIXME FIXME FIXME FIXME
FIXME FIXME FIXME FIXME
(update-role! db-spec role)
Update role
definitionn, in the db using db-spec
connection
db-spec
is a :next.jdbc.specs/db-spec
compliant value.
role
is a map, as specified in create-role!
. Except
in this case, the role id
is mandatory.
Update `role` definitionn, in the db using `db-spec` connection `db-spec` is a `:next.jdbc.specs/db-spec` compliant value. `role` is a map, as specified in `create-role!`. Except in this case, the role `id` is mandatory.
(update-roles! db-spec roles)
Update a collection of roles
, in the db using db-spec
connection
db-spec
is a :next.jdbc.specs/db-spec
compliant value.
roles
is collection of role
, as specified in
create-role!
. Except in this case, the role id
is mandatory.
Update a collection of `roles`, in the db using `db-spec` connection `db-spec` is a `:next.jdbc.specs/db-spec` compliant value. `roles` is collection of `role`, as specified in `create-role!`. Except in this case, the role `id` is mandatory.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close