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 boolean
equals(java.lang.Object o)
@NotNull RestrictionDefinition
getDefinition()
Returns the underlying restriction definition.@NotNull PropertyState
getProperty()
The OAK property state associated with this restriction.int
hashCode()
-
-
-
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:Restriction
Returns the underlying restriction definition.- Specified by:
getDefinition
in interfaceRestriction
- Returns:
- the restriction definition that applies to this restriction.
-
getProperty
@NotNull public @NotNull PropertyState getProperty()
Description copied from interface:Restriction
The OAK property state associated with this restriction.- Specified by:
getProperty
in interfaceRestriction
- Returns:
- An
PropertyState
.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
-