com.opensymphony.xwork2.ognl
Class SecurityMemberAccess

java.lang.Object
  extended by ognl.DefaultMemberAccess
      extended by com.opensymphony.xwork2.ognl.SecurityMemberAccess
All Implemented Interfaces:
ognl.MemberAccess

public class SecurityMemberAccess
extends ognl.DefaultMemberAccess

Allows access decisions to be made on the basis of whether a member is static or not. Also blocks or allows access to properties.


Field Summary
(package private)  Set<Pattern> acceptProperties
           
private  boolean allowStaticMethodAccess
           
(package private)  Set<Pattern> excludeProperties
           
 
Fields inherited from class ognl.DefaultMemberAccess
allowPackageProtectedAccess, allowPrivateAccess, allowProtectedAccess
 
Constructor Summary
SecurityMemberAccess(boolean method)
           
 
Method Summary
 boolean getAllowStaticMethodAccess()
           
protected  boolean isAcceptableProperty(String name)
           
protected  boolean isAccepted(String paramName)
           
 boolean isAccessible(Map context, Object target, Member member, String propertyName)
           
protected  boolean isExcluded(String paramName)
           
 void setAcceptProperties(Set<Pattern> acceptedProperties)
           
 void setAllowStaticMethodAccess(boolean allowStaticMethodAccess)
           
 void setExcludeProperties(Set<Pattern> excludeProperties)
           
 
Methods inherited from class ognl.DefaultMemberAccess
getAllowPackageProtectedAccess, getAllowPrivateAccess, getAllowProtectedAccess, restore, setAllowPackageProtectedAccess, setAllowPrivateAccess, setAllowProtectedAccess, setup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

allowStaticMethodAccess

private boolean allowStaticMethodAccess

excludeProperties

Set<Pattern> excludeProperties

acceptProperties

Set<Pattern> acceptProperties
Constructor Detail

SecurityMemberAccess

public SecurityMemberAccess(boolean method)
Method Detail

getAllowStaticMethodAccess

public boolean getAllowStaticMethodAccess()

setAllowStaticMethodAccess

public void setAllowStaticMethodAccess(boolean allowStaticMethodAccess)

isAccessible

public boolean isAccessible(Map context,
                            Object target,
                            Member member,
                            String propertyName)
Specified by:
isAccessible in interface ognl.MemberAccess
Overrides:
isAccessible in class ognl.DefaultMemberAccess

isAcceptableProperty

protected boolean isAcceptableProperty(String name)

isAccepted

protected boolean isAccepted(String paramName)

isExcluded

protected boolean isExcluded(String paramName)

setExcludeProperties

public void setExcludeProperties(Set<Pattern> excludeProperties)

setAcceptProperties

public void setAcceptProperties(Set<Pattern> acceptedProperties)


Copyright © 2000-2009 Apache Software Foundation. All Rights Reserved.