org.apache.jetspeed.page
Class PageManagerSecurityUtils

java.lang.Object
  extended by org.apache.jetspeed.page.PageManagerSecurityUtils

public class PageManagerSecurityUtils
extends Object

PageManagerUtils

Version:
$Id: $
Author:
David Sean Taylor

Constructor Summary
PageManagerSecurityUtils()
           
 
Method Summary
static boolean checkConstraint(org.apache.jetspeed.om.page.SecurityConstraintsDef def, String actions)
           
static boolean checkConstraints(List actions, List userPrincipals, List rolePrincipals, List groupPrincipals, org.apache.jetspeed.om.page.SecurityConstraintsDef def)
          check access for the constraints list of a security constraints definition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageManagerSecurityUtils

public PageManagerSecurityUtils()
Method Detail

checkConstraint

public static boolean checkConstraint(org.apache.jetspeed.om.page.SecurityConstraintsDef def,
                                      String actions)
                               throws org.apache.jetspeed.page.document.DocumentException
Throws:
org.apache.jetspeed.page.document.DocumentException

checkConstraints

public static boolean checkConstraints(List actions,
                                       List userPrincipals,
                                       List rolePrincipals,
                                       List groupPrincipals,
                                       org.apache.jetspeed.om.page.SecurityConstraintsDef def)
                                throws org.apache.jetspeed.page.document.DocumentException
check access for the constraints list of a security constraints definition

Parameters:
actions - given actions
userPrincipals - set of user principals
rolePrincipals - set of role principals
groupPrincipals - set oof group principals
def - the security constraint definition
Throws:
SecurityException
org.apache.jetspeed.page.document.DocumentException


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