|
||||||||||
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 com.atlassian.confluence.pages.actions.AbstractTemplatePageAction com.atlassian.confluence.pages.actions.AbstractCreateAndEditPageAction com.atlassian.confluence.pages.actions.AbstractEditPageAction
public abstract class AbstractEditPageAction
Field Summary | |
---|---|
static java.lang.String |
EDITED_PAGE_CRUMB_CSS
|
Fields inherited from class com.atlassian.confluence.pages.actions.AbstractCreateAndEditPageAction |
---|
captchaManager, CLOSE_CANCEL_RESULT, DISCARD_CANCEL_RESULT, draftManager, draftService, editPermissionsGroups, editPermissionsUsers, newSpaceKey, notificationManager, pageService, parentPageId, parentPageSpaceKey, parentPageString, parentPageTitle, targetId, viewPermissionsGroups, viewPermissionsUsers |
Fields inherited from class com.atlassian.confluence.pages.actions.AbstractTemplatePageAction |
---|
pageTemplateManager, templateId |
Fields inherited from class com.atlassian.confluence.pages.actions.AbstractPreviewPageAction |
---|
back, bean, formatConverter, inPreview, preview, storageFormat, wikiStyleRenderer, wysiwygContent |
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 | |
---|---|
AbstractEditPageAction()
|
Method Summary | |
---|---|
protected java.lang.String |
afterEdit()
Common processing to be performed by all subclasses after the edit operation. |
java.lang.String |
doDefault()
Default webwork action execution method. |
java.lang.String |
doEdit()
|
java.lang.String |
doSaveEditPageBean()
Deprecated. |
Breadcrumb |
getBreadcrumb()
Returns the breadcrumb to be shown when the action is accessed. |
java.lang.String |
getCancelResult()
|
int |
getConflictingVersion()
|
java.lang.String |
getContentType()
Returns the content type being created or edited. |
java.lang.String |
getDiff()
|
DiffChunkRenderer |
getDiffRenderer()
Deprecated. since 5.3 should no longer be used. |
java.lang.String |
getNotifyWatchers()
|
java.lang.String |
getOldContent()
Deprecated. since 5.3 (but really did nothing for a long time before then) |
AbstractPage |
getOriginalPage()
Deprecated. since 5.3. This hasn't been used for a long time. |
int |
getOriginalVersion()
|
java.lang.String |
getOverwrite()
|
java.lang.String |
getVersionComment()
|
boolean |
isConflictFound()
|
protected boolean |
isContentModified()
|
boolean |
isMergeRequired()
|
boolean |
isPermitted()
|
protected boolean |
isTitleModified()
Returns true if the page title is not null and not equals the current page title |
boolean |
isVersionMismatch()
Deprecated. since 5.3. Not used for some time. You can check whether getConflictingVersion() if you
need this. |
boolean |
isViewConflict()
|
void |
setBreadcrumbGenerator(BreadcrumbGenerator breadcrumbGenerator)
|
void |
setConflictingVersion(int conflictingVersion)
|
void |
setHeartbeatManager(HeartbeatManager heartbeatManager)
|
void |
setHtmlDiffer(Differ differ)
|
void |
setMergerManager(MergerManager mergerManager)
|
void |
setNotifyWatchers(java.lang.String notifyWatchers)
|
void |
setOldContent(java.lang.String oldContent)
Deprecated. since 5.3 (but really did nothing for a long time before then) |
void |
setOriginalVersion(int originalVersion)
|
void |
setOverwrite(java.lang.String overwrite)
|
void |
setPage(AbstractPage page)
IOC method for setting the page on the action. |
void |
setStorageFormatCleaner(StorageFormatCleaner storageFormatCleaner)
|
void |
setVersionComment(java.lang.String versionComment)
|
void |
setVersionMismatch(boolean versionMismatch)
Deprecated. since 5.3. This hasn't actually been used in Confluence since 4.0. This does nothing. |
void |
setViewConflict(boolean viewConflict)
|
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.AbstractTemplatePageAction |
---|
getGlobalPageTemplates, getPageTemplate, getSpacePageTemplates, getTemplateId, isPageTemplatesAvailable, loadTemplates, setPageTemplateManager, setTemplateId |
Methods inherited from class com.atlassian.confluence.pages.actions.AbstractPreviewPageAction |
---|
getBean, getContentForSaving, getConversionContext, getEditorFormattedContent, getInPreview, getRenderContext, getStorageFormat, getWysiwygContent, getxHtmlContent, setBack, setFormatConverter, setInPreview, setPreview, setWikiStyleRenderer, setWysiwygContent, updateXHtmlContent |
Methods inherited from class com.atlassian.confluence.pages.actions.AbstractPageAwareAction |
---|
getFriendlyDateFormatterHelper, getPage, getPageId, getSpace, getSpaceKey, hasViewPagePermission, isLatestVersionRequired, isPageRequired, isViewPermissionRequired, setContentPermissionManager, 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 |
---|
public static final java.lang.String EDITED_PAGE_CRUMB_CSS
Constructor Detail |
---|
public AbstractEditPageAction()
Method Detail |
---|
@Deprecated public boolean isVersionMismatch()
getConflictingVersion()
if you
need this.
@Deprecated public void setVersionMismatch(boolean versionMismatch)
@Deprecated public java.lang.String getOldContent()
@Deprecated public void setOldContent(java.lang.String oldContent)
public void setPage(AbstractPage page)
PageAware
setPage
in interface PageAware
setPage
in class AbstractPageAwareAction
page
- the page that the action will be working on.public void validate()
AbstractPreviewPageAction
validate
in interface MessageHolderAware
validate
in interface com.opensymphony.xwork.Validateable
validate
in class AbstractCreateAndEditPageAction
public java.lang.String doDefault() throws java.lang.Exception
ConfluenceActionSupport
doDefault
in class AbstractCreateAndEditPageAction
java.lang.Exception
- if something goes wrongpublic java.lang.String doEdit() throws java.lang.Exception
java.lang.Exception
protected java.lang.String afterEdit()
Action.SUCCESS
if successful. Any other return value means a failure.@Deprecated public java.lang.String doSaveEditPageBean()
protected boolean isContentModified()
protected boolean isTitleModified()
@Deprecated public AbstractPage getOriginalPage()
public java.lang.String getCancelResult()
getCancelResult
in class AbstractCreateAndEditPageAction
public int getOriginalVersion()
public void setOriginalVersion(int originalVersion)
public int getConflictingVersion()
public void setConflictingVersion(int conflictingVersion)
public java.lang.String getDiff()
@Deprecated public DiffChunkRenderer getDiffRenderer()
public java.lang.String getOverwrite()
public void setOverwrite(java.lang.String overwrite)
public boolean isPermitted()
isPermitted
in class AbstractPageAwareAction
public java.lang.String getNotifyWatchers()
public void setNotifyWatchers(java.lang.String notifyWatchers)
public java.lang.String getVersionComment()
public void setVersionComment(java.lang.String versionComment)
public boolean isConflictFound()
public boolean isMergeRequired()
public void setViewConflict(boolean viewConflict)
public boolean isViewConflict()
public java.lang.String getContentType()
AbstractCreateAndEditPageAction
getContentType
in class AbstractCreateAndEditPageAction
public void setHeartbeatManager(HeartbeatManager heartbeatManager)
public void setHtmlDiffer(Differ differ)
public void setMergerManager(MergerManager mergerManager)
public void setStorageFormatCleaner(StorageFormatCleaner storageFormatCleaner)
public void setBreadcrumbGenerator(BreadcrumbGenerator breadcrumbGenerator)
public Breadcrumb getBreadcrumb()
BreadcrumbAware
getBreadcrumb
in interface BreadcrumbAware
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |