Class RestrictionDefinitionImpl
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionDefinitionImpl
-
- All Implemented Interfaces:
RestrictionDefinition
public class RestrictionDefinitionImpl extends Object implements RestrictionDefinition
Default implementation of theRestrictionDefinition
interface.
-
-
Constructor Summary
Constructors Constructor Description RestrictionDefinitionImpl(@NotNull String name, Type<?> type, boolean isMandatory)
Create a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
@NotNull String
getName()
The internal oak name of this restriction definition.@NotNull Type<?>
getRequiredType()
The required type as defined by this definition.int
hashCode()
boolean
isMandatory()
Indicates if this restriction is mandatory.
-
-
-
Constructor Detail
-
RestrictionDefinitionImpl
public RestrictionDefinitionImpl(@NotNull @NotNull String name, 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 JCRPropertyType
exceptPropertyType.UNDEFINED
is allowed.isMandatory
- A boolean indicating if the restriction is mandatory.
-
-
Method Detail
-
getName
@NotNull public @NotNull String getName()
Description copied from interface:RestrictionDefinition
The internal oak name of this restriction definition.- Specified by:
getName
in interfaceRestrictionDefinition
- Returns:
- The oak name.
-
getRequiredType
@NotNull public @NotNull Type<?> 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.
-
-