Interface RoleTemplateProcessor

    • Method Detail

      • create

        String create​(RedbackRoleModel model,
                      String templateId,
                      String resource)
               throws RoleManagerException
        Creates a role instance from a template for the given resource and returns the id of the new role.
        Parameters:
        model - the model
        templateId - the template identifier
        resource - the resource to which the role is applied
        Returns:
        the id of the role
        Throws:
        RoleManagerException - if the access to the backend datastore failed
      • remove

        void remove​(RedbackRoleModel model,
                    String templateId,
                    String resource)
             throws RoleManagerException
        Removes the role instance that belongs to the template from the datastore
        Parameters:
        model - the model
        templateId - the template identifier
        resource - the resource to which the role is applied
        Throws:
        RoleManagerException - if the access to the backend datastore failed
      • getRoleId

        String getRoleId​(String templateId,
                         String resource)
        Returns the role id that identifies the role that is a instance of the given template for the given resource.
        Parameters:
        templateId - the template identifier
        resource - the resource
        Returns:
        the role identifier