Class PluginOptions
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a function to be applied to objects returned to a user.static io.deephaven.plugin.options.ImmutablePluginOptions.Builderbuilder()abstract ColumnExpressionValidatorReturnstrueif the user should be permitted access to the given object.
-
Constructor Details
-
PluginOptions
public PluginOptions()
-
-
Method Details
-
columnExpressionValidator
- Returns:
- the
ColumnExpressionValidatorto use for user-provided formulas.
-
isAccessPermitted
Returnstrueif the user should be permitted access to the given object.Callers should still apply
authorizationTransformer()before exporting an object to a user. -
authorizationTransformer
Returns a function to be applied to objects returned to a user.Plugins may provide objects to the user by invoking
ObjectType.MessageStream.onData(java.nio.ByteBuffer, java.lang.Object...)with a number of arguments. These arguments are exported via an export ticket. A plugin may specify aObjectType.AuthorizationExportBehavior. IfObjectType.AuthorizationExportBehavior.TRANSFORMis set then the server automatically transforms objects before sending them to a client. If the behavior isObjectType.AuthorizationExportBehavior.MANUAL, then the plugin must apply the authorization transform first - before passing it to the onData callback. If the AuthorizationTransformer returns null, then the user is not permitted to access the object. If the behavior isObjectType.AuthorizationExportBehavior.UNSET, the behavior is dependent on the server's default.- Returns:
- a
PluginOptions.AuthorizationTransformerthat should be used to transform objects before providing them to a user.
-
builder
public static io.deephaven.plugin.options.ImmutablePluginOptions.Builder builder()
-