Class RestrictionImpl
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionImpl
-
- All Implemented Interfaces:
Restriction
public class RestrictionImpl extends java.lang.Object implements Restriction
RestrictionImpl
-
-
Constructor Summary
Constructors Constructor Description RestrictionImpl(@NotNull PropertyState property, boolean isMandatory)RestrictionImpl(@NotNull PropertyState property, @NotNull RestrictionDefinition def)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)@NotNull RestrictionDefinitiongetDefinition()Returns the underlying restriction definition.@NotNull PropertyStategetProperty()The OAK property state associated with this restriction.inthashCode()
-
-
-
Constructor Detail
-
RestrictionImpl
public RestrictionImpl(@NotNull @NotNull PropertyState property, @NotNull @NotNull RestrictionDefinition def)
-
RestrictionImpl
public RestrictionImpl(@NotNull @NotNull PropertyState property, boolean isMandatory)
-
-
Method Detail
-
getDefinition
@NotNull public @NotNull RestrictionDefinition getDefinition()
Description copied from interface:RestrictionReturns the underlying restriction definition.- Specified by:
getDefinitionin interfaceRestriction- Returns:
- the restriction definition that applies to this restriction.
-
getProperty
@NotNull public @NotNull PropertyState getProperty()
Description copied from interface:RestrictionThe OAK property state associated with this restriction.- Specified by:
getPropertyin interfaceRestriction- Returns:
- An
PropertyState.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-