public class ResourceTypePattern extends Object implements org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionPattern
RestrictionPattern
interface that returns true
if the resource type of the target tree (or the
parent of a target property) is contained in the configured resource type.Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getResourceTypeFromTree(org.apache.jackrabbit.oak.api.Tree treeToCheck) |
int |
hashCode() |
boolean |
matches() |
boolean |
matches(@NotNull String path) |
boolean |
matches(@NotNull org.apache.jackrabbit.oak.api.Tree tree,
@Nullable org.apache.jackrabbit.oak.api.PropertyState property) |
String |
toString() |
public boolean matches(@NotNull @NotNull org.apache.jackrabbit.oak.api.Tree tree, @Nullable @Nullable org.apache.jackrabbit.oak.api.PropertyState property)
matches
in interface org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionPattern
public String getResourceTypeFromTree(org.apache.jackrabbit.oak.api.Tree treeToCheck)
public boolean matches(@NotNull @NotNull String path)
matches
in interface org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionPattern
public boolean matches()
matches
in interface org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionPattern
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.