|
Clearspace API (2.5.22) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.xwork2.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 | |
|---|---|
protected AuthenticationProvider |
authProvider
|
protected BanManager |
banManager
|
static String |
CANCEL
An action return type that indicates the user wants to cancel the current process. |
static String |
DISABLED
An action return type that indicates that a given feature has been disabled and is not available to the end user. |
protected WikiConversionAction |
dwrWikiConversionBean
|
protected JiveObjectLoader |
jiveObjectLoader
|
static String |
NOTFOUND
An action return type that indicates that the resource being requested doesn't exist. |
protected ProjectManager |
projectManager
|
protected RegistrationManager |
registrationManager
|
protected HttpServletRequest |
request
|
protected HttpServletResponse |
response
|
protected Map<String,Object> |
session
|
protected static String |
SESSION_REFERRER_KEY
|
protected SocialGroupManager |
socialGroupManager
|
static String |
UNAUTHENTICATED
Action return indicating that an authentication failure has prevented the user from proceeding. |
static String |
UNAUTHORIZED
An action return type that indicates the user is not authorized to what they requested. |
protected UserManager |
userManager
|
protected UserRelationshipManager |
userRelationshipManager
|
| Fields inherited from class com.opensymphony.xwork2.ActionSupport |
|---|
LOG |
| Fields inherited from interface com.opensymphony.xwork2.Action |
|---|
ERROR, INPUT, LOGIN, NONE, SUCCESS |
| Constructor Summary | |
|---|---|
JiveActionSupport()
|
|
| Method Summary | |
|---|---|
boolean |
acceptableParameterName(String parameterName)
[CSSEC-38] Do not allow parameters that could access methods, such as ? |
static void |
addI18nEditionKeys(Map<String,String> newKeys)
Allows additional i18n edition keys to be added after initialization (eg. when the chat plugin is loaded). |
String |
cancel()
|
String |
convertToWikiSyntax(JiveContentObject object)
|
String |
execute()
|
protected void |
filterDocument(Document doc)
|
String |
getActionMappingName()
Returns the current struts context's action mapping name as defined in the struts configuration file. |
IMService |
getAIMIMService()
|
AuthenticationProvider |
getAuthenticationProvider()
|
AuthToken |
getAuthToken()
|
String |
getCalendarFileName()
Returns the name of the localized javascript filename for the current locale for use within the datetime picker. |
String |
getCalendarOverrideFormat()
Returns the name of the localized javascript override filename for the current locale for use within the datetime picker. |
boolean |
getCanCreateSocialGroup()
|
static 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. |
RenderManager |
getGlobalRenderManager()
|
protected String |
getGuestProperty(String name)
Returns a guest property. |
JiveImageUrlBuilder |
getImageUrlBuilder()
|
JiveContext |
getJiveContext()
|
JiveLinkBuilder |
getJiveLinkBuilder()
|
JiveObjectLoader |
getJiveObjectLoader()
|
List<Locale> |
getLocales()
Returns a list of available locales as a sorted list of Locale objects. |
String |
getPageURL()
Returns the URL of the current page as a string. |
String |
getPreferredEditorMode()
|
org.xmpp.packet.Presence |
getPresence(User user)
|
protected static int |
getRecentContentMapSize()
|
HttpServletRequest |
getRequest()
|
HttpServletResponse |
getResponse()
|
Map<String,Object> |
getSession()
|
String |
getText(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. |
String |
getText(String key,
List args)
|
String |
getText(String aTextName,
String defaultValue)
|
String |
getText(String key,
String[] args)
|
String |
getText(String key,
String defaultValue,
List args)
|
String |
getText(String key,
String defaultValue,
List args,
com.opensymphony.xwork2.util.ValueStack stack)
Override the getText(..) in ActionSupport so that we can intercept keys that are specific to either the internal or external editions of Clearspace. |
String |
getText(String aTextName,
String defaultValue,
String obj)
|
String |
getText(String key,
String defaultValue,
String[] args)
|
String |
getText(String key,
String defaultValue,
String[] args,
com.opensymphony.xwork2.util.OgnlValueStack stack)
|
ResourceBundle |
getTexts()
|
ResourceBundle |
getTexts(String aBundleName)
|
TimeZone |
getTimeZone()
Returns the page user's time zone. |
String[][] |
getTimeZones()
Returns a list of time zones as a double String array. |
User |
getUser()
NOTE: DO NOT call this method from a DWR-called method. |
Iterator<SocialGroup> |
getUserGroups()
|
Iterator<Project> |
getUserTrackedProjects()
|
WidgetContext |
getWidgetContext()
|
IMService |
getXMPPIMService()
|
String |
input()
|
boolean |
isChatAvailable()
Indicates whether chat plugin is installed and therefore chat functionality is available. |
protected boolean |
isFailedLookup(String name)
Lookup cache - this should be used if you want to note and remember a lookup on a field. |
boolean |
isFriendingEnabled()
|
boolean |
isFriendingReflexive()
|
boolean |
isGuest()
Returns true if the page user is a guest or false if they're logged in. |
boolean |
isNewAccountCreationEnabled()
|
boolean |
isOrgChartingEnabled()
|
boolean |
isProjectsEnabled()
|
boolean |
isReadTrackingEnabled()
Returns true if read tracking is enabled across the system. |
boolean |
isSocialGroupsEnabled()
|
boolean |
isWatchable()
Returns true if there is a logged in user and watches are enabled. |
protected boolean |
isWikiContentEmpty(String body)
|
JiveContainer |
loadJiveContainer(int objectType,
long objectID)
|
List<ContentTag> |
loadTagList(String tags)
Retuns a List of ContentTag objects from the given space or + delimited list of tags. |
String |
renderSubjectToHtml(JiveContentObject object)
|
String |
renderSubjectToText(JiveContentObject object)
|
String |
renderTagToHtml(ContentTag tag)
|
String |
renderTagToHtml(String tag)
|
String |
renderToHtml(JiveContentObject object)
|
String |
renderToHtml(JiveContentObject object,
int size)
|
String |
renderToText(JiveContentObject object)
|
void |
setAuthenticationProvider(AuthenticationProvider ap)
|
void |
setAuthToken(AuthToken token)
Deprecated. |
void |
setBanManager(BanManager banManager)
|
void |
setDwrWikiConversionBean(WikiConversionAction dwrWikiConversionBean)
|
void |
setGlobalRenderManager(RenderManager globalRenderManager)
|
protected void |
setGuestProperty(String name,
String value)
Sets a guest cookie. |
void |
setImageUrlBuilder(JiveImageUrlBuilder imageUrlBuilder)
|
void |
setJiveContext(JiveContext jiveContext)
|
void |
setJiveLinkBuilder(JiveLinkBuilder jiveLinkBuilder)
|
void |
setJiveObjectLoader(JiveObjectLoader jiveObjectLoader)
|
void |
setProjectManager(ProjectManager projectManager)
|
void |
setRegistrationManager(RegistrationManager registrationManager)
|
void |
setServletRequest(HttpServletRequest request)
|
void |
setServletResponse(HttpServletResponse response)
|
void |
setSession(Map session)
|
void |
setSocialGroupManager(SocialGroupManager socialGroupManager)
|
void |
setUserManager(UserManager userManager)
|
void |
setUserRelationshipManager(UserRelationshipManager userRelationshipManager)
|
String |
toHTMLEditorString(JiveContentObject object,
Document d)
|
String |
toRTEString(JiveContentObject object,
Document d)
|
Document |
unknownContentToJiveDoc(String rawText,
JiveObject contentObject)
|
| Methods inherited from class com.opensymphony.xwork2.ActionSupport |
|---|
addActionError, addActionMessage, addFieldError, clearErrorsAndMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, pause, setActionErrors, setActionMessages, setFieldErrors, validate |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected UserManager userManager
protected ProjectManager projectManager
protected SocialGroupManager socialGroupManager
protected UserRelationshipManager userRelationshipManager
protected RegistrationManager registrationManager
public static final String CANCEL
public static final String NOTFOUND
public static final 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.
public static final String DISABLED
public static final String UNAUTHENTICATED
protected static final String SESSION_REFERRER_KEY
protected Map<String,Object> session
protected HttpServletRequest request
protected HttpServletResponse response
protected AuthenticationProvider authProvider
protected WikiConversionAction dwrWikiConversionBean
protected BanManager banManager
protected JiveObjectLoader jiveObjectLoader
| Constructor Detail |
|---|
public JiveActionSupport()
| Method Detail |
|---|
public void setBanManager(BanManager banManager)
public JiveObjectLoader getJiveObjectLoader()
public final void setJiveObjectLoader(JiveObjectLoader jiveObjectLoader)
public final void setJiveContext(JiveContext jiveContext)
public final void setAuthenticationProvider(AuthenticationProvider ap)
public void setSession(Map session)
setSession in interface org.apache.struts2.interceptor.SessionAwarepublic void setServletRequest(HttpServletRequest request)
setServletRequest in interface org.apache.struts2.interceptor.ServletRequestAwarepublic void setServletResponse(HttpServletResponse response)
setServletResponse in interface org.apache.struts2.interceptor.ServletResponseAware@Deprecated public void setAuthToken(AuthToken token)
public AuthToken getAuthToken()
public AuthenticationProvider getAuthenticationProvider()
public void setDwrWikiConversionBean(WikiConversionAction dwrWikiConversionBean)
public String getPreferredEditorMode()
public final User getUser()
public JiveContext getJiveContext()
public Map<String,Object> getSession()
public HttpServletRequest getRequest()
public HttpServletResponse getResponse()
public String cancel()
public String input()
input in class com.opensymphony.xwork2.ActionSupportpublic String execute()
execute in interface com.opensymphony.xwork2.Actionexecute in class com.opensymphony.xwork2.ActionSupportpublic boolean isGuest()
public List<Locale> getLocales()
public String getCalendarFileName()
public String getCalendarOverrideFormat()
public TimeZone getTimeZone()
com.jivesoftware.util.LocaleUtils#getTimeZone(javax.servlet.http.HttpServletRequest, User)public String[][] getTimeZones()
protected boolean isFailedLookup(String name)
name - The name to check for in the failed lookup cache
protected String getGuestProperty(String name)
name - the name of the property to retieve.
protected void setGuestProperty(String name,
String value)
name - the name of the property to set.value - the property value.public org.xmpp.packet.Presence getPresence(User user)
public String getPageURL()
public boolean isReadTrackingEnabled()
public String getText(String key)
ActionSupport.getText(String).
getText in interface com.opensymphony.xwork2.TextProvidergetText in class com.opensymphony.xwork2.ActionSupport
public String getText(String key,
String defaultValue,
List args,
com.opensymphony.xwork2.util.ValueStack stack)
ActionSupport.getText(String, String, java.util.List,
com.opensymphony.xwork2.util.ValueStack).
getText in interface com.opensymphony.xwork2.TextProvidergetText in class com.opensymphony.xwork2.ActionSupportpublic static String getDefaultBaseURL()
com.jivesoftware.community.web.JiveResourceResolver#getDefaultBaseURL()public List<ContentTag> loadTagList(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 IMService getXMPPIMService()
public IMService getAIMIMService()
public boolean isNewAccountCreationEnabled()
public WidgetContext getWidgetContext()
public Iterator<Project> getUserTrackedProjects()
public Iterator<SocialGroup> getUserGroups()
public String getText(String aTextName,
String defaultValue)
getText in interface com.opensymphony.xwork2.TextProvidergetText in class com.opensymphony.xwork2.ActionSupport
public String getText(String aTextName,
String defaultValue,
String obj)
getText in interface com.opensymphony.xwork2.TextProvidergetText in class com.opensymphony.xwork2.ActionSupport
public String getText(String key,
List args)
getText in interface com.opensymphony.xwork2.TextProvidergetText in class com.opensymphony.xwork2.ActionSupport
public String getText(String key,
String[] args)
getText in interface com.opensymphony.xwork2.TextProvidergetText in class com.opensymphony.xwork2.ActionSupport
public String getText(String key,
String defaultValue,
List args)
getText in interface com.opensymphony.xwork2.TextProvidergetText in class com.opensymphony.xwork2.ActionSupport
public String getText(String key,
String defaultValue,
String[] args)
getText in interface com.opensymphony.xwork2.TextProvidergetText in class com.opensymphony.xwork2.ActionSupport
public String getText(String key,
String defaultValue,
String[] args,
com.opensymphony.xwork2.util.OgnlValueStack stack)
public ResourceBundle getTexts()
getTexts in interface com.opensymphony.xwork2.TextProvidergetTexts in class com.opensymphony.xwork2.ActionSupportpublic ResourceBundle getTexts(String aBundleName)
getTexts in interface com.opensymphony.xwork2.TextProvidergetTexts in class com.opensymphony.xwork2.ActionSupportpublic boolean isFriendingEnabled()
public boolean isFriendingReflexive()
public boolean isOrgChartingEnabled()
public boolean isProjectsEnabled()
public boolean isSocialGroupsEnabled()
public boolean getCanCreateSocialGroup()
public boolean isWatchable()
public JiveContainer loadJiveContainer(int objectType,
long objectID)
throws NotFoundException
NotFoundExceptionprotected void filterDocument(Document doc)
public String renderToText(JiveContentObject object)
public String renderSubjectToText(JiveContentObject object)
public String renderToHtml(JiveContentObject object)
public String renderTagToHtml(ContentTag tag)
public String renderTagToHtml(String tag)
public String renderToHtml(JiveContentObject object,
int size)
public String renderSubjectToHtml(JiveContentObject object)
public String convertToWikiSyntax(JiveContentObject object)
public String toRTEString(JiveContentObject object,
Document d)
public String toHTMLEditorString(JiveContentObject object,
Document d)
public Document unknownContentToJiveDoc(String rawText,
JiveObject contentObject)
public RenderManager getGlobalRenderManager()
public final void setGlobalRenderManager(RenderManager globalRenderManager)
public final void setUserManager(UserManager userManager)
public final void setProjectManager(ProjectManager projectManager)
public final void setSocialGroupManager(SocialGroupManager socialGroupManager)
public final void setRegistrationManager(RegistrationManager registrationManager)
public final void setUserRelationshipManager(UserRelationshipManager userRelationshipManager)
public JiveImageUrlBuilder getImageUrlBuilder()
public void setImageUrlBuilder(JiveImageUrlBuilder imageUrlBuilder)
public JiveLinkBuilder getJiveLinkBuilder()
public void setJiveLinkBuilder(JiveLinkBuilder jiveLinkBuilder)
protected static int getRecentContentMapSize()
public boolean acceptableParameterName(String parameterName)
acceptableParameterName in interface com.opensymphony.xwork2.interceptor.ParameterNameAwareparameterName - the request parameter
public boolean isChatAvailable()
public String getActionMappingName()
public static void addI18nEditionKeys(Map<String,String> newKeys)
newKeys - the new keys to add.protected boolean isWikiContentEmpty(String body)
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||