Interface RestrictionPattern
-
- All Known Implementing Classes:
CompositePattern
public interface RestrictionPatternInterface used to verify if a givenrestrictionapplies to a given item or path.
-
-
Field Summary
Fields Modifier and Type Field Description static RestrictionPatternEMPTYDefault implementation of theRestrictionPatternthat always returnstrueand thus matches all items or paths.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanmatches()Returnstrueif the underlying restriction matches for repository level permissions.booleanmatches(@NotNull java.lang.String path)Returnstrueif the underlying restriction matches the specified path.booleanmatches(@NotNull Tree tree, @Nullable PropertyState property)Returnstrueif the underlying restriction matches the specified tree or property state.
-
-
-
Field Detail
-
EMPTY
static final RestrictionPattern EMPTY
Default implementation of theRestrictionPatternthat always returnstrueand thus matches all items or paths.
-
-
Method Detail
-
matches
boolean matches(@NotNull @NotNull Tree tree, @Nullable @Nullable PropertyState property)Returnstrueif the underlying restriction matches the specified tree or property state.- Parameters:
tree- The target tree or the parent of the target property.property- The target property state ornullif the target item is a tree.- Returns:
trueif the underlying restriction matches the specified tree or property state;falseotherwise.
-
matches
boolean matches(@NotNull @NotNull java.lang.String path)Returnstrueif the underlying restriction matches the specified path.- Parameters:
path- The path of the target item.- Returns:
trueif the underlying restriction matches the specified path;falseotherwise.
-
matches
boolean matches()
Returnstrueif the underlying restriction matches for repository level permissions.- Returns:
trueif the underlying restriction matches for repository level permissions that are not associated with a path or a dedicated item;falseotherwise.
-
-