Class UserExpression
- java.lang.Object
 - 
- org.ametys.plugins.repository.query.expression.UserExpression
 
 
- 
- All Implemented Interfaces:
 Expression
public class UserExpression extends Object implements Expression
Constructs anExpressioncorresponding to a user comparison store as a composite with login and id of population. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classUserExpression.UserLoginExpressionInternal class to create a expression based on a user's login comparison(package private) classUserExpression.UserPopulationExpressionInternal class to create a expression based on a user's population comparison- 
Nested classes/interfaces inherited from interface org.ametys.plugins.repository.query.expression.Expression
Expression.Operator 
 - 
 
- 
Field Summary
Fields Modifier and Type Field Description private String_metadataprivate Expression.Operator_operatorprivate boolean_unversionedprivate UserIdentity_user 
- 
Constructor Summary
Constructors Constructor Description UserExpression(String metadata, Expression.Operator operator, String value)Creates the comparison Expression.UserExpression(String metadata, Expression.Operator operator, String value, boolean unversioned)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 unversioned)Creates the comparison Expression. 
 - 
 
- 
- 
Field Detail
- 
_user
private UserIdentity _user
 
- 
_operator
private Expression.Operator _operator
 
- 
_unversioned
private boolean _unversioned
 
 - 
 
- 
Constructor Detail
- 
UserExpression
public UserExpression(String metadata, Expression.Operator operator, String value)
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, boolean unversioned)
Creates the comparison Expression.- Parameters:
 metadata- the metadata pathoperator- the operator to make the comparisonvalue- the user identity as login#population.unversioned- true if the metadata is unversioned, false otherwise.
 
- 
UserExpression
public UserExpression(String metadata, Expression.Operator operator, UserIdentity userIdentity)
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, boolean unversioned)
Creates the comparison Expression.- Parameters:
 metadata- the metadata pathoperator- the operator to make the comparisonuserIdentity- the user identity (login and population)unversioned- true if the metadata is unversioned, false otherwise.
 
 - 
 
- 
Method Detail
- 
build
public String build()
Description copied from interface:ExpressionBuild the expression.- Specified by:
 buildin interfaceExpression- Returns:
 - The XPath view of the expression.
 
 
 - 
 
 -