net.sf.jguard.jee.extras.dwr2
Class DWR2AccessControl

java.lang.Object
  extended by org.directwebremoting.impl.DefaultAccessControl
      extended by net.sf.jguard.jee.extras.dwr2.DWR2AccessControl
All Implemented Interfaces:
org.directwebremoting.extend.AccessControl

public class DWR2AccessControl
extends org.directwebremoting.impl.DefaultAccessControl

link DWR with jguard to unify access control in jguard. this implementation works in DWR 2.x.

Author:
Charles Gay

Field Summary
 
Fields inherited from class org.directwebremoting.impl.DefaultAccessControl
exposeInternals, PACKAGE_DWR_DENY, policyMap, roleRestrictMap
 
Constructor Summary
DWR2AccessControl()
           
 
Method Summary
 void addExcludeRule(java.lang.String scriptName, java.lang.String methodName)
           
 void addIncludeRule(java.lang.String scriptName, java.lang.String methodName)
           
 void addRoleRestriction(java.lang.String scriptName, java.lang.String methodName, java.lang.String role)
           
 void assertExecutionIsPossible(org.directwebremoting.extend.Creator creator, java.lang.String className, java.lang.reflect.Method method)
           
 
Methods inherited from class org.directwebremoting.impl.DefaultAccessControl
assertAllowedByRoles, assertAreParametersDwrInternal, assertAuthenticationIsValid, assertIsClassDwrInternal, assertIsDisplayable, assertIsExecutable, assertIsMethodPublic, assertIsNotOnBaseObject, assertIsRestrictedByRole, getPolicy, getRoleRestrictions, setExposeInternals
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DWR2AccessControl

public DWR2AccessControl()
Method Detail

assertExecutionIsPossible

public void assertExecutionIsPossible(org.directwebremoting.extend.Creator creator,
                                      java.lang.String className,
                                      java.lang.reflect.Method method)
Specified by:
assertExecutionIsPossible in interface org.directwebremoting.extend.AccessControl
Overrides:
assertExecutionIsPossible in class org.directwebremoting.impl.DefaultAccessControl

addRoleRestriction

public void addRoleRestriction(java.lang.String scriptName,
                               java.lang.String methodName,
                               java.lang.String role)
Specified by:
addRoleRestriction in interface org.directwebremoting.extend.AccessControl
Overrides:
addRoleRestriction in class org.directwebremoting.impl.DefaultAccessControl

addIncludeRule

public void addIncludeRule(java.lang.String scriptName,
                           java.lang.String methodName)
Specified by:
addIncludeRule in interface org.directwebremoting.extend.AccessControl
Overrides:
addIncludeRule in class org.directwebremoting.impl.DefaultAccessControl

addExcludeRule

public void addExcludeRule(java.lang.String scriptName,
                           java.lang.String methodName)
Specified by:
addExcludeRule in interface org.directwebremoting.extend.AccessControl
Overrides:
addExcludeRule in class org.directwebremoting.impl.DefaultAccessControl


Copyright © 2004-2009. All Rights Reserved.