public abstract class AbstractPreviewPageAction extends AbstractPageAction implements Beanable
| Modifier and Type | Field and Description |
|---|---|
protected String |
back
Deprecated.
since 5.3 (and really much much longer)
|
protected Map |
bean |
protected FormatConverter |
formatConverter |
protected boolean |
inPreview
Deprecated.
since 5.3 (and really much much longer)
|
protected String |
preview
Deprecated.
since 5.3 (and really much much longer)
|
protected String |
storageFormat
The current content in storageFormat ready for saving.
|
protected com.atlassian.renderer.WikiStyleRenderer |
wikiStyleRenderer |
protected String |
wysiwygContent
The editor content.
|
incomingLinks, linkManager, pageManager, PREVIEW, RICHTEXT, viewRenderer, wysiwygConvertercontentPermissionManager, spaceManageraccessModeService, CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, personService, pluginAccessor, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager| Constructor and Description |
|---|
AbstractPreviewPageAction() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getBean() |
protected String |
getContentForSaving()
Returns the content that has been submitted as part of a user's attempt to add new content or edit existing content.
|
protected ConversionContext |
getConversionContext() |
String |
getEditorFormattedContent(String storageFormat) |
boolean |
getInPreview()
Deprecated.
since 5.3 (and really much much longer)
|
protected com.atlassian.renderer.RenderContext |
getRenderContext() |
protected String |
getStorageFormat() |
String |
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).
|
String |
getxHtmlContent() |
void |
setBack(String back)
Deprecated.
since 5.3 (and really much much longer)
|
void |
setFormatConverter(FormatConverter formatConverter) |
void |
setInPreview(boolean inPreview)
Deprecated.
since 5.3 (and really much much longer)
|
void |
setPreview(String preview)
Deprecated.
since 5.3 (and really much much longer)
|
void |
setWikiStyleRenderer(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer) |
void |
setWysiwygContent(String content) |
protected void |
updateXHtmlContent() |
void |
validate()
Convert the editor content to storageFormat, catching and reporting any problems in the process.
|
displayDatePath, getAttachmentSourceContent, getAvailableSpaces, getBeanKey, getBlogPost, getEditorVersion, getHelper, getIncomingLinks, getLabels, getMode, getNextPost, getNumberOfAttachmentsAsString, getNumberOfLabelsAsString, getPermissionTypes, getPermittedChildren, getPostingDate, getPostingDay, getPreviousPost, getPreviousVersion, getSpaceManager, getSuggestedLabels, getTinyUrl, getWebInterfaceContext, hasAttachFilePermissions, hasPermittedChildren, isSpaceAdmin, isSuperUser, isUserWatchingOwnContent, setConfluenceWysiwygConverter, setEditorManager, setLinkManager, setMode, setPageManager, setPostingDate, setViewRenderergetFriendlyDateFormatterHelper, getPage, getPageId, getSpace, getSpaceKey, getTitle, isCollaborativeContent, isLatestVersionRequired, isPageRequired, isPermitted, isViewPermissionRequired, setContentPermissionManager, setPage, setSpaceManageraddActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getAccessMode, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getCancel, getCancelResult, getConfluenceAccessManager, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocLink, getEventManager, getFriendlyDateFormatter, getFrontendServiceURL, getGlobalSettings, getI18n, getInstalledLanguages, getLabelManager, getLanguageJs, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionManager, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPersonService, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUserAccessor, getUserByName, getUserFullName, getUserHasBrowseUsersPermission, getUserHasLicensedAccess, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPrintableVersion, isSkipAccessCheck, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setAccessModeService, setApiDateFormatService, setApiPersonService, setBootstrapManager, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSkipAccessCheck, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, withServletRequestSupplieraddActionError, addActionMessage, addFieldError, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrorsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisEditPermissionRequiredprotected FormatConverter formatConverter
protected com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer
@Deprecated protected String preview
@Deprecated protected String back
protected Map bean
protected String wysiwygContent
protected String storageFormat
@Deprecated protected boolean inPreview
@Deprecated public void setInPreview(boolean inPreview)
@Deprecated public boolean getInPreview()
@Deprecated public void setPreview(String preview)
@Deprecated public void setBack(String back)
public void setWysiwygContent(String content)
public String getxHtmlContent()
public void setWikiStyleRenderer(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer)
public void setFormatConverter(FormatConverter formatConverter)
protected void updateXHtmlContent()
public void validate()
validate in interface MessageHolderAwarevalidate in interface com.opensymphony.xwork.Validateablevalidate in class com.opensymphony.xwork.ActionSupportpublic String getWysiwygContent() throws XhtmlException
XhtmlExceptionpublic String getEditorFormattedContent(String storageFormat)
storageFormat - the storage data to be converted for editing.protected String getContentForSaving() throws XhtmlParsingException, XhtmlException
XhtmlParsingExceptionXhtmlExceptionprotected com.atlassian.renderer.RenderContext getRenderContext()
protected ConversionContext getConversionContext()
protected String getStorageFormat() throws XhtmlException
XhtmlExceptionCopyright © 2003–2022 Atlassian. All rights reserved.