Class GrouperJexlScriptPart
java.lang.Object
edu.internet2.middleware.grouper.abac.GrouperJexlScriptPart
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumRole of this part in the tree of script parts. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected GrouperJexlScriptPartclone()arguments for SQL (bind vars)description of this scriptletintwhere clause for SQLbooleanbooleantrue when this row should be hidden from the analysis-screen table.booleanbooleanbooleanbooleanvoidsetArguments(List<MultiKey> arguments) arguments for SQL (bind vars)voidsetConnective(GrouperJexlScriptPart.Connective connective) voidsetContainsSubject(boolean containsSubject) voidsetDisplayDescription(StringBuilder displayDescription) description of this scriptletvoidsetNegated(boolean negated) voidsetParentPart(GrouperJexlScriptPart parentPart) voidsetPopulationCount(int populationCount) voidsetRowInnerOr(boolean rowInnerOr) voidsetSkipInVisualizationTree(boolean skipInVisualizationTree) voidsetTerseUnsupportedOperator(boolean terseUnsupportedOperator) voidsetWhereClause(StringBuilder whereClause) where clause for SQLtoString()
-
Constructor Details
-
GrouperJexlScriptPart
public GrouperJexlScriptPart()
-
-
Method Details
-
toString
-
clone
-
getArguments
arguments for SQL (bind vars)- Returns:
-
setArguments
arguments for SQL (bind vars)- Parameters:
arguments-
-
getWhereClause
where clause for SQL- Returns:
-
setWhereClause
where clause for SQL- Parameters:
whereClause-
-
getDisplayDescription
description of this scriptlet- Returns:
-
setDisplayDescription
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
-
setConnective
-
isRowInnerOr
public boolean isRowInnerOr() -
setRowInnerOr
public void setRowInnerOr(boolean rowInnerOr) -
getParentPart
-
setParentPart
-
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'sisThisClonesOwnNotskip: 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) hasparentPart == 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
-