|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Resolves rule criterion based on a single criterion and runtime request context state. Note all resolvers should look at the criterion's value if they fail to find it
Field Summary | |
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 |
Method Summary | |
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. |
Field Detail |
public static final String REQUEST
public static final String SESSION
public static final String REQUEST_SESSION
public static final String HARD_CODED
public static final String GROUP_ROLE_USER
public static final String USER
public static final String GROUP
public static final String ROLE
public static final String MEDIATYPE
public static final String COUNTRY
public static final String USER_AGENT
public static final String LANGUAGE
public static final String ROLE_FALLBACK
public static final String PATH
public static final String PAGE
public static final String PATH_SESSION
public static final String USER_ATTRIBUTE
public static final String NAVIGATION
Method Detail |
public String resolve(RequestContext context, RuleCriterion criterion)
context
- The request context.criterion
- The criterion being evaluated.
public boolean isControl(RuleCriterion criterion)
public boolean isNavigation(RuleCriterion criterion)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |