org.sakaiproject.portal.api
Interface PortalRenderContext


public interface PortalRenderContext

This interface represent the Render Context, it allows the portal implementation to put values into the render context. There is a utility dump method to dump the context. Instances of this class should be created per request via an Implimention of the RenderContextEngine

Since:
Sakai 2.4
Version:
$Rev: 59680 $
Author:
ieb

Method Summary
 String dump()
          Convert the render context to a string suitable for dumping to a log file or console.
 PortalRenderEngine getRenderEngine()
          Get the render engine associated with this context.
 void put(String string, Object value)
          Set a value agaaisnt a Key, normally a value might be a String, Collection or a Map, but depending on the render engine technology other objects may be acceptable.
 boolean uses(String includeOption)
          Return true if the context needs this part of the portal
 

Method Detail

put

void put(String string,
         Object value)
Set a value agaaisnt a Key, normally a value might be a String, Collection or a Map, but depending on the render engine technology other objects may be acceptable.

Parameters:
string -
value -

dump

String dump()
Convert the render context to a string suitable for dumping to a log file or console.

Returns:

uses

boolean uses(String includeOption)
Return true if the context needs this part of the portal

Parameters:
includeOption -
Returns:

getRenderEngine

PortalRenderEngine getRenderEngine()
Get the render engine associated with this context.

Returns:


Copyright © 2003-2012 Sakai Project. All Rights Reserved.