Class FacetRule
java.lang.Object
org.onehippo.repository.security.domain.FacetRule
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getFacet()
Get the string representation of the facetint
getType()
Get the PropertyType of the facetgetValue()
The value of the facet rule to matchint
hashCode()
boolean
isEqual()
Check for equality or inequalityboolean
When the facet is optional, it does not need to be present on a node for the rule to match.toString()
-
Constructor Details
-
FacetRule
-
-
Method Details
-
getFacet
Get the string representation of the facet- Returns:
- the facet
-
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
-
toString
-
equals
-
hashCode
public int hashCode()
-