Liking cljdoc? Tell your friends :D

lambdaconnect-sync.push


combined-permissions-for-objectclj/s

(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/s

(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

pmapclj/s

source

push-transactionclj/s

(push-transaction {:keys [config incoming-json internal-user snapshot
                          entities-by-name scoping-edn now slave-mode?
                          sync-revision-for-slave-mode]
                   :as params})
(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)
source

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

× close