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

java.lang.Object
  extended by org.pentaho.platform.security.policy.rolebased.ws.DefaultRoleAuthorizationPolicyRoleBindingDaoWebService
All Implemented Interfaces:
IRoleAuthorizationPolicyRoleBindingDao, IRoleAuthorizationPolicyRoleBindingDaoWebService

public class DefaultRoleAuthorizationPolicyRoleBindingDaoWebService
extends Object
implements IRoleAuthorizationPolicyRoleBindingDaoWebService

Implementation of IRoleAuthorizationPolicyRoleBindingDaoWebService that delegates to an IRoleAuthorizationPolicyRoleBindingDao instance.

Author:
mlowery

Constructor Summary
DefaultRoleAuthorizationPolicyRoleBindingDaoWebService()
          No-arg constructor for when in Pentaho BI Server.
DefaultRoleAuthorizationPolicyRoleBindingDaoWebService(IRoleAuthorizationPolicyRoleBindingDao roleBindingDao)
           
 
Method Summary
 List<String> getBoundLogicalRoleNames(List<String> runtimeRoleNames)
          Gets the logical roles bound to the given runtime roles.
 RoleBindingStruct getRoleBindingStruct(String locale)
          Gets a struct-like object that contains everything known by this DAO.
 void setRoleBindings(String runtimeRoleName, List<String> logicalRolesNames)
          Sets the bindings for the given runtime role.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRoleAuthorizationPolicyRoleBindingDaoWebService

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


DefaultRoleAuthorizationPolicyRoleBindingDaoWebService

public DefaultRoleAuthorizationPolicyRoleBindingDaoWebService(IRoleAuthorizationPolicyRoleBindingDao roleBindingDao)
Method Detail

getRoleBindingStruct

public RoleBindingStruct getRoleBindingStruct(String locale)
Description copied from interface: IRoleAuthorizationPolicyRoleBindingDao
Gets a struct-like object that contains everything known by this DAO. This is a batch operation provided for UIs.

Specified by:
getRoleBindingStruct in interface IRoleAuthorizationPolicyRoleBindingDao
Specified by:
getRoleBindingStruct in interface IRoleAuthorizationPolicyRoleBindingDaoWebService
Parameters:
locale - locale, possibly null
Returns:
role binding struct

getBoundLogicalRoleNames

public List<String> getBoundLogicalRoleNames(List<String> runtimeRoleNames)
Description copied from interface: IRoleAuthorizationPolicyRoleBindingDao
Gets the logical roles bound to the given runtime roles. Note that the size of the incoming list might not match the size of the returned list. This is a convenience method. The same result could be obtained from #getRoleBindingStruct().

Specified by:
getBoundLogicalRoleNames in interface IRoleAuthorizationPolicyRoleBindingDao
Parameters:
runtimeRoleNames - list of runtime role names
Returns:
list of logical role names, never null

setRoleBindings

public void setRoleBindings(String runtimeRoleName,
                            List<String> logicalRolesNames)
Description copied from interface: IRoleAuthorizationPolicyRoleBindingDao
Sets the bindings for the given runtime role. All other bindings for this runtime role are removed.

Specified by:
setRoleBindings in interface IRoleAuthorizationPolicyRoleBindingDao
Parameters:
runtimeRoleName - runtime role name