Class PartitionedTableTicketTransformer

java.lang.Object
io.deephaven.enterprise.acl.transform.PartitionedTableTicketTransformer
All Implemented Interfaces:
TicketTransformer

public class PartitionedTableTicketTransformer extends Object implements TicketTransformer
A TicketTransformer that handles transformation of PartitionedTables to apply ACLs at the edge.

The ACLs (both row and column) are applied to each constituent of the PartitionedTable using PartitionedTable.transform(UnaryOperator, NotificationQueue.Dependency...), replicating the semantics of TableTicketTransformer for each constituent table.

  • Constructor Details

    • PartitionedTableTicketTransformer

      public PartitionedTableTicketTransformer(@NotNull @NotNull AclSupport support)
  • Method Details

    • priority

      public int priority()
      Description copied from interface: TicketTransformer
      The relative priority of the transformer. Lower numbers are higher priority, 0 is the lowest allowed value.
      Specified by:
      priority in interface TicketTransformer
      Returns:
      the priority of the transformer
    • canTransform

      public <T> boolean canTransform(T value, boolean hasBeenProcessed)
      Description copied from interface: TicketTransformer
      Check if this transformer can apply a transformation to the specified value.
      Specified by:
      canTransform in interface TicketTransformer
      Type Parameters:
      T - the type
      Parameters:
      value - the value to transform
      hasBeenProcessed - if this value has already been processed by another transformer
      Returns:
      true if this transformer can apply a transformation
    • transform

      public <T> T transform(@NotNull @NotNull DheAuthContext authContext, T value)
      Description copied from interface: TicketTransformer
      Transform the specified object using the auth context.
      Specified by:
      transform in interface TicketTransformer
      Type Parameters:
      T - The type.
      Parameters:
      authContext - the authentication context
      value - the value to transform
      Returns:
      the transformed value
    • getAllowedGroups

      public <T> Set<String> getAllowedGroups(@Nullable T value)
      Description copied from interface: TicketTransformer
      Get a set of groups that may access the specified object.
      Specified by:
      getAllowedGroups in interface TicketTransformer
      Type Parameters:
      T - The type
      Parameters:
      value - the object.
      Returns:
      a set of groups that is allowed to access the object.
    • toString

      public String toString()
      Overrides:
      toString in class Object