Class AbstractPreviewPageAction
java.lang.Object
org.apache.struts2.ActionSupport
com.opensymphony.xwork2.ActionSupport
com.atlassian.confluence.core.AbstractI18nActionSupport
com.atlassian.confluence.core.ConfluenceActionSupport
com.atlassian.confluence.pages.actions.AbstractPageAwareAction
com.atlassian.confluence.pages.actions.AbstractPageAction
com.atlassian.confluence.pages.actions.AbstractPreviewPageAction
- All Implemented Interfaces:
Beanable,PageAware,TinyUrlAware,WebInterface,MessageHolderAware,com.opensymphony.xwork2.Action,com.opensymphony.xwork2.interceptor.ValidationAware,com.opensymphony.xwork2.LocaleProvider,com.opensymphony.xwork2.TextProvider,com.opensymphony.xwork2.Validateable,Serializable,org.apache.struts2.action.Action,org.apache.struts2.interceptor.ValidationAware,org.apache.struts2.Validateable
- Direct Known Subclasses:
AbstractTemplatePageAction,AddCommentAction,EditCommentAction
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.opensymphony.xwork2.interceptor.ValidationAware
com.opensymphony.xwork2.interceptor.ValidationAware.LegacyAdapter -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringDeprecated.since 5.3 (and really much much longer)protected Mapprotected FormatConverterprotected booleanDeprecated.since 5.3 (and really much much longer)protected StringDeprecated.since 5.3 (and really much much longer)protected StringThe current content in storageFormat ready for saving.protected com.atlassian.renderer.WikiStyleRendererprotected StringThe editor content.Fields inherited from class com.atlassian.confluence.pages.actions.AbstractPageAction
incomingLinks, linkManager, pageManager, PREVIEW, RICHTEXT, viewRenderer, wysiwygConverterFields inherited from class com.atlassian.confluence.pages.actions.AbstractPageAwareAction
contentPermissionManager, spaceManagerFields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
accessModeService, CANCEL, confluenceAccessManager, contentUiSupport, eventPublisher, formatSettingsManager, globalSettingsManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, localeManager, loginManager, messageHolder, permissionManager, pluginAccessor, request, response, spacePermissionManager, strutsHelper, systemInformationService, userAccessor, webInterfaceManagerFields inherited from class org.apache.struts2.ActionSupport
containerFields inherited from interface org.apache.struts2.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBean()protected StringReturns the content that has been submitted as part of a user's attempt to add new content or edit existing content.protected ConversionContextgetEditorFormattedContent(String storageFormat) booleanDeprecated.since 5.3 (and really much much longer)protected com.atlassian.renderer.RenderContextprotected StringEither - return the content entered via the editor (in the case of returning to the edit page due to validation failures or things like that).voidDeprecated.since 5.3 (and really much much longer)voidsetFormatConverter(FormatConverter formatConverter) voidsetInPreview(boolean inPreview) Deprecated.since 5.3 (and really much much longer)voidsetPreview(String preview) Deprecated.since 5.3 (and really much much longer)voidsetWikiStyleRenderer(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer) voidsetWysiwygContent(String content) protected voidvoidvalidate()Convert the editor content to storageFormat, catching and reporting any problems in the process.Methods inherited from class com.atlassian.confluence.pages.actions.AbstractPageAction
displayDatePath, getAttachmentSourceContent, getAvailableSpaces, getBeanKey, getBlogPost, getEditorVersion, getHelper, getIncomingLinks, getLabels, getMode, getNextPost, getNumberOfAttachmentsAsString, getNumberOfLabelsAsString, getPermissionTypes, getPermittedChildren, getPostingDateAsDate, getPostingDay, getPostingTimeAsTime, getPreviousPost, getPreviousVersion, getSpaceManager, getSuggestedLabels, getTinyUrl, getWebInterfaceContext, hasAttachFilePermissions, hasPermittedChildren, isSpaceAdmin, isSuperUser, isUserWatchingOwnContent, setConfluenceWysiwygConverter, setEditorManager, setLinkManager, setMode, setPageManager, setPostingDate, setPostingTime, setViewRendererMethods inherited from class com.atlassian.confluence.pages.actions.AbstractPageAwareAction
getCustomPageUrl, getPage, getPageId, getPageUrl, getSpace, getSpaceKey, getTitle, isCollaborativeContent, isLatestVersionRequired, isPageRequired, isPermitted, isViewPermissionRequired, setContentPermissionManager, setPage, setSpaceManagerMethods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, getActionErrors, getActionMessages, getActionName, getAuthenticatedUser, getBootstrapStatusProvider, getCancelResult, getCurrentRequest, getCurrentResponse, getDateFormatter, getDefaultTimeZone, getFieldErrors, getGlobalSettings, getI18n, getLocale, getMessageHolder, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getTimeZone, getUserByName, getUserInterfaceState, isAnonymousUser, isEmailVisible, setAccessModeService, setBootstrapStatusProvider, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventPublisher, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setSettingsManager, setSkipIsPermitted, setSpacePermissionManager, setStrutsHelper, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, shouldSkipIsPermittedMethods inherited from class com.atlassian.confluence.core.AbstractI18nActionSupport
getText, getText, getText, getText, getText, getText, getText, getText, getTextStrictMethods inherited from class org.apache.struts2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, execute, getContainer, getFormatted, getLocaleProvider, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, toLocaleMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.struts2.action.Action
executeMethods inherited from interface com.atlassian.confluence.pages.actions.PageAware
isEditPermissionRequiredMethods inherited from interface org.apache.struts2.interceptor.ValidationAware
addActionError, addActionMessage, addFieldError, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors
-
Field Details
-
formatConverter
-
wikiStyleRenderer
protected com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer -
preview
Deprecated.since 5.3 (and really much much longer)This ancient unused field used to do something when there were full page reloads for going to preview/edit/back -
back
Deprecated.since 5.3 (and really much much longer)This ancient unused field used to do something when there were full page reloads for going to preview/edit/back -
bean
-
wysiwygContent
The editor content. -
storageFormat
The current content in storageFormat ready for saving. This is set during the validate call on the action. Anything taking place after validation can assume this field to be populated. -
inPreview
Deprecated.since 5.3 (and really much much longer)This ancient unused field used to do something when there were full page reloads for going to preview/edit/back
-
-
Constructor Details
-
AbstractPreviewPageAction
public AbstractPreviewPageAction()
-
-
Method Details
-
getBean
-
setInPreview
Deprecated.since 5.3 (and really much much longer)This ancient unused method used to do something when there were full page reloads for going to preview/edit/back -
getInPreview
Deprecated.since 5.3 (and really much much longer)This ancient unused method used to do something when there were full page reloads for going to preview/edit/back -
setPreview
Deprecated.since 5.3 (and really much much longer)This ancient unused method used to do something when there were full page reloads for going to preview/edit/back -
setBack
Deprecated.since 5.3 (and really much much longer)This ancient unused method used to do something when there were full page reloads for going to preview/edit/back -
setWysiwygContent
-
getxHtmlContent
-
setWikiStyleRenderer
public void setWikiStyleRenderer(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer) -
setFormatConverter
-
updateXHtmlContent
protected void updateXHtmlContent() -
validate
public void validate()Convert the editor content to storageFormat, catching and reporting any problems in the process. On successful validation, the storageFormat field will be populated with a storage format representation of the editor content, ready for saving.- Specified by:
validatein interfaceMessageHolderAware- Specified by:
validatein interfaceorg.apache.struts2.Validateable- Overrides:
validatein classAbstractPageAction
-
getWysiwygContent
Either -- return the content entered via the editor (in the case of returning to the edit page due to validation failures or things like that).
- or set the content from the CEO that is being edited.
- Returns:
- the editor formatted content for the CEO being edited.
- Throws:
XhtmlException
-
getEditorFormattedContent
- Parameters:
storageFormat- the storage data to be converted for editing.- Returns:
- the supplied storage formatted content in editor format
-
getContentForSaving
Returns the content that has been submitted as part of a user's attempt to add new content or edit existing content. The content is returned in storage format ready for saving.- Returns:
- the content that has been submitted as part of a user's attempt to add new content or edit existing content.
- Throws:
XhtmlParsingExceptionXhtmlException
-
getRenderContext
protected com.atlassian.renderer.RenderContext getRenderContext() -
getConversionContext
-
getStorageFormat
- Returns:
- the content that a user has submitted from the editor but converted to storage format.
- Throws:
XhtmlException
-