Interface ToolRenderService
-
public interface ToolRenderServiceService responsible for preprocessing and rendering tools within a Sakai portal.- Since:
- Sakai 2.2.3
- Version:
- $Rev$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaccept(Portal portal, ToolConfiguration configuration, HttpServletRequest request, HttpServletResponse response, ServletContext context)The render service will accept responsibility for a tool.booleanpreprocess(Portal portal, HttpServletRequest request, HttpServletResponse response, ServletContext context)Perfrorm any preperatory processing for the specified tool.RenderResultrender(Portal portal, ToolConfiguration toolConfiguration, HttpServletRequest request, HttpServletResponse response, ServletContext context)Render the tool.voidreset(ToolConfiguration configuration)reset the ToolConfiguration/Placement associated with the config
-
-
-
Method Detail
-
preprocess
boolean preprocess(Portal portal, HttpServletRequest request, HttpServletResponse response, ServletContext context) throws IOException
Perfrorm any preperatory processing for the specified tool.- Parameters:
request- the servlet requestresponse- 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.
-
render
RenderResult render(Portal portal, ToolConfiguration toolConfiguration, HttpServletRequest request, HttpServletResponse response, ServletContext context) throws IOException, ToolRenderException
Render the tool.- Parameters:
toolConfiguration-request-response-- Throws:
IOExceptionToolRenderException
-
accept
boolean accept(Portal portal, 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 questionrequest-response-context- - this is the servlet context handling the request (ie the portal)- Returns:
-
reset
void reset(ToolConfiguration configuration)
reset the ToolConfiguration/Placement associated with the config- Parameters:
configuration-
-
-