org.pentaho.platform.security.policy.rolebased
Interface IRoleAuthorizationPolicyRoleBindingDao

All Known Subinterfaces:
IRoleAuthorizationPolicyRoleBindingDaoWebService
All Known Implementing Classes:
DefaultRoleAuthorizationPolicyRoleBindingDaoWebService, JcrRoleAuthorizationPolicyRoleBindingDao

public interface IRoleAuthorizationPolicyRoleBindingDao

Associates (binds) logical roles with runtime roles.

Author:
mlowery

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.
 

Method Detail

getRoleBindingStruct

RoleBindingStruct getRoleBindingStruct(String locale)
Gets a struct-like object that contains everything known by this DAO. This is a batch operation provided for UIs.

Parameters:
locale - locale, possibly null
Returns:
role binding struct

setRoleBindings

void setRoleBindings(String runtimeRoleName,
                     List<String> logicalRolesNames)
Sets the bindings for the given runtime role. All other bindings for this runtime role are removed.

Parameters:
runtimeRoleName - runtime role name
logicalRoleNames - list of logical role names

getBoundLogicalRoleNames

List<String> getBoundLogicalRoleNames(List<String> runtimeRoleNames)
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().

Parameters:
runtimeRoleNames - list of runtime role names
Returns:
list of logical role names, never null