org.apache.cocoon.portal.tools.helper
Class SingleRoleMatcher

java.lang.Object
  extended byorg.apache.cocoon.portal.tools.helper.SingleRoleMatcher
All Implemented Interfaces:
RoleMatcher

public class SingleRoleMatcher
extends Object
implements RoleMatcher

A role matcher matching against a single role.

Version:
$Id: SingleRoleMatcher.java 321068 2005-10-14 10:36:50Z cziegeler $

Constructor Summary
SingleRoleMatcher(String role)
          Creates a new SingleRoleMatcher.
 
Method Summary
 boolean matches(PortalUser user)
          Overridden from superclass.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleRoleMatcher

public SingleRoleMatcher(String role)
Creates a new SingleRoleMatcher.

Method Detail

matches

public boolean matches(PortalUser user)
Overridden from superclass.

Specified by:
matches in interface RoleMatcher
Returns:
Whether the user matches this role.
See Also:
RoleMatcher.matches(PortalUser)


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.