Class GrouperJexlScriptPart

java.lang.Object
edu.internet2.middleware.grouper.abac.GrouperJexlScriptPart

public class GrouperJexlScriptPart extends Object
  • Constructor Details

    • GrouperJexlScriptPart

      public GrouperJexlScriptPart()
  • Method Details

    • toString

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

      protected GrouperJexlScriptPart clone()
      Overrides:
      clone in class Object
    • getArguments

      public List<MultiKey> getArguments()
      arguments for SQL (bind vars)
      Returns:
    • setArguments

      public void setArguments(List<MultiKey> arguments)
      arguments for SQL (bind vars)
      Parameters:
      arguments -
    • getWhereClause

      public StringBuilder getWhereClause()
      where clause for SQL
      Returns:
    • setWhereClause

      public void setWhereClause(StringBuilder whereClause)
      where clause for SQL
      Parameters:
      whereClause -
    • getDisplayDescription

      public StringBuilder getDisplayDescription()
      description of this scriptlet
      Returns:
    • setDisplayDescription

      public void setDisplayDescription(StringBuilder displayDescription)
      description of this scriptlet
      Parameters:
      displayDescription -
    • getPopulationCount

      public int getPopulationCount()
    • setPopulationCount

      public void setPopulationCount(int populationCount)
    • isContainsSubject

      public boolean isContainsSubject()
    • setContainsSubject

      public void setContainsSubject(boolean containsSubject)
    • isNegated

      public boolean isNegated()
    • setNegated

      public void setNegated(boolean negated)
    • getConnective

      public GrouperJexlScriptPart.Connective getConnective()
    • setConnective

      public void setConnective(GrouperJexlScriptPart.Connective connective)
    • isRowInnerOr

      public boolean isRowInnerOr()
    • setRowInnerOr

      public void setRowInnerOr(boolean rowInnerOr)
    • getParentPart

      public GrouperJexlScriptPart getParentPart()
    • setParentPart

      public void setParentPart(GrouperJexlScriptPart parentPart)
    • isTerseUnsupportedOperator

      public boolean isTerseUnsupportedOperator()
    • setTerseUnsupportedOperator

      public void setTerseUnsupportedOperator(boolean terseUnsupportedOperator)
    • isSkipInVisualizationTree

      public boolean isSkipInVisualizationTree()
    • setSkipInVisualizationTree

      public void setSkipInVisualizationTree(boolean skipInVisualizationTree)
    • isHideFromAnalysisTable

      public boolean isHideFromAnalysisTable()
      true when this row should be hidden from the analysis-screen table. A negated LEAF part inside an AND/OR compound (has a parentPart) reports the un-negated inner-condition count next to a "Not …" description — the number and the text describe different populations. That divergence is deliberate (see the ASTNotNode branch's isThisClonesOwnNot skip: it exists so a script like !memberOf('smallGroup') against a two-million directory doesn't show "1,765,754 Not member of group smallGroup" on the analysis screen) but the row itself reads confusingly, so we hide it. The enclosing compound row still shows the whole expression, and the visualization renders the negated edge, so no information is lost. A standalone negated root (e.g. a script that is just !memberOf('X') on its own) has parentPart == null, so this returns false — that lone row is the only place the user could see the population and it is not hidden.
      Returns:
      true if the analysis-table row for this part should be suppressed