Class UserExpression
java.lang.Object
org.ametys.plugins.repository.query.expression.UserExpression
- All Implemented Interfaces:
Expression
Constructs an
Expression corresponding to a user comparison store as a composite with login and id of population.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.plugins.repository.query.expression.Expression
Expression.LogicalOperator, Expression.Operator -
Constructor Summary
ConstructorsConstructorDescriptionUserExpression(String metadata, Expression.Operator operator, String value) Creates the comparison Expression.UserExpression(String metadata, Expression.Operator operator, String value, boolean multiple) Creates the comparison Expression.UserExpression(String metadata, Expression.Operator operator, String value, boolean multiple, ExpressionContext context) Creates the comparison Expression.UserExpression(String metadata, Expression.Operator operator, String value, ExpressionContext context) Creates the comparison Expression.UserExpression(String metadata, Expression.Operator operator, UserIdentity userIdentity) Creates the comparison Expression.UserExpression(String metadata, Expression.Operator operator, UserIdentity userIdentity, boolean multiple) Creates the comparison Expression.UserExpression(String metadata, Expression.Operator operator, UserIdentity userIdentity, boolean multiple, ExpressionContext context) Creates the comparison Expression.UserExpression(String metadata, Expression.Operator operator, UserIdentity userIdentity, ExpressionContext context) Creates the comparison Expression. -
Method Summary
-
Constructor Details
-
UserExpression
Creates the comparison Expression.- Parameters:
metadata- the metadata pathoperator- the operator to make the comparisonvalue- the user identity as login#population.
-
UserExpression
public UserExpression(String metadata, Expression.Operator operator, String value, ExpressionContext context) Creates the comparison Expression.- Parameters:
metadata- the metadata pathoperator- the operator to make the comparisonvalue- the user identity as login#population.context- the expression context
-
UserExpression
public UserExpression(String metadata, Expression.Operator operator, String value, boolean multiple) Creates the comparison Expression.- Parameters:
metadata- the metadata pathoperator- the operator to make the comparisonvalue- the user identity as login#population.multiple- true if the attribute is multiple
-
UserExpression
public UserExpression(String metadata, Expression.Operator operator, String value, boolean multiple, ExpressionContext context) Creates the comparison Expression.- Parameters:
metadata- the metadata pathoperator- the operator to make the comparisonvalue- the user identity as login#population.multiple- true if the attribute is multiplecontext- the expression context
-
UserExpression
Creates the comparison Expression.- Parameters:
metadata- the metadata pathoperator- the operator to make the comparisonuserIdentity- the user identity (login and population)
-
UserExpression
public UserExpression(String metadata, Expression.Operator operator, UserIdentity userIdentity, ExpressionContext context) Creates the comparison Expression.- Parameters:
metadata- the metadata pathoperator- the operator to make the comparisonuserIdentity- the user identity (login and population)context- the expression context
-
UserExpression
public UserExpression(String metadata, Expression.Operator operator, UserIdentity userIdentity, boolean multiple) Creates the comparison Expression.- Parameters:
metadata- the metadata pathoperator- the operator to make the comparisonuserIdentity- the user identity (login and population)multiple- true if the attribute is multiple
-
UserExpression
public UserExpression(String metadata, Expression.Operator operator, UserIdentity userIdentity, boolean multiple, ExpressionContext context) Creates the comparison Expression.- Parameters:
metadata- the metadata pathoperator- the operator to make the comparisonuserIdentity- the user identity (login and population)multiple- true if the attribute is multiplecontext- the expression context
-
-
Method Details
-
build
Description copied from interface:ExpressionBuild the expression.- Specified by:
buildin interfaceExpression- Returns:
- The XPath view of the expression.
-