Class FacetRule
- java.lang.Object
-
- org.onehippo.repository.security.domain.FacetRule
-
public final class FacetRule extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getFacet()
Get the string representation of the facetint
getType()
Get the PropertyType of the facetString
getValue()
The value of the facet rule to matchint
hashCode()
boolean
isEqual()
Check for equality or inequalityboolean
isOptional()
When the facet is optional, it does not need to be present on a node for the rule to match.String
toString()
-
-
-
Method Detail
-
getFacet
public String getFacet()
Get the string representation of the facet- Returns:
- the facet
-
getValue
public String getValue()
The value of the facet rule to match- Returns:
- the value
-
isEqual
public boolean isEqual()
Check for equality or inequality- Returns:
- true if to rule has to check for equality
-
isOptional
public boolean isOptional()
When the facet is optional, it does not need to be present on a node for the rule to match. If it is present on the node, it's value must conform to the #isEqual and #getValue.When the facet is not optional, the rule only matches when the facet is available on the node.
- Returns:
- true if the facet is optional
-
getType
public int getType()
Get the PropertyType of the facet- Returns:
- the type
-
-