Interface ToolRenderService


  • public interface ToolRenderService
    Service responsible for preprocessing and rendering tools within a Sakai portal.
    Since:
    Sakai 2.2.3
    Version:
    $Rev$
    • Method Detail

      • preprocess

        boolean preprocess​(org.sakaiproject.portal.api.Portal portal,
                           HttpServletRequest request,
                           HttpServletResponse response,
                           ServletContext context)
                    throws IOException
        Perfrorm any preperatory processing for the specified tool.
        Parameters:
        request - the servlet request
        response - the servlet response.
        context - the portal servlet context
        Returns:
        indicates whether or not processing should be continued.
        Throws:
        IOException - if an error occurs during preprocessing.
      • accept

        boolean accept​(org.sakaiproject.portal.api.Portal portal,
                       org.sakaiproject.site.api.ToolConfiguration configuration,
                       HttpServletRequest request,
                       HttpServletResponse response,
                       ServletContext context)
        The render service will accept responsibility for a tool. This enables a controller to check if the render service can manage the tool
        Parameters:
        configuration - tool configuration for the tool in question
        request -
        response -
        context - - this is the servlet context handling the request (ie the portal)
        Returns:
      • reset

        void reset​(org.sakaiproject.site.api.ToolConfiguration configuration)
        reset the ToolConfiguration/Placement associated with the config
        Parameters:
        configuration -