Class RestrictionDefinitionImpl
java.lang.Object
org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionDefinitionImpl
- All Implemented Interfaces:
RestrictionDefinition
Default implementation of the
RestrictionDefinition interface.-
Constructor Summary
ConstructorsConstructorDescriptionRestrictionDefinitionImpl(@NotNull String name, org.apache.jackrabbit.oak.api.Type<?> type, boolean isMandatory) Create a new instance. -
Method Summary
-
Constructor Details
-
RestrictionDefinitionImpl
public RestrictionDefinitionImpl(@NotNull @NotNull String name, org.apache.jackrabbit.oak.api.Type<?> type, boolean isMandatory) Create a new instance.- Parameters:
name- The oak name of the restriction definition.type- The required type of this definition. Any valid JCRPropertyTypeexceptPropertyType.UNDEFINEDis allowed.isMandatory- A boolean indicating if the restriction is mandatory.
-
-
Method Details
-
getName
Description copied from interface:RestrictionDefinitionThe internal oak name of this restriction definition.- Specified by:
getNamein interfaceRestrictionDefinition- Returns:
- The oak name.
-
getRequiredType
@NotNull public @NotNull org.apache.jackrabbit.oak.api.Type<?> getRequiredType()Description copied from interface:RestrictionDefinitionThe required type as defined by this definition.- Specified by:
getRequiredTypein interfaceRestrictionDefinition- Returns:
- The required type which must be a valid
PropertyType.
-
isMandatory
public boolean isMandatory()Description copied from interface:RestrictionDefinitionIndicates if this restriction is mandatory.- Specified by:
isMandatoryin interfaceRestrictionDefinition- Returns:
trueif this restriction is mandatory;falseotherwise.
-
hashCode
public int hashCode() -
equals
-