Class Selector

java.lang.Object
org.gridgain.internal.rbac.privileges.Selector

public class Selector extends Object
Selector is a "pointer" to a specific object in the system. Given a privilege READ_SCHEMA on PUBLIC, PUBLIC is a selector. Or given a privilege READ_TABLE on PUBLIC.CITIES, PUBLIC.CITIES is a selector. Deployment unit id and user are also selectors.
  • Method Details

    • builder

      public static Selector.Builder builder()
    • schema

      public static Selector schema(String schema)
      Creates selector to schema.
    • table

      public static Selector table(String schema, String table)
      Creates selector to table.
    • view

      public static Selector view(String schema, String view)
      Creates selector to view.
    • sequence

      public static Selector sequence(String schema, String sequence)
      Creates selector to sequence.
    • sequence

      public static Selector sequence(String qualifiedName)
      Creates selector to sequence.
    • deploymentUnit

      public static Selector deploymentUnit(String id)
      Creates selector to deployment unit.
    • cluster

      public static Selector cluster()
      Creates selector to cluster.
    • user

      public static Selector user(String username)
      Creates selector to user.
    • objectType

      public ObjectType objectType()
      Returns target object type.
    • schemaName

      @Nullable public @Nullable String schemaName()
      Returns parent object name.
    • objectName

      @Nullable public @Nullable String objectName()
      Returns child object name.
    • toRawString

      @Nullable public @Nullable String toRawString()
      Returns raw string representation of selector.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object