Package org.basex.query.func.user
Class UserCreate
java.lang.Object
org.basex.query.expr.ExprInfo
org.basex.query.expr.Expr
org.basex.query.expr.ParseExpr
org.basex.query.expr.Arr
org.basex.query.func.StandardFunc
org.basex.query.func.user.UserCreate
Function implementation.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
Fields inherited from class org.basex.query.func.StandardFunc
definition, sc -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanaccept(ASTVisitor visitor) Traverses this expression, notifying the visitor of declared and used variables, and checking the tree for other recursive properties.item(QueryContext qc, InputInfo ii) Evaluates the expression and returns the resulting item, orEmpty.VALUEif the expression yields an empty sequence.protected final UsertoInactiveUser(int i, QueryContext qc) Checks if the specified user is currently not logged in.protected final StringtoName(int i, QueryContext qc) Checks if the specified expression is a valid user name.protected final StringListtoPatterns(int i, QueryContext qc) Checks if the specified expression contains valid database patterns.toPerms(int i, QueryContext qc) Checks if the specified expression contains valid permissions.protected final StringtoSafeName(int i, QueryContext qc) Checks if the specified user is currently logged in.protected final StringtoString(int i, QueryContext qc) Checks if the specified expression is a string.protected final UsertoUser(int i, QueryContext qc) Checks if the specified expression references an existing user.Methods inherited from class org.basex.query.func.StandardFunc
checkAdmin, checkArity, checkArity, checkCreate, checkData, checkPath, checkPath, coerceFunc, compileData, copy, data, data, dataLock, dateTimeToMs, description, equals, has, opt, optFirst, optFirst, optimize, plan, plan, serialize, simplifyArgs, toBaseUri, toBindings, toCollation, toDate, toDBNode, toEncodingOrNull, toNodeOrAtomItem, toOptions, toPath, toPath, toQuery, toQuery, vacuousMethods inherited from class org.basex.query.expr.Arr
allAreValues, args, checkUp, compile, copyAll, count, exprSize, flatten, inline, inline, inlineable, mayBePositional, simplifyAllMethods inherited from class org.basex.query.expr.ParseExpr
adoptType, atomValue, checkAllUp, checkNoEmpty, checkNoEmpty, checkNoneUp, checkNoUp, checkType, checkType, checkUp, copyType, ctxValue, ebv, iter, refineType, seqType, size, test, toArray, toArray, toAtomItem, toB64, toB64, toBin, toBin, toBoolean, toBoolean, toBytes, toBytes, toDouble, toDouble, toElem, toFloat, toFunc, toItem, toItem, toLong, toLong, toMap, toMap, toNode, toNode, toNodeOrNull, toNumber, toNumberOrNull, toQNm, toQNm, toToken, toToken, toTokenOrNull, toZeroToken, valueMethods inherited from class org.basex.query.expr.Expr
arg, atomItem, atomIter, ddo, funcType, hasFreeVars, indexAccessible, isSimple, markTailCalls, mergeEbv, simplifyFor, typeCheck, uses, visitAllMethods inherited from class org.basex.query.expr.ExprInfo
toErrorString, toString
-
Constructor Details
-
UserCreate
public UserCreate()
-
-
Method Details
-
item
Description copied from class:ExprEvaluates the expression and returns the resulting item, orEmpty.VALUEif the expression yields an empty sequence. If this method is not implemented,Expr.value(QueryContext)must be implemented instead.- Overrides:
itemin classParseExpr- Parameters:
qc- query contextii- input info (only required bySeqinstances, which have no input info)- Returns:
- item or
Empty.VALUE - Throws:
QueryException- query exception
-
toPatterns
Checks if the specified expression contains valid database patterns.- Parameters:
i- expression indexqc- query context- Returns:
- patterns
- Throws:
QueryException- query exception
-
toName
Checks if the specified expression is a valid user name.- Parameters:
i- expression indexqc- query context- Returns:
- name
- Throws:
QueryException- query exception
-
toUser
Checks if the specified expression references an existing user.- Parameters:
i- expression indexqc- query context- Returns:
- user
- Throws:
QueryException- query exception
-
toPerms
Checks if the specified expression contains valid permissions.- Parameters:
i- expression indexqc- query context- Returns:
- permissions
- Throws:
QueryException- query exception
-
toString
Checks if the specified expression is a string.- Parameters:
i- expression indexqc- query context- Returns:
- name of database
- Throws:
QueryException- query exception
-
toSafeName
Checks if the specified user is currently logged in.- Parameters:
i- expression indexqc- query context- Returns:
- name
- Throws:
QueryException- query exception
-
toInactiveUser
Checks if the specified user is currently not logged in.- Parameters:
i- expression indexqc- query context- Returns:
- user
- Throws:
QueryException- query exception
-
accept
Description copied from class:ExprTraverses this expression, notifying the visitor of declared and used variables, and checking the tree for other recursive properties.
-