Class FacetRule

java.lang.Object
org.onehippo.repository.security.domain.FacetRule

public final class FacetRule extends Object
  • Constructor Details

    • FacetRule

      public FacetRule(String facet, String value, boolean equal, boolean optional, int type)
  • Method Details

    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object