skrulcik / policy-agnostic-jagger Goto Github PK
View Code? Open in Web Editor NEWExperiment in using Dagger to facilitate policy-agnostic programming in Java
License: MIT License
Experiment in using Dagger to facilitate policy-agnostic programming in Java
License: MIT License
Only one qualifier can be applied at a time in Dagger, which is an issue if we are constantly using the @Raw
qualifier. We would like to be able to qualify things like @Doctor User user
and @Patient User user
but cannot with the @Raw
specification.
Creating a workaround, whether it be a module-based system or generated @Raw_Doctor
annotations, is necessary before Jagger can be effectively used in applications.
PolicyRule
builder)Square created an AutoValue extension to redact properties from toString. If we could evaluate toString
in a Jagger context, that would be great, but otherwise, redaction is a good option.
Field restriction is fine in most cases, but it there are cases when rather than anonymizing fields, the record should just be invisible. A motivating example I'm working with right now is a medical record search. If permissions for the medical record don't exist, it should not show up in search.
Such a record wouldn't show up in search as-is because all of the fields would be re-written as "REDACTED"
(or some other constant). It is tedious for the programmer and wasteful at runtime if the only way to redact an entire object is to individually redact every field.
Annotation processing rounds are naturally repeated. This natural repetition, along with the persistence of the ProcessingStep
instances between rounds means that any fields holding processing information from one round will be carried over to the next. This triggers some warnings I have in place for the policy rule collection step that are supposed to warn against re-used labels.
I should either clear instance variables between rounds, or purposefully track what repetitions I expect in future rounds.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.