java.lang.Object
org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionImpl
All Implemented Interfaces:
Restriction

public class RestrictionImpl extends Object implements Restriction
RestrictionImpl
  • Constructor Details

    • RestrictionImpl

      public RestrictionImpl(@NotNull @NotNull org.apache.jackrabbit.oak.api.PropertyState property, @NotNull @NotNull RestrictionDefinition def)
    • RestrictionImpl

      public RestrictionImpl(@NotNull @NotNull org.apache.jackrabbit.oak.api.PropertyState property, boolean isMandatory)
  • Method Details

    • getDefinition

      @NotNull public @NotNull RestrictionDefinition getDefinition()
      Description copied from interface: Restriction
      Returns the underlying restriction definition.
      Specified by:
      getDefinition in interface Restriction
      Returns:
      the restriction definition that applies to this restriction.
    • getProperty

      @NotNull public @NotNull org.apache.jackrabbit.oak.api.PropertyState getProperty()
      Description copied from interface: Restriction
      The OAK property state associated with this restriction.
      Specified by:
      getProperty in interface Restriction
      Returns:
      An PropertyState.
    • hashCode

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

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