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, wysiwygConverter
contentPermissionManager, spaceManager
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, 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, setViewRenderer
getFriendlyDateFormatterHelper, getPage, getPageId, getSpace, getSpaceKey, getTitle, hasViewPagePermission, isLatestVersionRequired, isPageRequired, isPermitted, isViewPermissionRequired, setContentPermissionManager, setPage, setSpaceManager
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getCancel, getCancelResult, getConfluenceAccessManager, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocLink, getEventManager, getFriendlyDateFormatter, getGlobalSettings, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionManager, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserByName, getUserFullName, getUserHasLicensedAccess, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPrintableVersion, isSharedMode, isSkipAccessCheck, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setApiDateFormatService, setBootstrapManager, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSkipAccessCheck, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager
addActionError, addActionMessage, addFieldError, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors
protected 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 MessageHolderAware
validate
in interface com.opensymphony.xwork.Validateable
validate
in class com.opensymphony.xwork.ActionSupport
public String getWysiwygContent()
public String getEditorFormattedContent(String storageFormat)
storageFormat
- the storage data to be converted for editing.protected String getContentForSaving() throws XhtmlParsingException, XhtmlException
XhtmlParsingException
XhtmlException
protected com.atlassian.renderer.RenderContext getRenderContext()
protected ConversionContext getConversionContext()
protected String getStorageFormat() throws XhtmlException
XhtmlException
Copyright © 2003–2016 Atlassian. All rights reserved.