Package org.biscuitsec.biscuit.datalog
Class World
- java.lang.Object
-
- org.biscuitsec.biscuit.datalog.World
-
- All Implemented Interfaces:
Serializable
public class World extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd_fact(Origin origin, Fact fact)voidadd_rule(Long origin, TrustedOrigins scope, Rule rule)voidclearRules()FactSetfacts()Stringprint(SymbolTable symbol_table)booleanquery_match(Rule rule, Long origin, TrustedOrigins scope, SymbolTable symbols)booleanquery_match_all(Rule rule, TrustedOrigins scope, SymbolTable symbols)FactSetquery_rule(Rule rule, Long origin, TrustedOrigins scope, SymbolTable symbols)RuleSetrules()voidrun(RunLimits limits, SymbolTable symbols)voidrun(SymbolTable symbols)
-
-
-
Method Detail
-
add_rule
public void add_rule(Long origin, TrustedOrigins scope, Rule rule)
-
clearRules
public void clearRules()
-
run
public void run(SymbolTable symbols) throws Error
- Throws:
Error
-
run
public void run(RunLimits limits, SymbolTable symbols) throws Error
- Throws:
Error
-
facts
public final FactSet facts()
-
rules
public RuleSet rules()
-
query_rule
public final FactSet query_rule(Rule rule, Long origin, TrustedOrigins scope, SymbolTable symbols) throws Error
- Throws:
Error
-
query_match
public final boolean query_match(Rule rule, Long origin, TrustedOrigins scope, SymbolTable symbols) throws Error
- Throws:
Error
-
query_match_all
public final boolean query_match_all(Rule rule, TrustedOrigins scope, SymbolTable symbols) throws Error
- Throws:
Error
-
print
public String print(SymbolTable symbol_table)
-
-