Jive API (4.5.7.0) Core Javadocs

com.jivesoftware.community.widget
Class PersonalizedHomepageWidgetContext

java.lang.Object
  extended by com.jivesoftware.community.widget.BaseWidgetContext
      extended by com.jivesoftware.community.widget.PersonalizedHomepageWidgetContext
All Implemented Interfaces:
com.jivesoftware.community.widget.WidgetContext

public class PersonalizedHomepageWidgetContext
extends BaseWidgetContext

A widget context specifically for personalized homepage widgets.


Constructor Summary
PersonalizedHomepageWidgetContext(User user, AuthToken authToken, HttpServletRequest request, HttpServletResponse response)
          Creates a PersonalizedHomepageWidgetContext with all the necessary information for a widget author to render their widget.
PersonalizedHomepageWidgetContext(User user, AuthToken authToken, HttpServletRequest request, HttpServletResponse response, boolean edit)
          Creates a UserProfileWidgetContext of a given type with all the necessary information for a widget author to render their widget.
 
Method Summary
 JiveContainer getContainer()
          Subclasses should override this method to provide their container.
 
Methods inherited from class com.jivesoftware.community.widget.BaseWidgetContext
getAuthToken, getLocale, getRequest, getResponse, getUser, getWidgetType, isEdit, isRemote
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersonalizedHomepageWidgetContext

public PersonalizedHomepageWidgetContext(User user,
                                         AuthToken authToken,
                                         HttpServletRequest request,
                                         HttpServletResponse response)
Creates a PersonalizedHomepageWidgetContext with all the necessary information for a widget author to render their widget.

Parameters:
user - the page user
authToken - the auth token of the page user
request - the http servlet request object
response - the http servlet response object

PersonalizedHomepageWidgetContext

public PersonalizedHomepageWidgetContext(User user,
                                         AuthToken authToken,
                                         HttpServletRequest request,
                                         HttpServletResponse response,
                                         boolean edit)
Creates a UserProfileWidgetContext of a given type with all the necessary information for a widget author to render their widget.

Parameters:
user - the page user
authToken - the auth token of the page user
request - the http servlet request object
response - the http servlet response object
edit - specifies wether the parent container is currently in edit mode.
Method Detail

getContainer

public JiveContainer getContainer()
Description copied from class: BaseWidgetContext
Subclasses should override this method to provide their container.

Specified by:
getContainer in interface com.jivesoftware.community.widget.WidgetContext
Overrides:
getContainer in class BaseWidgetContext
Returns:
the container associated with this widget context.

Jive Product Page

Copyright © 1999-2007 Jive Software.