Interface IRoleAuthorizationPolicyRoleBindingDaoWebService

  • All Known Implementing Classes:
    DefaultRoleAuthorizationPolicyRoleBindingDaoWebService

    public interface IRoleAuthorizationPolicyRoleBindingDaoWebService
    JAX-WS-safe version of IRoleAuthorizationPolicyRoleBindingDao. In this case, nothing is different but it keeps JAX-WS annotations out of the core classes.
    Author:
    mlowery
    • Method Detail

      • getRoleBindingStructForTenant

        RoleBindingStruct getRoleBindingStructForTenant​(org.pentaho.platform.core.mt.Tenant tenant,
                                                        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
      • setRoleBindingsForTenant

        void setRoleBindingsForTenant​(org.pentaho.platform.core.mt.Tenant tenant,
                                      String runtimeRoleName,
                                      List<String> logicalRolesNames)
      • 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
      • getBoundLogicalRoleNamesForTenant

        List<String> getBoundLogicalRoleNamesForTenant​(org.pentaho.platform.core.mt.Tenant tenant,
                                                       List<String> runtimeRoleNames)