Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.sakaiproject.portal.render.api;
 
 
 
Service responsible for preprocessing and rendering tools within a Sakai portal.

Version:
$Rev: 35170 $
Since:
Sakai 2.2.3
public interface ToolRenderService
{

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:
java.io.IOException if an error occurs during preprocessing.
	boolean preprocess(Portal portalHttpServletRequest requestHttpServletResponse response,
			ServletContext contextthrows IOException;

Render the tool.

Parameters:
toolConfiguration
request
response
Throws:
java.io.IOException
ToolRenderException
	RenderResult render(Portal portalToolConfiguration toolConfigurationHttpServletRequest request,
			HttpServletResponse responseServletContext contextthrows IOException,
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:
	boolean accept(Portal portalToolConfiguration configurationHttpServletRequest request,
			HttpServletResponse responseServletContext context);

reset the ToolConfiguration/Placement associated with the config

Parameters:
configuration
	void resetToolConfiguration configuration);
New to GrepCode? Check out our FAQ X