Uses of Class
com.osohq.oso.Exceptions.OsoException
-
Uses of Exceptions.OsoException in com.osohq.oso
Subclasses of Exceptions.OsoException in com.osohq.osoModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classExpected to find an FFI error to convert into a Java error but found none.static classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classGeneric runtime exception.static classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classGeneric Polar Validation exception.Methods in com.osohq.oso that return Exceptions.OsoExceptionModifier and TypeMethodDescriptionstatic Exceptions.OsoExceptionExceptions.getJavaError(String polarError) Methods in com.osohq.oso that throw Exceptions.OsoExceptionModifier and TypeMethodDescriptionprotected voidFfi.Query.applicationError(String message) voidvoidEnsure that `actor` is allowed to perform `action` on `resource`.Oso.authorizedActions(Object actor, Object resource) Oso.authorizedActions(Object actor, Object resource, boolean allowWildcard) Determine the actions `actor` is allowed to take on `resource`.Oso.authorizedFields(Object actor, Object action, Object resource) Oso.authorizedFields(Object actor, Object action, Object resource, boolean allowWildcard) Determine the fields of `resource` on which `actor` is allowed to perform `action`.voidOso.authorizeField(Object actor, Object action, Object resource, Object field) Ensure that `actor` is allowed to perform `action` on a given `resource`'s `field`.voidOso.authorizeRequest(Object actor, Object request) Ensure that `actor` is allowed to send `request` to the server.protected voidHost.cacheInstance(Object instance, Long id) Cache an instance of a Java class.protected voidFfi.Query.callResult(long call_id, String value) jnr.ffi.PointerFfi.CResultPointer.check()voidFfi.CResultVoid.check()protected voidFfi.Polar.clearRules()voidPolar.clearRules()Clear the rules from the KB, but maintain all registered classes and calls.protected voidFfi.Query.debugCommand(String value) Oso.getAllowedActions(Object actor, Object resource) Return the allowed actions for the given actor and resource, if any.Oso.getAllowedActions(Object actor, Object resource, boolean allowWildcard) Deprecated.Use `authorizedActions` instead.booleanCheck if a Java instance is an instance of a class.booleanSubmit an `allow` query to the Polar knowledge base.protected voidFfi.Polar.load(org.json.JSONArray sources) voidDeprecated.Polar.loadFile(String)has been deprecated in favor ofPolar.loadFiles(String[])as of the 0.20 release.voidLoad Polar policy files.voidPolar.loadFilesFromResources(String... filenames) Load Polar policy files from resources.voidLoad a Polar string into the KB (without filename).voidLoad a Polar string into the KB (with filename).static voidstatic voidHost.makeInstance(String className, List<Object> initargs, long id) Make an instance of a Java class from aList<Object>of fields.protected Ffi.QueryFfi.Polar.newQueryFromStr(String queryStr) protected Ffi.QueryFfi.Polar.newQueryFromTerm(String queryTerm) protected org.json.JSONObjectQuery.nextCallResult(long callId) Get the next JSONified Polar result of a cached method call (enumeration).protected StringFfi.Query.nextEvent()protected Ffi.QueryFfi.Polar.nextInlineQuery()protected jnr.ffi.PointerFfi.Polar.nextMessage()protected jnr.ffi.PointerFfi.Query.nextMessage()booleanHost.polarDictToJava(org.json.JSONObject dict) Convert a JSONified Polar dictionary to a Java MapHost.polarListToJava(org.json.JSONArray list) Convert a JSONified Polar List to a Java ListQuery for a predicate.Query for a predicate, optionally accepting expressions in the result.Query for a predicate, applying bindings and optionally accepting the expression type as a result.Query for a predicate, parsing it first.Query for a predicate, parsing it first and optionally accepting an expression.Query for a predicate, parsing it first and applying bindingsQuery for a predicate, parsing it first, applying bindings and optionally accepting an expression.Query for a rule.Query for a rule.booleanPolar.queryRuleOnce(String rule, Object... args) Query for a rule, and check if it has any results.protected voidFfi.Query.questionResult(long call_id, int result) voidPolar.registerClass(Class<?> cls) Register a Java class with Polar.voidPolar.registerClass(Class<?> cls, String name) Register a Java class with Polar using an alias.protected voidFfi.Polar.registerConstant(String value, String name) voidPolar.registerConstant(Object value, String name) Registers `value` as a Polar constant variable called `name`.protected voidFfi.Polar.registerMro(String name, String mro) voidPolar.repl()Start the Polar REPL.voidLoad the given files and start the Polar REPL.protected StringFfi.Query.source()Host.toJava(org.json.JSONObject term) Turn a Polar term passed across the FFI boundary into a Java Object.org.json.JSONObjectHost.toPolarTerm(Object value) Convert Java Objects to Polar (JSON) terms.Constructors in com.osohq.oso that throw Exceptions.OsoException