Liking cljdoc? Tell your friends :D

lambdaconnect-sync.push


combined-permissions-for-objectclj

(combined-permissions-for-object permissions entity)

Given a sequence of permissions of the form {:create ^Bool :modify ^Bool :protected-fields [^String] :writable-fields [^String]}

produces a single permission of the same form that is a combination of these, where:

  1. create and modify are the most permissive of all the permissions
  2. protected-fields is an intersection of all protected fields (again, most permissive models)
  3. writable-fields is an union of all writable-fields, most permissive model.

Therefore, we assume that permissions are keys that open certain gates instead of closing them. If someone has write permissions to something it trumps all the lesser permissions.

Given a sequence of permissions of the form 
{:create ^Bool 
 :modify ^Bool
 :protected-fields [^String]
 :writable-fields [^String]}

produces a single permission of the same form that is a combination of these, where:

1. create and modify are the most permissive of all the permissions
2. protected-fields is an intersection of all protected fields (again, most permissive models)
3. writable-fields is an union of all writable-fields, most permissive model.

Therefore, we assume that permissions are keys that open certain gates instead of closing them. 
If someone has write permissions to something it trumps all the lesser permissions.
sourceraw docstring

compute-rel-objs-to-fetchclj

(compute-rel-objs-to-fetch config input entities-by-name snapshot)

Creates a map of {:umbrella [uuid1, uuid2, ...], :brick [buuid1, buudi2, ...]}. The map represents all objects that should be fetched to have the input data complete.

Creates a map of {:umbrella [uuid1, uuid2, ...], :brick [buuid1, buudi2, ...]}. 
The map represents all objects that should be fetched to have the input data complete.
sourceraw docstring

internal-push-transactionclj

(internal-push-transaction config
                           incoming-json
                           internal-user
                           snapshot
                           entities-by-name
                           scoped-push-input-for-user)
(internal-push-transaction config
                           incoming-json
                           internal-user
                           snapshot
                           entities-by-name
                           scoped-push-input-for-user
                           now)
source

merge-fieldsclj

(merge-fields perms entity)
source

merge-permissionsclj

(merge-permissions permissions)
source

push-transactionclj

(push-transaction config
                  incoming-json
                  internal-user
                  snapshot
                  entities-by-name
                  scoping-edn)
(push-transaction config
                  incoming-json
                  internal-user
                  snapshot
                  entities-by-name
                  scoping-edn
                  now)
(push-transaction config
                  incoming-json
                  internal-user
                  snapshot
                  entities-by-name
                  scoping-edn
                  push-output
                  rejections
                  cached-snapshot-tags)
source

send-specific-hooks!clj

(send-specific-hooks! config
                      before-snapshot
                      snapshot
                      interesting-objects
                      entities-by-name
                      user
                      hook-fun)

Creates a transaction or a map {:transaction mq-transaction}

Creates a transaction or a map {:transaction mq-transaction}
sourceraw docstring

send-specific-update-hooks!clj

(send-specific-update-hooks! config
                             before-snapshot
                             snapshot
                             interesting-objects
                             entities-by-name
                             user
                             hook-fun)

Creates a transaction or a map {:transaction mq-transaction}

Creates a transaction or a map {:transaction mq-transaction}
sourceraw docstring

update-boolean-permissionsclj

(update-boolean-permissions l r)
source

update-protected-fieldsclj

(update-protected-fields l-m r-m l r)
source

update-writable-fieldsclj

(update-writable-fields l-m r-m l r)
source

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

× close