org.apache.jetspeed.om.page.psml
Class SecurityConstraintsImpl

java.lang.Object
  extended byorg.apache.jetspeed.om.page.psml.SecurityConstraintsImpl
All Implemented Interfaces:
org.apache.jetspeed.om.common.SecurityConstraints

public class SecurityConstraintsImpl
extends Object
implements org.apache.jetspeed.om.common.SecurityConstraints

SecurityConstraintsImpl

Version:
$Id: SecurityConstraintsImpl.java 187962 2004-11-19 03:07:43Z taylor $
Author:
Randy Watler

Field Summary
private  List allConstraints
           
private  List constraints
           
private  List constraintsRefs
           
private static org.apache.commons.logging.Log log
           
private  String owner
           
 
Constructor Summary
SecurityConstraintsImpl()
           
 
Method Summary
 void checkConstraints(List actions, List userPrincipals, List rolePrincipals, List groupPrincipals, org.apache.jetspeed.page.document.DocumentHandlerFactory handlerFactory)
           checkConstraints
private  List dereferenceSecurityConstraintsRefs(List constraintsRefs, org.apache.jetspeed.page.document.DocumentHandlerFactory handlerFactory)
           dereferenceSecurityConstraintsRefs
private  List getAllSecurityConstraints(org.apache.jetspeed.page.document.DocumentHandlerFactory handlerFactory)
           getAllSecurityConstraints
 String getOwner()
           getOwner
private  org.apache.jetspeed.om.page.PageSecurity getSecurity(org.apache.jetspeed.page.document.DocumentHandlerFactory handlerFactory)
           getSecurity
 List getSecurityConstraints()
           getSecurityConstraints
 List getSecurityConstraintsRefs()
           getSecurityConstraintsRefs
 void setOwner(String owner)
           setOwner
 void setSecurityConstraints(List constraints)
           setSecurityConstraint
 void setSecurityConstraintsRefs(List constraintsRefs)
           setSecurityConstraintsRefs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.commons.logging.Log log

owner

private String owner

constraints

private List constraints

constraintsRefs

private List constraintsRefs

allConstraints

private List allConstraints
Constructor Detail

SecurityConstraintsImpl

public SecurityConstraintsImpl()
Method Detail

getOwner

public String getOwner()

getOwner

Specified by:
getOwner in interface org.apache.jetspeed.om.common.SecurityConstraints
Returns:
See Also:
SecurityConstraints.getOwner()

setOwner

public void setOwner(String owner)

setOwner

Specified by:
setOwner in interface org.apache.jetspeed.om.common.SecurityConstraints
Parameters:
owner -
See Also:
SecurityConstraints.setOwner(java.lang.String)

getSecurityConstraints

public List getSecurityConstraints()

getSecurityConstraints

Specified by:
getSecurityConstraints in interface org.apache.jetspeed.om.common.SecurityConstraints
Returns:
See Also:
SecurityConstraints.getSecurityConstraints()

setSecurityConstraints

public void setSecurityConstraints(List constraints)

setSecurityConstraint

Specified by:
setSecurityConstraints in interface org.apache.jetspeed.om.common.SecurityConstraints
Parameters:
constraints -
See Also:
SecurityConstraints.setSecurityConstraints(java.util.List)

getSecurityConstraintsRefs

public List getSecurityConstraintsRefs()

getSecurityConstraintsRefs

Specified by:
getSecurityConstraintsRefs in interface org.apache.jetspeed.om.common.SecurityConstraints
Returns:
See Also:
SecurityConstraints.getSecurityConstraintsRefs()

setSecurityConstraintsRefs

public void setSecurityConstraintsRefs(List constraintsRefs)

setSecurityConstraintsRefs

Specified by:
setSecurityConstraintsRefs in interface org.apache.jetspeed.om.common.SecurityConstraints
Parameters:
constraintsRefs -
See Also:
SecurityConstraints.setSecurityConstraintsRefs(java.util.List)

checkConstraints

public void checkConstraints(List actions,
                             List userPrincipals,
                             List rolePrincipals,
                             List groupPrincipals,
                             org.apache.jetspeed.page.document.DocumentHandlerFactory handlerFactory)
                      throws SecurityException

checkConstraints

Parameters:
actions -
userPrincipals -
rolePrincipals -
groupPrincipals -
handlerFactory -
Throws:
SecurityException

getAllSecurityConstraints

private List getAllSecurityConstraints(org.apache.jetspeed.page.document.DocumentHandlerFactory handlerFactory)

getAllSecurityConstraints

Parameters:
handlerFactory -
Returns:
all security constraints

dereferenceSecurityConstraintsRefs

private List dereferenceSecurityConstraintsRefs(List constraintsRefs,
                                                org.apache.jetspeed.page.document.DocumentHandlerFactory handlerFactory)

dereferenceSecurityConstraintsRefs

Parameters:
constraintsRefs -
handlerFactory -
Returns:
security constraints

getSecurity

private org.apache.jetspeed.om.page.PageSecurity getSecurity(org.apache.jetspeed.page.document.DocumentHandlerFactory handlerFactory)

getSecurity

Parameters:
handlerFactory -
Returns:
security document


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