Package io.deephaven.enterprise.acl.impl
Class EnterpriseAclAdapterProvider
java.lang.Object
io.deephaven.enterprise.acl.impl.EnterpriseAclAdapterProvider
- All Implemented Interfaces:
SourceAclProvider
An
SourceAclProvider
that converts acls derived from Enterprise PermissionFilterProvider
into
Community equivalents.-
Constructor Summary
ConstructorsConstructorDescriptionEnterpriseAclAdapterProvider
(@NotNull io.deephaven.enterprise.auth.UserContext userContext, @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.permissions.PermissionFilterProvider pfp) -
Method Summary
Modifier and TypeMethodDescriptiongetColumnFilters
(@NotNull AclSupport support, @NotNull String namespace, @NotNull String tableName, @NotNull String[] columnNames, boolean isRefreshing) Get the column ACLs to apply to requested tables.getRowFilters
(@NotNull AclSupport support, @NotNull String namespace, @NotNull String tableName, boolean isRefreshing) Get the set ofWhereFilter
s that should be disjunctively applied to requested tables.
-
Constructor Details
-
EnterpriseAclAdapterProvider
public EnterpriseAclAdapterProvider(@NotNull @NotNull io.deephaven.enterprise.auth.UserContext userContext, @NotNull @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.permissions.PermissionFilterProvider pfp)
-
-
Method Details
-
getRowFilters
public Collection<WhereFilter>[] getRowFilters(@NotNull @NotNull AclSupport support, @NotNull @NotNull String namespace, @NotNull @NotNull String tableName, boolean isRefreshing) Description copied from interface:SourceAclProvider
Get the set ofWhereFilter
s that should be disjunctively applied to requested tables.- Specified by:
getRowFilters
in interfaceSourceAclProvider
- Parameters:
support
- the support objectnamespace
- the namespace of the tabletableName
- the name of the tableisRefreshing
- if the table is refreshing- Returns:
- the collection of row ACLs to be disjunctively applied to the table.
-
getColumnFilters
public ColumnAcl getColumnFilters(@NotNull @NotNull AclSupport support, @NotNull @NotNull String namespace, @NotNull @NotNull String tableName, @NotNull @NotNull String[] columnNames, boolean isRefreshing) Description copied from interface:SourceAclProvider
Get the column ACLs to apply to requested tables.- Specified by:
getColumnFilters
in interfaceSourceAclProvider
- Parameters:
support
- the support objectnamespace
- the namespace of the tabletableName
- the name of the tablecolumnNames
- the columns to fetch ACLs forisRefreshing
- if the table is refreshing- Returns:
- the column ACLs
-