stapl-dsl / stapl-core Goto Github PK
View Code? Open in Web Editor NEWThe STAPL policy language for tree-structured, attribute-based access control policies
The STAPL policy language for tree-structured, attribute-based access control policies
Hi,
I'm interested about XACML like with Scala.
I'm trying to reproduce your basic test, and just with the compilation of the ExamplePolicy object I have an error:
sbt run
[info] Loading global plugins from /Users/xxxxx/.sbt/0.13/plugins
[info] Loading project definition from /Users/xxxxx/Documents/workspace/minimal-scala/project
[info] Set current project to minimal-scala (in build file:/Users/xxxxx/Documents/workspace/minimal-scala/)
[info] Compiling 1 Scala source to /Users/xxxxx/Documents/workspace/minimal-scala/target/scala-2.11/classes...
[error] /Users/xxxxx/Documents/workspace/minimal-scala/src/main/scala/com/example/ExamplePolicy.scala:12: overloaded method value := with alternatives:
[error] (effectKeyword: stapl.core.dsl.EffectKeyword)stapl.core.Rule <and>
[error] (t: stapl.core.dsl.EffectAndObligationActions)stapl.core.Rule <and>
[error] (t: stapl.core.dsl.EffectAndCondition)stapl.core.Rule <and>
[error] (t: stapl.core.dsl.EffectConditionAndObligationActions)stapl.core.Rule
[error] cannot be applied to (stapl.core.dsl.OnlyTarget)
[error] Rule("permit physicians") := when ("physician" in subject.roles) permit,
[error] ^
[error] one error found
[error] (compile:compileIncremental) Compilation failed
[error] Total time: 4 s, completed 6 oct. 2015 13:30:03
Regards,
Yu.
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.