Abstract
Protected
Readonly
createProtected
Readonly
deleteProtected
Readonly
readProtected
Readonly
updateAuthorize an entity against creation policy.
viewer context of user creating the entity
query context in which to perform the create authorization
entity to authorize
entity if authorized
Authorize an entity against deletion policy.
viewer context of user deleting the entity
query context in which to perform the delete authorization
entity to authorize
entity if authorized
Authorize an entity against read policy.
viewer context of user reading the entity
query context in which to perform the read authorization
entity to authorize
entity if authorized
Authorize an entity against update policy.
viewer context of user updating the entity
query context in which to perform the update authorization
entity to authorize
entity if authorized
Protected
getGet the privacy policy evaluation mode and deny handler for this policy. Defaults to normal enforcing policy.
Privacy policy for an entity.
Remarks
A privacy policy declares lists of PrivacyPolicyRule for create, read, update, and delete actions for an entity and provides logic for authorizing an entity against rules.
Evaluation of a list of rules is performed according the following example. This allows constructing of complex yet testable permissioning logic for an entity.
Example