com.atlassian.confluence.pages.actions
Class AbstractEditPageAction
java.lang.Object
com.opensymphony.xwork.ActionSupport
com.atlassian.confluence.core.ConfluenceActionSupport
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
- All Implemented Interfaces:
- PageAware, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, Serializable
- Direct Known Subclasses:
- EditBlogPostAction, EditInPlaceAction, EditPageAction
public abstract class AbstractEditPageAction
- extends AbstractCreateAndEditPageAction
- implements PageAware
- See Also:
- Serialized Form
| Fields inherited from class com.atlassian.confluence.pages.actions.AbstractCreateAndEditPageAction |
captchaResponse, draftManager, editPermission, editPermissionGroup, editPermissionRadio, GROUP_RADIO, newSpaceKey, parentPageId, parentPageSpaceKey, parentPageString, parentPageTitle, USER_PERMISSION, viewPermission, viewPermissionGroup, viewPermissionRadio |
| Fields inherited from class com.atlassian.confluence.pages.actions.AbstractPageAction |
captchaManager, contentPermissionManager, expertView, incomingLinks, isXHtml, linkManager, MARKUP, pageManager, postingDay, PREVIEW, RICHTEXT, spaceManager, wysiwygConverter |
| Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport |
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, localeManager, log, permissionManager, permitted, 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 |
| Methods inherited from class com.atlassian.confluence.pages.actions.AbstractCreateAndEditPageAction |
applyEditPermissions, applyViewPermissions, escapeWithBackslash, getCaptchaResponse, getCurrentEditPermission, getCurrentViewPermission, getDraft, getEditPermission, getEditPermissionGroup, getEditPermissionRadio, getGroups, getLabelsShowing, getLabelsString, getLocationShowing, getNewSpaceKey, getParentPage, getParentPageId, getParentPageSpaceKey, getParentPageString, getParentPageTitle, getPermissionTypes, getRestrictionsShowing, getTitle, getViewPermission, getViewPermissionGroup, getViewPermissionRadio, interpretBackslashAsEscape, isPermissionModified, isShowDraftMessage, isUseDraft, setCaptchaResponse, setDiscardDraft, setDraftManager, setEditPermission, setEditPermissionGroup, setEditPermissionRadio, setLabelsShowing, setLabelsString, setLocationShowing, setNewSpaceKey, setParentPageId, setParentPageSpaceKey, setParentPageString, setParentPageTitle, setRestrictionsShowing, setShowDraftMessage, setTitle, setUseDraft, setViewPermission, setViewPermissionGroup, setViewPermissionRadio, validate |
| Methods inherited from class com.atlassian.confluence.pages.actions.AbstractPreviewPageAction |
getInPreview, getPageOrDummyPage, getWysiwygContent, getxHtmlContent, setBack, setContent, setInPreview, setPreview, setWikiStyleRenderer, setWysiwygcontent, updateXHtmlContent |
| Methods inherited from class com.atlassian.confluence.pages.actions.AbstractPageAction |
extractPageTitle, extractSpaceKey, generateAncestryBreadcrumbs, getAvailableSpaces, getBeanKey, getBlogPost, getCaptchaId, getCaptchaManager, getExpertView, getHelper, getIncomingLinks, getMARKUP, getMode, getNextPost, getPage, getPageId, getPermittedChildren, getPostingDate, getPostingDay, getPostingDayOfMonth, getPostingMonth, getPostingMonthNumeric, getPostingYear, getPREVIEW, getPreviousPost, getRICHTEXT, getShowMarkup, getSpace, getSpaceKey, getSpaceManager, getSubscribableName, getSuggestedLabels, getSupportWysiwyg, getTinyUrl, getUseWysiwyg, getXhtml, hasAttachFilePermissions, hasInvalidTitleCharacters, hasPermittedChildren, hasSetPagePermissionsPermission, hasViewPagePermission, isLatestVersionRequired, isPageRequired, isSpaceAdmin, isViewPermissionRequired, setBreadcrumbsManager, setCaptchaId, setCaptchaManager, setConfluenceWysiwygConverter, setContentPermissionManager, setLinkManager, setMode, setPageManager, setSpaceManager, setXhtml |
| Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport |
addActionError, addPermissionTypeTo, addToHistory, getActionName, getBootstrapManager, getDateFormatter, getDefaultResourceBundle, getEditorLanguage, getEventManager, getGlobalHelper, getGlobalSettings, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleString, getNiceContentType, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRandom, getRemoteUser, getSession, getSpaceHelper, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserFullName, getUserInterfaceState, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPermissionCheck, isPermittedAsString, isPrintableVersion, setBootstrapManager, setCancel, setEventManager, setFormatSettingsManager, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setPermissionCheck, setPermissionManager, setPreviousLoginDate, setSettingsManager, setSpacePermissionManager, setUserAccessor, setWebInterfaceManager |
| 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 |
AbstractEditPageAction
public AbstractEditPageAction()
isVersionMismatch
public boolean isVersionMismatch()
setVersionMismatch
public void setVersionMismatch(boolean versionMismatch)
getOldContent
public String getOldContent()
setOldContent
public void setOldContent(String oldContent)
setPage
public void setPage(AbstractPage page)
- Description copied from interface:
PageAware
- IOC method for setting the page on the action. This is called from the interceptor
- Specified by:
setPage in interface PageAware- Overrides:
setPage in class AbstractPageAction
- Parameters:
page - the page that the action will be working on.
getContent
public String getContent()
- Overrides:
getContent in class AbstractPreviewPageAction
doDefault
public String doDefault()
throws Exception
- Description copied from class:
ConfluenceActionSupport
- Default webwork action execution method.
- Overrides:
doDefault in class AbstractCreateAndEditPageAction
- Returns:
- the action result
- Throws:
Exception - if something goes wrong
doEdit
public String doEdit()
throws Exception
- Throws:
Exception
doSaveEditPageBean
public String doSaveEditPageBean()
isContentModified
protected boolean isContentModified()
isTitleModified
protected boolean isTitleModified()
- Returns true if the page title is not null and not equals the current page title
getOriginalPage
public AbstractPage getOriginalPage()
getCancelResult
public String getCancelResult()
- Overrides:
getCancelResult in class AbstractCreateAndEditPageAction
getOriginalVersion
public int getOriginalVersion()
setOriginalVersion
public void setOriginalVersion(int originalVersion)
getDiff
public String getDiff()
setDiff
public void setDiff(String diff)
getOverwrite
public String getOverwrite()
setOverwrite
public void setOverwrite(String overwrite)
isPermitted
public boolean isPermitted()
- Overrides:
isPermitted in class AbstractPageAction
getMinorEdit
public String getMinorEdit()
setMinorEdit
public void setMinorEdit(String minorEdit)
getVersionComment
public String getVersionComment()
setVersionComment
public void setVersionComment(String versionComment)
isConflictFound
public boolean isConflictFound()
isMergeRequired
public boolean isMergeRequired()
setViewConflict
public void setViewConflict(boolean viewConflict)
isViewConflict
public boolean isViewConflict()
getContentType
protected String getContentType()
- Specified by:
getContentType in class AbstractCreateAndEditPageAction
setHeartbeatManager
public void setHeartbeatManager(HeartbeatManager heartbeatManager)