Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This server-side class allows interaction provides a method that help to interact with the User Criteria.

SimpleUserCriteria()


This method creates Use this constructor to create an instance of the SimpleUserCriteria class.

Code Block
languagejs
themeEclipse
titleSimpleUserCriteria
linenumberstrue
const uc = new SimpleUserCriteria();

userAcceptanceByCriteria(user, criteria)


This Use this method checks if the user fits the criteria specified.

Parameter(s):

or
NameTypeMandatoryDefault value
userStringYN
criteriaString/ArrayYN

excludeDelegation

BooleanNfalse


Tip

The criteria parameter may be specified as an array of strings, as shown in the second code example.

Return:

TypeDescription
BooleanReturns true if the user fits the criteria specified; otherwise, returns false.

Example 1:

Code Block
languagejs
themeEclipse
titleuserAcceptanceByCriteria
linenumberstrue
const uc = new SimpleUserCriteria();
ss.info(uc.userAcceptanceByCriteria(ss.getUserID(), '158617888715304763'));
// Info: true

Example 2:

Code Block
languagejs
themeEclipse
titleuserAcceptanceByCriteria
linenumberstrue
const uc = new SimpleUserCriteria();
ss.info(uc.userAcceptanceByCriteria(ss.getUserID(), ['158617888715304763', '158617888715304765']));
// Info: false


Table of Contents
absoluteUrltrue
classfixedPosition