Class ImmutablePrivilegeDefinition

  • All Implemented Interfaces:
    PrivilegeDefinition

    public final class ImmutablePrivilegeDefinition
    extends java.lang.Object
    implements PrivilegeDefinition
    Default implementation of the PrivilegeDefinition interface.
    • Constructor Summary

      Constructors 
      Constructor Description
      ImmutablePrivilegeDefinition​(@NotNull java.lang.String name, boolean isAbstract, @Nullable java.lang.Iterable<java.lang.String> declaredAggregateNames)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      @NotNull java.util.Set<java.lang.String> getDeclaredAggregateNames()
      Returns the internal names of the declared aggregated privileges or an empty array if the privilege defined by this definition isn't an aggregate.
      @NotNull java.lang.String getName()
      The internal name of this privilege.
      int hashCode()  
      boolean isAbstract()
      Returns true if the privilege described by this definition is abstract.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ImmutablePrivilegeDefinition

        public ImmutablePrivilegeDefinition​(@NotNull
                                            @NotNull java.lang.String name,
                                            boolean isAbstract,
                                            @Nullable
                                            @Nullable java.lang.Iterable<java.lang.String> declaredAggregateNames)
    • Method Detail

      • getName

        @NotNull
        public @NotNull java.lang.String getName()
        Description copied from interface: PrivilegeDefinition
        The internal name of this privilege.
        Specified by:
        getName in interface PrivilegeDefinition
        Returns:
        the internal name.
      • isAbstract

        public boolean isAbstract()
        Description copied from interface: PrivilegeDefinition
        Returns true if the privilege described by this definition is abstract.
        Specified by:
        isAbstract in interface PrivilegeDefinition
        Returns:
        true if the resulting privilege is abstract; false otherwise.
      • getDeclaredAggregateNames

        @NotNull
        public @NotNull java.util.Set<java.lang.String> getDeclaredAggregateNames()
        Description copied from interface: PrivilegeDefinition
        Returns the internal names of the declared aggregated privileges or an empty array if the privilege defined by this definition isn't an aggregate.
        Specified by:
        getDeclaredAggregateNames in interface PrivilegeDefinition
        Returns:
        The internal names of the aggregated privileges or an empty array.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object