org.pentaho.platform.security.policy.rolebased.ws
Class DefaultAuthorizationPolicyWebService

java.lang.Object
  extended by org.pentaho.platform.security.policy.rolebased.ws.DefaultAuthorizationPolicyWebService
All Implemented Interfaces:
IAuthorizationPolicy, IAuthorizationPolicyWebService

public class DefaultAuthorizationPolicyWebService
extends Object
implements IAuthorizationPolicyWebService

Implementation of IAuthorizationPolicyWebService that delegates to an IAuthorizationPolicy instance.

Author:
mlowery

Constructor Summary
DefaultAuthorizationPolicyWebService()
          No-arg constructor for when in Pentaho BI Server.
DefaultAuthorizationPolicyWebService(IAuthorizationPolicy policy)
           
 
Method Summary
 List<String> getAllowedActions(String actionNamespace)
          Returns all actions in the given namespace that are currently allowed.
 boolean isAllowed(String actionName)
          Returns true if the the action should be allowed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAuthorizationPolicyWebService

public DefaultAuthorizationPolicyWebService()
No-arg constructor for when in Pentaho BI Server.


DefaultAuthorizationPolicyWebService

public DefaultAuthorizationPolicyWebService(IAuthorizationPolicy policy)
Method Detail

getAllowedActions

public List<String> getAllowedActions(String actionNamespace)
Description copied from interface: IAuthorizationPolicy
Returns all actions in the given namespace that are currently allowed.

Specified by:
getAllowedActions in interface IAuthorizationPolicy
Parameters:
actionNamespace - action namespace (e.g. org.pentaho.di.repository); null means all allowed actions
Returns:
list of actions

isAllowed

public boolean isAllowed(String actionName)
Description copied from interface: IAuthorizationPolicy
Returns true if the the action should be allowed.

Specified by:
isAllowed in interface IAuthorizationPolicy
Parameters:
actionName - name of action (e.g. org.pentaho.di.repository.create)
Returns:
true to allow