Class DefaultRoleAuthorizationPolicyRoleBindingDaoWebService
- java.lang.Object
-
- org.pentaho.platform.security.policy.rolebased.ws.DefaultRoleAuthorizationPolicyRoleBindingDaoWebService
-
- All Implemented Interfaces:
IRoleAuthorizationPolicyRoleBindingDaoWebService
public class DefaultRoleAuthorizationPolicyRoleBindingDaoWebService extends Object implements IRoleAuthorizationPolicyRoleBindingDaoWebService
Implementation ofIRoleAuthorizationPolicyRoleBindingDaoWebService
that delegates to anIRoleAuthorizationPolicyRoleBindingDao
instance.- Author:
- mlowery
-
-
Constructor Summary
Constructors Constructor Description DefaultRoleAuthorizationPolicyRoleBindingDaoWebService()
No-arg constructor for when in Pentaho BI Server.DefaultRoleAuthorizationPolicyRoleBindingDaoWebService(IRoleAuthorizationPolicyRoleBindingDao roleBindingDao)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getBoundLogicalRoleNames(List<String> runtimeRoleNames)
Gets the logical roles bound to the given runtime roles.List<String>
getBoundLogicalRoleNamesForTenant(org.pentaho.platform.core.mt.Tenant tenant, List<String> runtimeRoleNames)
RoleBindingStruct
getRoleBindingStruct(String locale)
RoleBindingStruct
getRoleBindingStructForTenant(org.pentaho.platform.core.mt.Tenant tenant, 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.void
setRoleBindingsForTenant(org.pentaho.platform.core.mt.Tenant tenant, String runtimeRoleName, List<String> logicalRolesNames)
-
-
-
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)
- Specified by:
getRoleBindingStruct
in interfaceIRoleAuthorizationPolicyRoleBindingDaoWebService
-
getBoundLogicalRoleNames
public List<String> getBoundLogicalRoleNames(List<String> runtimeRoleNames)
Description copied from interface:IRoleAuthorizationPolicyRoleBindingDaoWebService
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 interfaceIRoleAuthorizationPolicyRoleBindingDaoWebService
- 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:IRoleAuthorizationPolicyRoleBindingDaoWebService
Sets the bindings for the given runtime role. All other bindings for this runtime role are removed.- Specified by:
setRoleBindings
in interfaceIRoleAuthorizationPolicyRoleBindingDaoWebService
- Parameters:
runtimeRoleName
- runtime role name
-
getBoundLogicalRoleNamesForTenant
public List<String> getBoundLogicalRoleNamesForTenant(org.pentaho.platform.core.mt.Tenant tenant, List<String> runtimeRoleNames)
- Specified by:
getBoundLogicalRoleNamesForTenant
in interfaceIRoleAuthorizationPolicyRoleBindingDaoWebService
-
getRoleBindingStructForTenant
public RoleBindingStruct getRoleBindingStructForTenant(org.pentaho.platform.core.mt.Tenant tenant, String locale)
Description copied from interface:IRoleAuthorizationPolicyRoleBindingDaoWebService
Gets a struct-like object that contains everything known by this DAO. This is a batch operation provided for UIs.- Specified by:
getRoleBindingStructForTenant
in interfaceIRoleAuthorizationPolicyRoleBindingDaoWebService
locale
- locale, possiblynull
- Returns:
- role binding struct
-
setRoleBindingsForTenant
public void setRoleBindingsForTenant(org.pentaho.platform.core.mt.Tenant tenant, String runtimeRoleName, List<String> logicalRolesNames)
- Specified by:
setRoleBindingsForTenant
in interfaceIRoleAuthorizationPolicyRoleBindingDaoWebService
-
-