com.jivesoftware.community.widget
Class CommunityWidgetContext
java.lang.Object
com.jivesoftware.community.widget.BaseWidgetContext
com.jivesoftware.community.widget.CommunityWidgetContext
public class CommunityWidgetContext
- extends BaseWidgetContext
A widget context specifically for community widgets.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommunityWidgetContext
public CommunityWidgetContext(User user,
AuthToken authToken,
HttpServletRequest request,
HttpServletResponse response,
Community community)
- Creates a
CommunityWidgetContext with all the necessary
information for a widget author to render their widget.
- Parameters:
user - the page userauthToken - the auth token of the page userrequest - the http servlet request objectresponse - the http servlet response objectcommunity - the community for the widget
CommunityWidgetContext
public CommunityWidgetContext(User user,
AuthToken authToken,
HttpServletRequest request,
HttpServletResponse response,
Community community,
boolean edit)
- Creates a
CommunityWidgetContext of a given type with all the necessary
information for a widget author to render their widget.
- Parameters:
user - the page userauthToken - the auth token of the page userrequest - the http servlet request objectresponse - the http servlet response objectcommunity - the community for the widgetedit - specifies wether the parent container is currently in edit mode.
getCommunity
public Community getCommunity()
- Get the community from the widget context.
- Returns:
- the community from the widget context
Copyright © 1999-2007 Jive Software.