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

java.lang.Object
  extended by org.apache.cocoon.portal.tools.helper.MultipleRoleMatcher
All Implemented Interfaces:
RoleMatcher

public class MultipleRoleMatcher
extends Object
implements RoleMatcher

A role matcher matching against several role.

Version:
CVS $Id: MultipleRoleMatcher.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Field Summary
static String ROLE_SEPARATOR
          The character used to seperate multiple roles.
 
Constructor Summary
MultipleRoleMatcher(String roles)
          Creates a new MultipleRoleMatcher.
 
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
 

Field Detail

ROLE_SEPARATOR

public static final String ROLE_SEPARATOR
The character used to seperate multiple roles.

See Also:
Constant Field Values
Constructor Detail

MultipleRoleMatcher

public MultipleRoleMatcher(String roles)
Creates a new MultipleRoleMatcher.

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-2010 The Apache Software Foundation. All Rights Reserved.