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

java.lang.Object
  extended by org.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 568811 2007-08-23 03:00:37Z woonsan $
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.om.page.PageSecurity pageSecurity)
           checkConstraints
private  List dereferenceSecurityConstraintsRefs(List constraintsRefs, org.apache.jetspeed.om.page.PageSecurity pageSecurity)
           dereferenceSecurityConstraintsRefs
private  List getAllSecurityConstraints(org.apache.jetspeed.om.page.PageSecurity pageSecurity)
           getAllSecurityConstraints
 String getOwner()
           getOwner
 List getSecurityConstraints()
           getSecurityConstraints
 List getSecurityConstraintsRefs()
           getSecurityConstraintsRefs
 boolean isEmpty()
           isEmpty
 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)

isEmpty

public boolean isEmpty()

isEmpty

Specified by:
isEmpty in interface org.apache.jetspeed.om.common.SecurityConstraints
Returns:
flag indicating whether there are constraints or owner set
See Also:
SecurityConstraints.isEmpty()

checkConstraints

public void checkConstraints(List actions,
                             List userPrincipals,
                             List rolePrincipals,
                             List groupPrincipals,
                             org.apache.jetspeed.om.page.PageSecurity pageSecurity)
                      throws SecurityException

checkConstraints

Parameters:
actions -
userPrincipals -
rolePrincipals -
groupPrincipals -
pageSecurity - page security definitions
Throws:
SecurityException

getAllSecurityConstraints

private List getAllSecurityConstraints(org.apache.jetspeed.om.page.PageSecurity pageSecurity)

getAllSecurityConstraints

Parameters:
pageSecurity -
Returns:
all security constraints

dereferenceSecurityConstraintsRefs

private List dereferenceSecurityConstraintsRefs(List constraintsRefs,
                                                org.apache.jetspeed.om.page.PageSecurity pageSecurity)

dereferenceSecurityConstraintsRefs

Parameters:
constraintsRefs -
pageSecurity -
Returns:
security constraints


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