Class AclHelper

java.lang.Object
io.deephaven.enterprise.acl.impl.AclHelper

public class AclHelper extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static @NotNull AclFilterGenerator
    convertFilterGenerator(io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.permissions.FilterGenerator fg)
    Convert the specified Enterprise FilterGenerator into a DnD AclFilterGenerator
    createDisjunctiveFilter(@NotNull Collection<WhereFilter>[] filtersToApply)
    Create single where filter in Disjunctive Normal Form of the input filter collections
    static @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.tables.databases.Database
    Get the Database wrapper to use for Enterprise integration
    static boolean
     
    static @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.permissions.PermissionFilterProvider
    Get the PermissionFilterProvider to use for Enterprise integration
    static boolean
    If any ACLs have been applied, then any exported table must have ACLs applied.
    static void
    Note that ACLs have been applied and our return policy has changed.
    static void
    setDatabaseWrapper(@NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.tables.databases.Database enterpriseDatabase)
    Set the Enterprise Database to use for integrating with Enterprise classes
    static void
    setPermissionFilterProvider(@NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.permissions.PermissionFilterProvider pfp)
    Set the Enterprise PermissionFilterProvider to be used when calling enterprse acl code
    static List<Filter>
    splitAndLinearizeAndFilters(@NotNull Filter filterArg)
    If a filter is a conjunction of filters (an "and" of filters), decompose it in a list of element filters.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AclHelper

      public AclHelper()
  • Method Details

    • setAclsApplied

      public static void setAclsApplied()
      Note that ACLs have been applied and our return policy has changed. This cannot be undone
    • requireAclsToExport

      public static boolean requireAclsToExport()
      If any ACLs have been applied, then any exported table must have ACLs applied.

      When no ACLs are defined, the behavior of the system is controlled by the "PersistentQuery.openSharingDefault" property. If set to true, then persistent queries that are shared without specifying table ACLs fail open, making it simple to shared PQ work product with others. If set to false, then they fail closed and ACLs must be added to permit any sharing.

      Returns:
      true if an object must have ACLs defined to be exported
    • setPermissionFilterProvider

      public static void setPermissionFilterProvider(@NotNull @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.permissions.PermissionFilterProvider pfp)
      Set the Enterprise PermissionFilterProvider to be used when calling enterprse acl code
      Parameters:
      pfp - the permission filter provider
    • permissionFilterProvider

      @NotNull public static @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.permissions.PermissionFilterProvider permissionFilterProvider()
      Get the PermissionFilterProvider to use for Enterprise integration
      Returns:
      the permission filter provider
    • setDatabaseWrapper

      public static void setDatabaseWrapper(@NotNull @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.tables.databases.Database enterpriseDatabase)
      Set the Enterprise Database to use for integrating with Enterprise classes
      Parameters:
      enterpriseDatabase - - The Database
    • databaseWrapper

      @NotNull public static @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.tables.databases.Database databaseWrapper()
      Get the Database wrapper to use for Enterprise integration
      Returns:
      the database wrapper
    • convertFilterGenerator

      @NotNull public static @NotNull AclFilterGenerator convertFilterGenerator(io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.permissions.FilterGenerator fg)
      Convert the specified Enterprise FilterGenerator into a DnD AclFilterGenerator
      Parameters:
      fg - the generator to convert
      Returns:
      the converted filter generator
    • createDisjunctiveFilter

      public static WhereFilter createDisjunctiveFilter(@NotNull @NotNull Collection<WhereFilter>[] filtersToApply)
      Create single where filter in Disjunctive Normal Form of the input filter collections
      Parameters:
      filtersToApply - the filters
      Returns:
      a single Filter combining the inputs in Disjunctive Normal Form
    • splitAndLinearizeAndFilters

      public static List<Filter> splitAndLinearizeAndFilters(@NotNull @NotNull Filter filterArg)
      If a filter is a conjunction of filters (an "and" of filters), decompose it in a list of element filters.
      Parameters:
      filterArg - The filter to break down in componets
      Returns:
      A list of filters whose conjunction represent the passed filter.
    • isNullOrTrueFilter

      public static boolean isNullOrTrueFilter(Filter filter)