public interface RuleCriterionResolver extends Serializable
Modifier and Type | Field and Description |
---|---|
static String |
COUNTRY
first check request parameter, then check country code in the request context
|
static String |
GROUP
first check request parameter, then check group in the request context
|
static String |
GROUP_ROLE_USER
look for group, then role, then user
|
static String |
HARD_CODED
look at hard-coded criterion value only
|
static String |
LANGUAGE
first check request parameter, then check language in the request context
|
static String |
MEDIATYPE
first check request parameter, then check media type in the request context
|
static String |
NAVIGATION
change the current navigation path
|
static String |
PAGE
resolve the parameter via the request path, then value
|
static String |
PATH
resolve the parameter via the request path, then value
|
static String |
PATH_SESSION
look in the request path first, then session
|
static String |
REQUEST
resolve the parameter via the request parameter, then value
|
static String |
REQUEST_SESSION
look in the request first, then session
|
static String |
ROLE
first check request parameter, then check role in the request context
|
static String |
ROLE_FALLBACK |
static String |
SESSION
resolve the parameter via a session attribute
|
static String |
USER
first check request parameter, then check user in the request context
|
static String |
USER_AGENT
first check request parameter, then user agent in the request context
|
static String |
USER_ATTRIBUTE
look in user attributes
|
Modifier and Type | Method and Description |
---|---|
boolean |
isControl(RuleCriterion criterion)
Gets the control classification of the resolver.
|
boolean |
isNavigation(RuleCriterion criterion)
Gets the navigation classification of the resolver.
|
String |
resolve(RequestContext context,
RuleCriterion criterion)
Resolver the value for a criterion.
|
static final String REQUEST
static final String SESSION
static final String REQUEST_SESSION
static final String HARD_CODED
static final String GROUP_ROLE_USER
static final String USER
static final String GROUP
static final String ROLE
static final String MEDIATYPE
static final String COUNTRY
static final String USER_AGENT
static final String LANGUAGE
static final String ROLE_FALLBACK
static final String PATH
static final String PAGE
static final String PATH_SESSION
static final String USER_ATTRIBUTE
static final String NAVIGATION
String resolve(RequestContext context, RuleCriterion criterion)
context
- The request context.criterion
- The criterion being evaluated.boolean isControl(RuleCriterion criterion)
boolean isNavigation(RuleCriterion criterion)
Copyright © 1999–2016 The Apache Software Foundation. All rights reserved.