|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.opensymphony.xwork.ActionSupport com.atlassian.confluence.core.ConfluenceActionSupport com.atlassian.confluence.pages.actions.AbstractPageAwareAction com.atlassian.confluence.pages.actions.AbstractPageAction com.atlassian.confluence.pages.actions.AbstractPreviewPageAction
public abstract class AbstractPreviewPageAction
Field Summary | |
---|---|
protected java.lang.String |
back
Deprecated. since 5.3 (and really much much longer) |
protected java.util.Map |
bean
|
protected FormatConverter |
formatConverter
|
protected boolean |
inPreview
Deprecated. since 5.3 (and really much much longer) |
protected java.lang.String |
preview
Deprecated. since 5.3 (and really much much longer) |
protected java.lang.String |
storageFormat
The current content in storageFormat ready for saving. |
protected com.atlassian.renderer.WikiStyleRenderer |
wikiStyleRenderer
|
protected java.lang.String |
wysiwygContent
The editor content. |
Fields inherited from class com.atlassian.confluence.pages.actions.AbstractPageAction |
---|
incomingLinks, linkManager, pageManager, PREVIEW, RICHTEXT, viewRenderer, wysiwygConverter |
Fields inherited from class com.atlassian.confluence.pages.actions.AbstractPageAwareAction |
---|
contentPermissionManager, spaceManager |
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport |
---|
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, pluginAccessor, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager |
Fields inherited from class com.opensymphony.xwork.ActionSupport |
---|
LOG |
Fields inherited from interface com.opensymphony.xwork.Action |
---|
ERROR, INPUT, LOGIN, NONE, SUCCESS |
Constructor Summary | |
---|---|
AbstractPreviewPageAction()
|
Method Summary | |
---|---|
java.lang.Object |
getBean()
|
protected java.lang.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()
|
java.lang.String |
getEditorFormattedContent(java.lang.String storageFormat)
|
boolean |
getInPreview()
Deprecated. since 5.3 (and really much much longer) |
protected com.atlassian.renderer.RenderContext |
getRenderContext()
|
protected java.lang.String |
getStorageFormat()
|
java.lang.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). |
java.lang.String |
getxHtmlContent()
|
void |
setBack(java.lang.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(java.lang.String preview)
Deprecated. since 5.3 (and really much much longer) |
void |
setWikiStyleRenderer(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer)
|
void |
setWysiwygContent(java.lang.String content)
|
protected void |
updateXHtmlContent()
|
void |
validate()
Convert the editor content to storageFormat, catching and reporting any problems in the process. |
Methods inherited from class com.atlassian.confluence.pages.actions.AbstractPageAwareAction |
---|
getFriendlyDateFormatterHelper, getPage, getPageId, getSpace, getSpaceKey, getTitle, hasViewPagePermission, isLatestVersionRequired, isPageRequired, isPermitted, isViewPermissionRequired, setContentPermissionManager, setPage, setSpaceManager |
Methods inherited from class com.opensymphony.xwork.ActionSupport |
---|
addActionError, addActionMessage, addFieldError, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected FormatConverter formatConverter
protected com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer
@Deprecated protected java.lang.String preview
@Deprecated protected java.lang.String back
protected java.util.Map bean
protected java.lang.String wysiwygContent
protected java.lang.String storageFormat
@Deprecated protected boolean inPreview
Constructor Detail |
---|
public AbstractPreviewPageAction()
Method Detail |
---|
public java.lang.Object getBean()
getBean
in interface Beanable
@Deprecated public void setInPreview(boolean inPreview)
@Deprecated public boolean getInPreview()
@Deprecated public void setPreview(java.lang.String preview)
@Deprecated public void setBack(java.lang.String back)
public void setWysiwygContent(java.lang.String content)
public java.lang.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 java.lang.String getWysiwygContent()
public java.lang.String getEditorFormattedContent(java.lang.String storageFormat)
storageFormat
- the storage data to be converted for editing.
protected java.lang.String getContentForSaving() throws XhtmlParsingException, XhtmlException
XhtmlParsingException
XhtmlException
protected com.atlassian.renderer.RenderContext getRenderContext()
protected ConversionContext getConversionContext()
protected java.lang.String getStorageFormat() throws XhtmlException
XhtmlException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |