org.apache.jetspeed.profiler.rules.impl
Class GroupRoleUserCriterionResolver

java.lang.Object
  extended by org.apache.jetspeed.profiler.rules.impl.StandardResolver
      extended by org.apache.jetspeed.profiler.rules.impl.UserCriterionResolver
          extended by org.apache.jetspeed.profiler.rules.impl.GroupRoleUserCriterionResolver
All Implemented Interfaces:
Serializable, org.apache.jetspeed.profiler.rules.RuleCriterionResolver

public class GroupRoleUserCriterionResolver
extends UserCriterionResolver
implements org.apache.jetspeed.profiler.rules.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

Field Summary
 
Fields inherited from class org.apache.jetspeed.profiler.rules.impl.UserCriterionResolver
log
 
Fields inherited from class org.apache.jetspeed.profiler.rules.impl.StandardResolver
COMBO_DELIMITER, VALUE_DELIMITER
 
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
 
Constructor Summary
GroupRoleUserCriterionResolver()
           
 
Method Summary
 String resolve(org.apache.jetspeed.request.RequestContext context, org.apache.jetspeed.profiler.rules.RuleCriterion criterion)
           
 
Methods inherited from class org.apache.jetspeed.profiler.rules.impl.UserCriterionResolver
isControl
 
Methods inherited from class org.apache.jetspeed.profiler.rules.impl.StandardResolver
combinePrincipals, isNavigation, resolvePrincipals
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.jetspeed.profiler.rules.RuleCriterionResolver
isControl, isNavigation
 

Constructor Detail

GroupRoleUserCriterionResolver

public GroupRoleUserCriterionResolver()
Method Detail

resolve

public String resolve(org.apache.jetspeed.request.RequestContext context,
                      org.apache.jetspeed.profiler.rules.RuleCriterion criterion)
Specified by:
resolve in interface org.apache.jetspeed.profiler.rules.RuleCriterionResolver
Overrides:
resolve in class UserCriterionResolver


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.