|
Clearspace API (1.7.0) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.xwork.ActionSupport
com.jivesoftware.community.action.JiveActionSupport
public class JiveActionSupport
A base action class that handles a set of common Jive code. This class extends the WebWork ActionSupport class which provides a lot of handy WebWork utilities.
| Field Summary | |
|---|---|
static java.lang.String |
CANCEL
An action return type that indicates the user wants to cancel the current process. |
protected static java.util.Map<java.lang.String,java.lang.String> |
i18nEditionKeys
|
static java.lang.String |
NOTFOUND
An action return type that indicates that the resource being requested doesn't exist. |
protected javax.servlet.http.HttpServletRequest |
request
|
protected javax.servlet.http.HttpServletResponse |
response
|
protected java.util.Map<java.lang.String,java.lang.Object> |
session
|
protected static java.lang.String |
SESSION_REFERRER_KEY
|
static java.lang.String |
UNAUTHORIZED
An action return type that indicates the user is not authorized to what they requested. |
protected User |
user
|
| Fields inherited from class com.opensymphony.xwork.ActionSupport |
|---|
LOG |
| Fields inherited from interface com.opensymphony.xwork.Action |
|---|
ERROR, INPUT, LOGIN, NONE, SUCCESS |
| Constructor Summary | |
|---|---|
JiveActionSupport()
|
|
| Method Summary | |
|---|---|
java.lang.String |
doCancel()
|
java.lang.String |
doInput()
|
java.lang.String |
execute()
Default implementation of doExecute() method. |
com.jivesoftware.community.xmpp.IMService |
getAIMIMService()
|
AuthToken |
getAuthToken()
|
static java.util.Map<java.lang.String,java.lang.String> |
getContainerKeys()
Used in conjunction with the overridden getText(...) method below, this method loads up all the EN properties files and examines each one for the existence of a matching "...internal" and "...external" key. |
static java.lang.String |
getDefaultBaseURL()
Returns the base URL of this Jive installation - usually: http://[yoursite]/[webapp-path] This uses the Jive property of jiveURL which is settable through the config file or admin console. |
protected java.lang.String |
getGuestProperty(java.lang.String name)
Returns a guest property. |
JiveContext |
getJiveContext()
|
java.util.List<java.util.Locale> |
getLocales()
Returns a list of available locales as a sorted list of Locale objects. |
java.lang.String |
getPageURL()
Returns the URL of the current page as a string. |
org.xmpp.packet.Presence |
getPresence(User user)
|
javax.servlet.http.HttpServletRequest |
getRequest()
|
javax.servlet.http.HttpServletResponse |
getResponse()
|
java.util.Map<java.lang.String,java.lang.Object> |
getSession()
|
java.lang.String |
getText(java.lang.String key)
Override the getText(..) in ActionSupport so that we can intercept keys that are specific to either the internal or external editions of Clearspace. |
java.lang.String |
getText(java.lang.String aTextName,
java.util.List args)
|
java.lang.String |
getText(java.lang.String aTextName,
java.lang.String defaultValue)
|
java.lang.String |
getText(java.lang.String key,
java.lang.String[] args)
|
java.lang.String |
getText(java.lang.String aTextName,
java.lang.String defaultValue,
java.util.List args)
|
java.lang.String |
getText(java.lang.String key,
java.lang.String defaultValue,
java.util.List args,
com.opensymphony.xwork.util.OgnlValueStack stack)
Override the getText(..) in ActionSupport so that we can intercept keys that are specific to either the internal or external editions of Clearspace. |
java.lang.String |
getText(java.lang.String aTextName,
java.lang.String defaultValue,
java.lang.String obj)
|
java.lang.String |
getText(java.lang.String key,
java.lang.String defaultValue,
java.lang.String[] args)
|
java.lang.String |
getText(java.lang.String key,
java.lang.String defaultValue,
java.lang.String[] args,
com.opensymphony.xwork.util.OgnlValueStack stack)
|
java.util.ResourceBundle |
getTexts()
|
java.util.ResourceBundle |
getTexts(java.lang.String aBundleName)
|
java.util.TimeZone |
getTimeZone()
Returns the page user's time zone. |
java.lang.String[][] |
getTimeZones()
Returns a list of time zones as a double String array. |
User |
getUser()
|
WidgetContext |
getWidgetContext()
|
com.jivesoftware.community.xmpp.IMService |
getXMPPIMService()
|
protected boolean |
isFailedLookup(java.lang.String name)
Lookup cache - this should be used if you want to note and remember a lookup on a field. |
boolean |
isGuest()
Returns true if the page user is a guest or false if they're logged in. |
boolean |
isNewAccountCreationEnabled()
|
boolean |
isReadTrackingEnabled()
Returns true if read tracking is enabled across the system. |
boolean |
isSystemAdmin()
Returns true if the page user is the system admin, false otherwise. |
boolean |
isUserBannedFromPosting()
|
java.util.List |
loadTagList(java.lang.String tags)
Retuns a List of ContentTag objects from the given space or + delimited
list of tags. |
void |
setAuthToken(AuthToken authToken)
|
protected void |
setGuestProperty(java.lang.String name,
java.lang.String value)
Sets a guest cookie. |
void |
setJiveContext(JiveContext jiveContext)
|
void |
setServletRequest(javax.servlet.http.HttpServletRequest request)
|
void |
setServletResponse(javax.servlet.http.HttpServletResponse response)
|
void |
setSession(java.util.Map session)
|
void |
setUser(User user)
|
| Methods inherited from class com.opensymphony.xwork.ActionSupport |
|---|
addActionError, addActionMessage, addFieldError, clearErrorsAndMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, pause, setActionErrors, setActionMessages, setFieldErrors, validate |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CANCEL
public static final java.lang.String NOTFOUND
public static final java.lang.String UNAUTHORIZED
Action.LOGIN since the workflow in this
case can be more specific to the error (ie, the user is presented with "Sorry, you
don't have access to ..." instead of just pushing them to the login screen.
protected static final java.lang.String SESSION_REFERRER_KEY
protected static java.util.Map<java.lang.String,java.lang.String> i18nEditionKeys
protected User user
protected java.util.Map<java.lang.String,java.lang.Object> session
protected javax.servlet.http.HttpServletRequest request
protected javax.servlet.http.HttpServletResponse response
| Constructor Detail |
|---|
public JiveActionSupport()
| Method Detail |
|---|
public void setAuthToken(AuthToken authToken)
setAuthToken in interface com.jivesoftware.community.action.AuthTokenAwarepublic void setUser(User user)
setUser in interface com.jivesoftware.community.action.UserAwarepublic void setJiveContext(JiveContext jiveContext)
setJiveContext in interface com.jivesoftware.community.action.JiveContextAwarepublic void setSession(java.util.Map session)
setSession in interface com.opensymphony.webwork.interceptor.SessionAwarepublic void setServletRequest(javax.servlet.http.HttpServletRequest request)
setServletRequest in interface com.opensymphony.webwork.interceptor.ServletRequestAwarepublic void setServletResponse(javax.servlet.http.HttpServletResponse response)
setServletResponse in interface com.opensymphony.webwork.interceptor.ServletResponseAwarepublic AuthToken getAuthToken()
public User getUser()
public JiveContext getJiveContext()
public java.util.Map<java.lang.String,java.lang.Object> getSession()
public javax.servlet.http.HttpServletRequest getRequest()
public javax.servlet.http.HttpServletResponse getResponse()
public java.lang.String doCancel()
public java.lang.String doInput()
doInput in class com.opensymphony.xwork.ActionSupportpublic java.lang.String execute()
execute in interface com.opensymphony.xwork.Actionexecute in class com.opensymphony.xwork.ActionSupportpublic boolean isGuest()
public boolean isSystemAdmin()
public java.util.List<java.util.Locale> getLocales()
public java.util.TimeZone getTimeZone()
LocaleUtils.getTimeZone(javax.servlet.http.HttpServletRequest, User)public java.lang.String[][] getTimeZones()
protected boolean isFailedLookup(java.lang.String name)
name - The name to check for in the failed lookup cache
protected java.lang.String getGuestProperty(java.lang.String name)
name - the name of the property to retieve.
protected void setGuestProperty(java.lang.String name,
java.lang.String value)
name - the name of the property to set.value - the property value.public org.xmpp.packet.Presence getPresence(User user)
public java.lang.String getPageURL()
public boolean isReadTrackingEnabled()
public static java.util.Map<java.lang.String,java.lang.String> getContainerKeys()
public java.lang.String getText(java.lang.String key)
ActionSupport.getText(String).
getText in interface com.opensymphony.xwork.TextProvidergetText in class com.opensymphony.xwork.ActionSupport
public java.lang.String getText(java.lang.String key,
java.lang.String defaultValue,
java.util.List args,
com.opensymphony.xwork.util.OgnlValueStack stack)
ActionSupport.getText(String, String, java.util.List, com.opensymphony.xwork.util.OgnlValueStack).
getText in interface com.opensymphony.xwork.TextProvidergetText in class com.opensymphony.xwork.ActionSupportpublic static java.lang.String getDefaultBaseURL()
JiveGlobals.getDefaultBaseURL()public java.util.List loadTagList(java.lang.String tags)
ContentTag objects from the given space or + delimited
list of tags.
tags - a space or plus (+) delimited list of tags to filter by
ContentTag objects from the given space or + delimited list of tagspublic com.jivesoftware.community.xmpp.IMService getXMPPIMService()
public com.jivesoftware.community.xmpp.IMService getAIMIMService()
public boolean isUserBannedFromPosting()
public boolean isNewAccountCreationEnabled()
public WidgetContext getWidgetContext()
public java.lang.String getText(java.lang.String aTextName,
java.lang.String defaultValue)
getText in interface com.opensymphony.xwork.TextProvidergetText in class com.opensymphony.xwork.ActionSupport
public java.lang.String getText(java.lang.String aTextName,
java.lang.String defaultValue,
java.lang.String obj)
getText in interface com.opensymphony.xwork.TextProvidergetText in class com.opensymphony.xwork.ActionSupport
public java.lang.String getText(java.lang.String aTextName,
java.util.List args)
getText in interface com.opensymphony.xwork.TextProvidergetText in class com.opensymphony.xwork.ActionSupport
public java.lang.String getText(java.lang.String key,
java.lang.String[] args)
getText in interface com.opensymphony.xwork.TextProvidergetText in class com.opensymphony.xwork.ActionSupport
public java.lang.String getText(java.lang.String aTextName,
java.lang.String defaultValue,
java.util.List args)
getText in interface com.opensymphony.xwork.TextProvidergetText in class com.opensymphony.xwork.ActionSupport
public java.lang.String getText(java.lang.String key,
java.lang.String defaultValue,
java.lang.String[] args)
getText in interface com.opensymphony.xwork.TextProvidergetText in class com.opensymphony.xwork.ActionSupport
public java.lang.String getText(java.lang.String key,
java.lang.String defaultValue,
java.lang.String[] args,
com.opensymphony.xwork.util.OgnlValueStack stack)
getText in interface com.opensymphony.xwork.TextProvidergetText in class com.opensymphony.xwork.ActionSupportpublic java.util.ResourceBundle getTexts()
getTexts in interface com.opensymphony.xwork.TextProvidergetTexts in class com.opensymphony.xwork.ActionSupportpublic java.util.ResourceBundle getTexts(java.lang.String aBundleName)
getTexts in interface com.opensymphony.xwork.TextProvidergetTexts in class com.opensymphony.xwork.ActionSupport
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||