|
Clearspace API (1.10.16) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.community.widget.WidgetContext
public class WidgetContext
The widget context is passed to all Widgets when the render method is invoked. The
context contains key information about the container of the widget, providing widget authors
access the the inforamtion required to render the widget appropriately.
| Constructor Summary | |
|---|---|
WidgetContext(JiveContext jiveContext,
User user,
AuthToken authToken,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Creates a WidgetContext with all the necessary information for a widget author to
render their widget. |
|
WidgetContext(JiveContext jiveContext,
User user,
AuthToken authToken,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Community community)
Creates a WidgetContext with all the necessary information for a widget author to
render their widget, as well as the parent community of the widget. |
|
WidgetContext(JiveContext jiveContext,
User user,
AuthToken authToken,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Community community,
boolean isEdit)
Creates a WidgetContext with all the necessary information for a widget author to
render their widget, as well as the parent community of the widget. |
|
| Method Summary | |
|---|---|
AuthToken |
getAuthToken()
Gets the current page user's auth token |
Community |
getCommunity()
Gets the community object for this widget context, or null if the widget is being rendered outside of a community. |
JiveContext |
getJiveContext()
Gets the jive context for the current page user |
javax.servlet.http.HttpServletRequest |
getRequest()
Gets the http servlet request object |
javax.servlet.http.HttpServletResponse |
getResponse()
Gets the http servlet response object |
User |
getUser()
Gets the current page user, or null if annonymous |
boolean |
isEdit()
Returns true if the parent container is currently in edit mode and false if it is not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WidgetContext(JiveContext jiveContext,
User user,
AuthToken authToken,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
WidgetContext with all the necessary information for a widget author to
render their widget.
jiveContext - the jiveContext for the page useruser - the page userauthToken - the auth token of the page userrequest - the http servlet request objectresponse - the http servlet response object
public WidgetContext(JiveContext jiveContext,
User user,
AuthToken authToken,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Community community)
WidgetContext with all the necessary information for a widget author to
render their widget, as well as the parent community of the widget.
jiveContext - the jiveContext for the page useruser - the page userauthToken - the auth token of the page userrequest - the http servlet request objectresponse - the http servlet response objectcommunity - the parent community object
public WidgetContext(JiveContext jiveContext,
User user,
AuthToken authToken,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Community community,
boolean isEdit)
WidgetContext with all the necessary information for a widget author to
render their widget, as well as the parent community of the widget.
jiveContext - the jiveContext for the page useruser - the page userauthToken - the auth token of the page userrequest - the http servlet request objectresponse - the http servlet response objectcommunity - the parent community objectisEdit - specifies wether the parent container is currently in edit mode.| Method Detail |
|---|
public JiveContext getJiveContext()
public User getUser()
public AuthToken getAuthToken()
public javax.servlet.http.HttpServletRequest getRequest()
public javax.servlet.http.HttpServletResponse getResponse()
public Community getCommunity()
public boolean isEdit()
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||