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, Type<?> type, boolean isMandatory) Create a new instance. -
Method Summary
-
Constructor Details
-
RestrictionDefinitionImpl
Create a new instance.- Parameters:
name
- The oak name of the restriction definition.type
- The required type of this definition. Any valid JCRPropertyType
exceptPropertyType.UNDEFINED
is allowed.isMandatory
- A boolean indicating if the restriction is mandatory.
-
-
Method Details
-
getName
Description copied from interface:RestrictionDefinition
The internal oak name of this restriction definition.- Specified by:
getName
in interfaceRestrictionDefinition
- Returns:
- The oak name.
-
getRequiredType
Description copied from interface:RestrictionDefinition
The required type as defined by this definition.- Specified by:
getRequiredType
in interfaceRestrictionDefinition
- Returns:
- The required type which must be a valid
PropertyType
.
-
isMandatory
public boolean isMandatory()Description copied from interface:RestrictionDefinition
Indicates if this restriction is mandatory.- Specified by:
isMandatory
in interfaceRestrictionDefinition
- Returns:
true
if this restriction is mandatory;false
otherwise.
-
hashCode
public int hashCode() -
equals
-