org.apache.jetspeed.profiler.rules.impl
Class GroupRoleUserCriterionResolver
java.lang.Object
org.apache.jetspeed.profiler.rules.impl.StandardResolver
org.apache.jetspeed.profiler.rules.impl.UserCriterionResolver
org.apache.jetspeed.profiler.rules.impl.GroupRoleUserCriterionResolver
- All Implemented Interfaces:
- java.io.Serializable, RuleCriterionResolver
public class GroupRoleUserCriterionResolver
- extends UserCriterionResolver
- implements RuleCriterionResolver
Standard Jetspeed-1 Group/Role/User resolver.
First looking for a group request parameter, then a role request parameter,
then a user request parameter. If none are found, then it uses the
current user's principal.
If it is null, it then falls back to a request parameter.
If it is null it gives up and returns null allowing subclasses
to continue processing.
Since there is no 1:1 value for a combination rule of group, the criterion's
value is ignored.
- Version:
- $Id: GroupRoleUserCriterionResolver.java 516448 2007-03-09 16:25:47Z ate $
- Author:
- David Sean Taylor
- See Also:
- Serialized Form
Fields inherited from interface org.apache.jetspeed.profiler.rules.RuleCriterionResolver |
COUNTRY, GROUP, GROUP_ROLE_USER, HARD_CODED, LANGUAGE, MEDIATYPE, NAVIGATION, PAGE, PATH, PATH_SESSION, REQUEST, REQUEST_SESSION, ROLE, ROLE_FALLBACK, SESSION, USER, USER_AGENT, USER_ATTRIBUTE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GroupRoleUserCriterionResolver
public GroupRoleUserCriterionResolver()
resolve
public java.lang.String resolve(RequestContext context,
RuleCriterion criterion)
- Description copied from interface:
RuleCriterionResolver
- Resolver the value for a criterion.
- Specified by:
resolve
in interface RuleCriterionResolver
- Overrides:
resolve
in class UserCriterionResolver
- Parameters:
context
- The request context.criterion
- The criterion being evaluated.
- Returns:
- The value of the criterion or null if not found.
Returns null to indicate to subclasses to continue processing.
Copyright © 1999-2010 Apache Software Foundation. All Rights Reserved.