public interface RestrictionPattern
restriction
applies to a given
item or path.Modifier and Type | Field and Description |
---|---|
static RestrictionPattern |
EMPTY
Default implementation of the
RestrictionPattern that always
returns true and thus matches all items or paths. |
Modifier and Type | Method and Description |
---|---|
boolean |
matches()
Returns
true if the underlying restriction matches for repository
level permissions. |
boolean |
matches(java.lang.String path)
Returns
true if the underlying restriction matches the specified
path. |
boolean |
matches(Tree tree,
PropertyState property)
Returns
true if the underlying restriction matches the specified
tree or property state. |
static final RestrictionPattern EMPTY
RestrictionPattern
that always
returns true
and thus matches all items or paths.boolean matches(Tree tree, PropertyState property)
true
if the underlying restriction matches the specified
tree or property state.tree
- The target tree or the parent of the target property.property
- The target property state or null
if the target
item is a tree.true
if the underlying restriction matches the specified
tree or property state; false
otherwise.boolean matches(java.lang.String path)
true
if the underlying restriction matches the specified
path.path
- The path of the target item.true
if the underlying restriction matches the specified
path; false
otherwise.boolean matches()
true
if the underlying restriction matches for repository
level permissions.true
if the underlying restriction matches for repository
level permissions that are not associated with a path or a dedicated item;
false
otherwise."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"