org.jasig.portal.security
Class AdminEvaluator

java.lang.Object
  extended by org.jasig.portal.security.AdminEvaluator

public class AdminEvaluator
extends Object

Provides single location for housing knowledge of the various ways to determine if a user is an administrator or is in any administrative sub-group.

Author:
Mark Boyd

Constructor Summary
AdminEvaluator()
           
 
Method Summary
static boolean isAdmin(IAuthorizationPrincipal ap)
          Determines if the passed-in authorization principal represents a user that is a member of the administrator group or any of its sub groups.
static boolean isAdmin(IGroupMember member)
          Determines if the passed-in group member represents a user that is a member of the administrator group or any of its sub groups.
static boolean isAdmin(IPerson p)
          Determines if the passed-in IPerson represents a user that is a member of the administrator group or any of its sub groups.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminEvaluator

public AdminEvaluator()
Method Detail

isAdmin

public static boolean isAdmin(IPerson p)
Determines if the passed-in IPerson represents a user that is a member of the administrator group or any of its sub groups.

Parameters:
p -
Returns:

isAdmin

public static boolean isAdmin(IAuthorizationPrincipal ap)
Determines if the passed-in authorization principal represents a user that is a member of the administrator group or any of its sub groups.

Parameters:
p -
Returns:

isAdmin

public static boolean isAdmin(IGroupMember member)
Determines if the passed-in group member represents a user that is a member of the administrator group or any of its sub groups.

Parameters:
p -
Returns:


Copyright © 2010 Jasig. All Rights Reserved.