(after-load this request doc)
Called after a doc is retrieved from the db. Returns the doc, possibly with changes.
Called after a doc is retrieved from the db. Returns the doc, possibly with changes.
(after-save this request old-doc new-doc)
Called after a doc is saved. Returns the doc, possibly with changes.
Called after a doc is saved. Returns the doc, possibly with changes.
(before-save this request old-doc new-doc)
Called before a doc is saved. Returns the doc, possibly with changes.
Called before a doc is saved. Returns the doc, possibly with changes.
(can? this request doc field permission)
Returns whether the Ring request has the given permission on field.
Returns whether the Ring request has the given permission on field.
(db-delete this doc)
Delete the doc.
Delete the doc.
(db-get this id)
Retrieve a doc from the db, or nil
Retrieve a doc from the db, or nil
(db-put this doc)
Save the doc.
Save the doc.
(get-model this request doc)
Return a model to govern the doc, or nil. The model can be anything that satisfies chesty.acl.ACL.
Return a model to govern the doc, or nil. The model can be anything that satisfies chesty.acl.ACL.
(get-role this request doc)
Return the ACL role for the request.
Return the ACL role for the request.
(validate this request old-doc new-doc)
Return a map of fields to seqs of error messges, or nil if everything is valid. old-doc will be nil when there is no older version.
Return a map of fields to seqs of error messges, or nil if everything is valid. old-doc will be nil when there is no older version.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close