Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- acceptExpression - Variable in class com.osohq.oso.Host
- Add - Enum constant in enum com.osohq.oso.Operator
- And - Enum constant in enum com.osohq.oso.Operator
- applicationError(String) - Method in class com.osohq.oso.Ffi.Query
- args - Variable in class com.osohq.oso.Predicate
- Assign - Enum constant in enum com.osohq.oso.Operator
- AuthorizationException(String) - Constructor for exception class com.osohq.oso.Exceptions.AuthorizationException
- authorize(Object, Object, Object) - Method in class com.osohq.oso.Oso
- authorize(Object, Object, Object, boolean) - Method in class com.osohq.oso.Oso
-
Ensure that `actor` is allowed to perform `action` on `resource`.
- authorizedActions(Object, Object) - Method in class com.osohq.oso.Oso
- authorizedActions(Object, Object, boolean) - Method in class com.osohq.oso.Oso
-
Determine the actions `actor` is allowed to take on `resource`.
- authorizedFields(Object, Object, Object) - Method in class com.osohq.oso.Oso
- authorizedFields(Object, Object, Object, boolean) - Method in class com.osohq.oso.Oso
-
Determine the fields of `resource` on which `actor` is allowed to perform `action`.
- authorizeField(Object, Object, Object, Object) - Method in class com.osohq.oso.Oso
-
Ensure that `actor` is allowed to perform `action` on a given `resource`'s `field`.
- authorizeRequest(Object, Object) - Method in class com.osohq.oso.Oso
-
Ensure that `actor` is allowed to send `request` to the server.
B
- bind(String, String) - Method in class com.osohq.oso.Ffi.Query
C
- cacheClass(Class<?>, String) - Method in class com.osohq.oso.Host
-
Store a Java class in the cache by name.
- cacheInstance(Object, Long) - Method in class com.osohq.oso.Host
-
Cache an instance of a Java class.
- callResult(long, String) - Method in class com.osohq.oso.Ffi.Query
- check() - Method in class com.osohq.oso.Ffi.CResultPointer
- check() - Method in class com.osohq.oso.Ffi.CResultVoid
- clearRules() - Method in class com.osohq.oso.Ffi.Polar
- clearRules() - Method in class com.osohq.oso.Polar
-
Clear the rules from the KB, but maintain all registered classes and calls.
- clone() - Method in class com.osohq.oso.Host
- com.osohq.oso - package com.osohq.oso
- CResultPointer(Runtime) - Constructor for class com.osohq.oso.Ffi.CResultPointer
- CResultVoid(Runtime) - Constructor for class com.osohq.oso.Ffi.CResultVoid
- Cut - Enum constant in enum com.osohq.oso.Operator
D
- Debug - Enum constant in enum com.osohq.oso.Operator
- debugCommand(String) - Method in class com.osohq.oso.Ffi.Query
- Div - Enum constant in enum com.osohq.oso.Operator
- Dot - Enum constant in enum com.osohq.oso.Operator
- DuplicateClassAliasError(String, String, String) - Constructor for exception class com.osohq.oso.Exceptions.DuplicateClassAliasError
- DuplicateInstanceRegistrationError(Long) - Constructor for exception class com.osohq.oso.Exceptions.DuplicateInstanceRegistrationError
E
- Eq - Enum constant in enum com.osohq.oso.Operator
- equals(Object) - Method in class com.osohq.oso.Expression
- equals(Object) - Method in class com.osohq.oso.Pattern
- equals(Object) - Method in class com.osohq.oso.Predicate
- equals(Object) - Method in class com.osohq.oso.Variable
- Exceptions - Class in com.osohq.oso
- Exceptions() - Constructor for class com.osohq.oso.Exceptions
- Exceptions.AuthorizationException - Exception Class in com.osohq.oso
- Exceptions.DuplicateClassAliasError - Exception Class in com.osohq.oso
- Exceptions.DuplicateInstanceRegistrationError - Exception Class in com.osohq.oso
- Exceptions.ExtraToken - Exception Class in com.osohq.oso
- Exceptions.FFIErrorNotFound - Exception Class in com.osohq.oso
-
Expected to find an FFI error to convert into a Java error but found none.
- Exceptions.FileLoadingError - Exception Class in com.osohq.oso
- Exceptions.ForbiddenException - Exception Class in com.osohq.oso
- Exceptions.InlineQueryFailedError - Exception Class in com.osohq.oso
- Exceptions.InstantiationError - Exception Class in com.osohq.oso
- Exceptions.IntegerOverflow - Exception Class in com.osohq.oso
- Exceptions.InvalidAttributeError - Exception Class in com.osohq.oso
- Exceptions.InvalidCallError - Exception Class in com.osohq.oso
- Exceptions.InvalidConstructorError - Exception Class in com.osohq.oso
- Exceptions.InvalidIteratorError - Exception Class in com.osohq.oso
- Exceptions.InvalidToken - Exception Class in com.osohq.oso
- Exceptions.InvalidTokenCharacter - Exception Class in com.osohq.oso
- Exceptions.MissingConstructorError - Exception Class in com.osohq.oso
- Exceptions.NotFoundException - Exception Class in com.osohq.oso
- Exceptions.NullByteInPolarFileError - Exception Class in com.osohq.oso
- Exceptions.OperationalError - Exception Class in com.osohq.oso
- Exceptions.OsoException - Exception Class in com.osohq.oso
- Exceptions.ParseError - Exception Class in com.osohq.oso
- Exceptions.PolarFileExtensionError - Exception Class in com.osohq.oso
- Exceptions.PolarFileNotFoundError - Exception Class in com.osohq.oso
- Exceptions.PolarRuntimeException - Exception Class in com.osohq.oso
-
Generic runtime exception.
- Exceptions.PolarTypeError - Exception Class in com.osohq.oso
- Exceptions.StackOverflowError - Exception Class in com.osohq.oso
- Exceptions.UnexpectedPolarTypeError - Exception Class in com.osohq.oso
- Exceptions.UnimplementedOperation - Exception Class in com.osohq.oso
- Exceptions.UnknownError - Exception Class in com.osohq.oso
- Exceptions.UnrecognizedEOF - Exception Class in com.osohq.oso
- Exceptions.UnrecognizedToken - Exception Class in com.osohq.oso
- Exceptions.UnregisteredClassError - Exception Class in com.osohq.oso
- Exceptions.UnregisteredInstanceError - Exception Class in com.osohq.oso
- Exceptions.UnsupportedError - Exception Class in com.osohq.oso
- Exceptions.ValidationError - Exception Class in com.osohq.oso
-
Generic Polar Validation exception.
- Expression - Class in com.osohq.oso
- Expression(Operator, List<Object>) - Constructor for class com.osohq.oso.Expression
- ExtraToken(String, Map<String, Object>) - Constructor for exception class com.osohq.oso.Exceptions.ExtraToken
F
- Ffi - Class in com.osohq.oso
- Ffi() - Constructor for class com.osohq.oso.Ffi
- Ffi.CResultPointer - Class in com.osohq.oso
- Ffi.CResultVoid - Class in com.osohq.oso
- Ffi.Polar - Class in com.osohq.oso
- Ffi.PolarLib - Interface in com.osohq.oso
- Ffi.Query - Class in com.osohq.oso
- FFIErrorNotFound() - Constructor for exception class com.osohq.oso.Exceptions.FFIErrorNotFound
- FFIErrorNotFound(String, Map<String, Object>) - Constructor for exception class com.osohq.oso.Exceptions.FFIErrorNotFound
- FileLoadingError(String, Map<String, Object>) - Constructor for exception class com.osohq.oso.Exceptions.FileLoadingError
- finalize() - Method in class com.osohq.oso.Ffi.Polar
- finalize() - Method in class com.osohq.oso.Ffi.Query
- ForAll - Enum constant in enum com.osohq.oso.Operator
- ForbiddenException() - Constructor for exception class com.osohq.oso.Exceptions.ForbiddenException
G
- Geq - Enum constant in enum com.osohq.oso.Operator
- get() - Static method in class com.osohq.oso.Ffi
- get() - Method in class com.osohq.oso.Ffi.Polar
- get() - Method in class com.osohq.oso.Ffi.Query
- getAllowedActions(Object, Object) - Method in class com.osohq.oso.Oso
-
Return the allowed actions for the given actor and resource, if any.
- getAllowedActions(Object, Object, boolean) - Method in class com.osohq.oso.Oso
-
Deprecated.Use `authorizedActions` instead.
- getArgs() - Method in class com.osohq.oso.Expression
- getClass(String) - Method in class com.osohq.oso.Host
-
Get a registered Java class.
- getDetails() - Method in exception class com.osohq.oso.Exceptions.OsoException
- getFields() - Method in class com.osohq.oso.Pattern
- getInstance(long) - Method in class com.osohq.oso.Host
-
Get a cached Java instance.
- getJavaError(String) - Static method in class com.osohq.oso.Exceptions
- getOperator() - Method in class com.osohq.oso.Expression
- getTag() - Method in class com.osohq.oso.Pattern
- Gt - Enum constant in enum com.osohq.oso.Operator
H
- hashCode() - Method in class com.osohq.oso.Expression
- hashCode() - Method in class com.osohq.oso.Pattern
- hashCode() - Method in class com.osohq.oso.Variable
- hasInstance(long) - Method in class com.osohq.oso.Host
-
Determine if a Java instance has been cached.
- hasMoreElements() - Method in class com.osohq.oso.Query
- host - Variable in class com.osohq.oso.Polar
- Host - Class in com.osohq.oso
- Host(Ffi.Polar) - Constructor for class com.osohq.oso.Host
I
- In - Enum constant in enum com.osohq.oso.Operator
- InlineQueryFailedError(String) - Constructor for exception class com.osohq.oso.Exceptions.InlineQueryFailedError
- InstantiationError(String) - Constructor for exception class com.osohq.oso.Exceptions.InstantiationError
- InstantiationError(String, Exception) - Constructor for exception class com.osohq.oso.Exceptions.InstantiationError
- IntegerOverflow(String, Map<String, Object>) - Constructor for exception class com.osohq.oso.Exceptions.IntegerOverflow
- InvalidAttributeError(String) - Constructor for exception class com.osohq.oso.Exceptions.InvalidAttributeError
- InvalidAttributeError(String, String) - Constructor for exception class com.osohq.oso.Exceptions.InvalidAttributeError
- InvalidCallError(String) - Constructor for exception class com.osohq.oso.Exceptions.InvalidCallError
- InvalidCallError(String, String, Class<?>...) - Constructor for exception class com.osohq.oso.Exceptions.InvalidCallError
- InvalidConstructorError(String) - Constructor for exception class com.osohq.oso.Exceptions.InvalidConstructorError
- InvalidConstructorError(String, Map<String, Object>) - Constructor for exception class com.osohq.oso.Exceptions.InvalidConstructorError
- InvalidIteratorError(String) - Constructor for exception class com.osohq.oso.Exceptions.InvalidIteratorError
- InvalidIteratorError(String, Map<String, Object>) - Constructor for exception class com.osohq.oso.Exceptions.InvalidIteratorError
- InvalidToken(String, Map<String, Object>) - Constructor for exception class com.osohq.oso.Exceptions.InvalidToken
- InvalidTokenCharacter(String, Map<String, Object>) - Constructor for exception class com.osohq.oso.Exceptions.InvalidTokenCharacter
- isa(JSONObject, String) - Method in class com.osohq.oso.Host
-
Check if a Java instance is an instance of a class.
- Isa - Enum constant in enum com.osohq.oso.Operator
- isAllowed(Object, Object, Object) - Method in class com.osohq.oso.Oso
-
Submit an `allow` query to the Polar knowledge base.
- isSubclass(String, String) - Method in class com.osohq.oso.Host
-
Return true if left is a subclass (or the same class) as right.
L
- Leq - Enum constant in enum com.osohq.oso.Operator
- load(JSONArray) - Method in class com.osohq.oso.Ffi.Polar
- loadFile(String) - Method in class com.osohq.oso.Polar
-
Deprecated.
Polar.loadFile(String)
has been deprecated in favor ofPolar.loadFiles(String[])
as of the 0.20 release. Please see changelog for migration instructions: https://docs.osohq.com/project/changelogs/2021-09-15.html - loadFiles(String[]) - Method in class com.osohq.oso.Polar
-
Load Polar policy files.
- loadFilesFromResources(String...) - Method in class com.osohq.oso.Polar
-
Load Polar policy files from resources.
- loadStr(String) - Method in class com.osohq.oso.Polar
-
Load a Polar string into the KB (without filename).
- loadStr(String, String) - Method in class com.osohq.oso.Polar
-
Load a Polar string into the KB (with filename).
- Lt - Enum constant in enum com.osohq.oso.Operator
M
- main(String[]) - Static method in class com.osohq.oso.Oso
- main(String[]) - Static method in class com.osohq.oso.Polar
- makeInstance(String, List<Object>, long) - Method in class com.osohq.oso.Host
-
Make an instance of a Java class from a
List<Object>
of fields. - MissingConstructorError(String) - Constructor for exception class com.osohq.oso.Exceptions.MissingConstructorError
- Mod - Enum constant in enum com.osohq.oso.Operator
- Mul - Enum constant in enum com.osohq.oso.Operator
N
- name - Variable in class com.osohq.oso.Predicate
- Neq - Enum constant in enum com.osohq.oso.Operator
- New - Enum constant in enum com.osohq.oso.Operator
- newId() - Method in class com.osohq.oso.Ffi.Polar
- newQueryFromStr(String) - Method in class com.osohq.oso.Ffi.Polar
- newQueryFromTerm(String) - Method in class com.osohq.oso.Ffi.Polar
- nextCallResult(long) - Method in class com.osohq.oso.Query
-
Get the next JSONified Polar result of a cached method call (enumeration).
- nextElement() - Method in class com.osohq.oso.Query
- nextEvent() - Method in class com.osohq.oso.Ffi.Query
- nextInlineQuery() - Method in class com.osohq.oso.Ffi.Polar
- nextMessage() - Method in class com.osohq.oso.Ffi.Polar
- nextMessage() - Method in class com.osohq.oso.Ffi.Query
- Not - Enum constant in enum com.osohq.oso.Operator
- NotFoundException() - Constructor for exception class com.osohq.oso.Exceptions.NotFoundException
- NullByteInPolarFileError(String, Map<String, Object>) - Constructor for exception class com.osohq.oso.Exceptions.NullByteInPolarFileError
O
- OperationalError(String, Map<String, Object>) - Constructor for exception class com.osohq.oso.Exceptions.OperationalError
- operator(String, List<Object>) - Method in class com.osohq.oso.Host
- Operator - Enum in com.osohq.oso
- Or - Enum constant in enum com.osohq.oso.Operator
- Oso - Class in com.osohq.oso
- Oso() - Constructor for class com.osohq.oso.Oso
- OsoException(String) - Constructor for exception class com.osohq.oso.Exceptions.OsoException
- OsoException(String, Map<String, Object>) - Constructor for exception class com.osohq.oso.Exceptions.OsoException
P
- ParseError(String, Map<String, Object>) - Constructor for exception class com.osohq.oso.Exceptions.ParseError
- Pattern - Class in com.osohq.oso
- Pattern(String, HashMap<String, Object>) - Constructor for class com.osohq.oso.Pattern
- Polar - Class in com.osohq.oso
- Polar() - Constructor for class com.osohq.oso.Polar
- polar_application_error(Pointer, String) - Method in interface com.osohq.oso.Ffi.PolarLib
- polar_bind(Pointer, String, String) - Method in interface com.osohq.oso.Ffi.PolarLib
- polar_call_result(Pointer, long, String) - Method in interface com.osohq.oso.Ffi.PolarLib
- polar_clear_rules(Pointer) - Method in interface com.osohq.oso.Ffi.PolarLib
- polar_debug_command(Pointer, String) - Method in interface com.osohq.oso.Ffi.PolarLib
- polar_free(Pointer) - Method in interface com.osohq.oso.Ffi.PolarLib
- polar_get_external_id(Pointer) - Method in interface com.osohq.oso.Ffi.PolarLib
- polar_load(Pointer, String) - Method in interface com.osohq.oso.Ffi.PolarLib
- polar_new() - Method in interface com.osohq.oso.Ffi.PolarLib
- polar_new_query(Pointer, String, int) - Method in interface com.osohq.oso.Ffi.PolarLib
- polar_new_query_from_term(Pointer, String, int) - Method in interface com.osohq.oso.Ffi.PolarLib
- polar_next_inline_query(Pointer, int) - Method in interface com.osohq.oso.Ffi.PolarLib
- polar_next_polar_message(Pointer) - Method in interface com.osohq.oso.Ffi.PolarLib
- polar_next_query_event(Pointer) - Method in interface com.osohq.oso.Ffi.PolarLib
- polar_next_query_message(Pointer) - Method in interface com.osohq.oso.Ffi.PolarLib
- polar_query_from_repl(Pointer) - Method in interface com.osohq.oso.Ffi.PolarLib
- polar_query_source_info(Pointer) - Method in interface com.osohq.oso.Ffi.PolarLib
- polar_question_result(Pointer, long, int) - Method in interface com.osohq.oso.Ffi.PolarLib
- polar_register_constant(Pointer, String, String) - Method in interface com.osohq.oso.Ffi.PolarLib
- polar_register_mro(Pointer, String, String) - Method in interface com.osohq.oso.Ffi.PolarLib
- polarDictToJava(JSONObject) - Method in class com.osohq.oso.Host
-
Convert a JSONified Polar dictionary to a Java Map
- PolarFileExtensionError(String) - Constructor for exception class com.osohq.oso.Exceptions.PolarFileExtensionError
- PolarFileNotFoundError(String) - Constructor for exception class com.osohq.oso.Exceptions.PolarFileNotFoundError
- polarListToJava(JSONArray) - Method in class com.osohq.oso.Host
-
Convert a JSONified Polar List to a Java List
- polarNew() - Method in class com.osohq.oso.Ffi
- PolarRuntimeException(String) - Constructor for exception class com.osohq.oso.Exceptions.PolarRuntimeException
- PolarRuntimeException(String, Map<String, Object>) - Constructor for exception class com.osohq.oso.Exceptions.PolarRuntimeException
- PolarTypeError(String, Map<String, Object>) - Constructor for exception class com.osohq.oso.Exceptions.PolarTypeError
- Predicate - Class in com.osohq.oso
- Predicate(String, List<Object>) - Constructor for class com.osohq.oso.Predicate
- Print - Enum constant in enum com.osohq.oso.Operator
Q
- query(Predicate) - Method in class com.osohq.oso.Polar
-
Query for a predicate.
- query(Predicate, boolean) - Method in class com.osohq.oso.Polar
-
Query for a predicate, optionally accepting expressions in the result.
- query(Predicate, Map<String, Object>, boolean) - Method in class com.osohq.oso.Polar
-
Query for a predicate, applying bindings and optionally accepting the expression type as a result.
- query(String) - Method in class com.osohq.oso.Polar
-
Query for a predicate, parsing it first.
- query(String, boolean) - Method in class com.osohq.oso.Polar
-
Query for a predicate, parsing it first and optionally accepting an expression.
- query(String, Map<String, Object>) - Method in class com.osohq.oso.Polar
-
Query for a predicate, parsing it first and applying bindings
- query(String, Map<String, Object>, boolean) - Method in class com.osohq.oso.Polar
-
Query for a predicate, parsing it first, applying bindings and optionally accepting an expression.
- Query - Class in com.osohq.oso
- Query(Ffi.Query, Host, Map<String, Object>) - Constructor for class com.osohq.oso.Query
-
Construct a new Query object.
- query_free(Pointer) - Method in interface com.osohq.oso.Ffi.PolarLib
- queryRule(String, Object...) - Method in class com.osohq.oso.Polar
-
Query for a rule.
- queryRule(String, Map<String, Object>, Object...) - Method in class com.osohq.oso.Polar
-
Query for a rule.
- queryRuleOnce(String, Object...) - Method in class com.osohq.oso.Polar
-
Query for a rule, and check if it has any results.
- questionResult(long, int) - Method in class com.osohq.oso.Ffi.Query
R
- registerClass(Class<?>) - Method in class com.osohq.oso.Polar
-
Register a Java class with Polar.
- registerClass(Class<?>, String) - Method in class com.osohq.oso.Polar
-
Register a Java class with Polar using an alias.
- registerConstant(Object, String) - Method in class com.osohq.oso.Polar
-
Registers `value` as a Polar constant variable called `name`.
- registerConstant(String, String) - Method in class com.osohq.oso.Ffi.Polar
- registerMro(String, String) - Method in class com.osohq.oso.Ffi.Polar
- registerMros() - Method in class com.osohq.oso.Host
-
Register a list of base classes (MRO list) for all registered classes.
- Rem - Enum constant in enum com.osohq.oso.Operator
- repl() - Method in class com.osohq.oso.Polar
-
Start the Polar REPL.
- repl(String[]) - Method in class com.osohq.oso.Polar
-
Load the given files and start the Polar REPL.
- result_free(Pointer) - Method in interface com.osohq.oso.Ffi.PolarLib
- results() - Method in class com.osohq.oso.Query
-
Get all query results
S
- setAcceptExpression(boolean) - Method in class com.osohq.oso.Host
- setArgs(List<Object>) - Method in class com.osohq.oso.Expression
- setFields(HashMap<String, Object>) - Method in class com.osohq.oso.Pattern
- setOperator(Operator) - Method in class com.osohq.oso.Expression
- setReadAction(Object) - Method in class com.osohq.oso.Oso
-
Override the "read" action, which is used to differentiate between a `NotFoundException` and a `ForbiddenException` on authorization failures.
- setTag(String) - Method in class com.osohq.oso.Pattern
- source() - Method in class com.osohq.oso.Ffi.Query
- Source - Class in com.osohq.oso
- Source(String, String) - Constructor for class com.osohq.oso.Source
- StackOverflowError(String, Map<String, Object>) - Constructor for exception class com.osohq.oso.Exceptions.StackOverflowError
- string_free(Pointer) - Method in interface com.osohq.oso.Ffi.PolarLib
- stringFree(Pointer) - Method in class com.osohq.oso.Ffi
- Sub - Enum constant in enum com.osohq.oso.Operator
- subspecializer(long, String, String) - Method in class com.osohq.oso.Host
-
Check if a class specializer is more specific than another class specializer.
T
- toJava(JSONObject) - Method in class com.osohq.oso.Host
-
Turn a Polar term passed across the FFI boundary into a Java Object.
- toJSON() - Method in class com.osohq.oso.Source
- toPolarTerm(Object) - Method in class com.osohq.oso.Host
-
Convert Java Objects to Polar (JSON) terms.
- toString() - Method in class com.osohq.oso.Variable
- TypeConstraint - Class in com.osohq.oso
- TypeConstraint(Object, String) - Constructor for class com.osohq.oso.TypeConstraint
U
- UNEXPECTED_EXPRESSION_MESSAGE - Static variable in class com.osohq.oso.Exceptions
- UnexpectedPolarTypeError(String) - Constructor for exception class com.osohq.oso.Exceptions.UnexpectedPolarTypeError
- Unify - Enum constant in enum com.osohq.oso.Operator
- UnimplementedOperation(String) - Constructor for exception class com.osohq.oso.Exceptions.UnimplementedOperation
- UnknownError(String, Map<String, Object>) - Constructor for exception class com.osohq.oso.Exceptions.UnknownError
- UnrecognizedEOF(String, Map<String, Object>) - Constructor for exception class com.osohq.oso.Exceptions.UnrecognizedEOF
- UnrecognizedToken(String, Map<String, Object>) - Constructor for exception class com.osohq.oso.Exceptions.UnrecognizedToken
- UnregisteredClassError(String) - Constructor for exception class com.osohq.oso.Exceptions.UnregisteredClassError
- UnregisteredInstanceError(long) - Constructor for exception class com.osohq.oso.Exceptions.UnregisteredInstanceError
- UnsupportedError(String, Map<String, Object>) - Constructor for exception class com.osohq.oso.Exceptions.UnsupportedError
V
- ValidationError(String, Map<String, Object>) - Constructor for exception class com.osohq.oso.Exceptions.ValidationError
- valueOf(String) - Static method in enum com.osohq.oso.Operator
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.osohq.oso.Operator
-
Returns an array containing the constants of this enum type, in the order they are declared.
- Variable - Class in com.osohq.oso
- Variable(String) - Constructor for class com.osohq.oso.Variable
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form