public abstract class AbstractEditPageAction extends AbstractCreateAndEditPageAction implements BreadcrumbAware
Modifier and Type | Field and Description |
---|---|
static String |
EDITED_PAGE_CRUMB_CSS |
ACTIVITY_UNAVAILABLE, captchaManager, CLOSE_CANCEL_RESULT, collaborativeEditingHelper, DISCARD_CANCEL_RESULT, draftManager, draftService, draftsTransitionHelper, heartbeatManager, LOCKED, newSpaceKey, notificationManager, pageService, parentPage, parentPageId, parentPageSpaceKey, parentPageString, parentPageTitle, targetId, USER_LIMIT_REACHED
pageTemplateManager, templateId
back, bean, formatConverter, inPreview, preview, storageFormat, wikiStyleRenderer, wysiwygContent
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 |
---|
AbstractEditPageAction() |
Modifier and Type | Method and Description |
---|---|
protected String |
afterEdit()
Common processing to be performed by all subclasses after the edit operation.
|
String |
doDefault()
Default webwork action execution method.
|
String |
doEdit() |
String |
doSaveEditPageBean()
Deprecated.
|
Breadcrumb |
getBreadcrumb()
Returns the breadcrumb to be shown when the action is accessed.
|
String |
getCancelResult() |
int |
getConflictingVersion() |
String |
getContentType()
Returns the content type being created or edited.
|
String |
getDiff() |
DiffChunkRenderer |
getDiffRenderer()
Deprecated.
since 5.3 should no longer be used.
|
ConfluenceUser |
getLastConflictingUser()
Return the user who made the most recent conflicting change.
|
String |
getNotifyWatchers() |
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() |
String |
getOverwrite() |
Page |
getParentPage() |
String |
getVersionComment() |
boolean |
isConflictFound() |
protected boolean |
isContentModified() |
boolean |
isEditPermissionRequired() |
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 |
setHtmlDiffer(Differ differ) |
void |
setMergerManager(MergerManager mergerManager) |
void |
setNotifyWatchers(String notifyWatchers) |
void |
setOldContent(String oldContent)
Deprecated.
since 5.3 (but really did nothing for a long time before then)
|
void |
setOriginalVersion(int originalVersion) |
void |
setOverwrite(String overwrite) |
void |
setPage(AbstractPage page)
IOC method for setting the page on the action.
|
void |
setStorageFormatCleaner(StorageFormatCleaner storageFormatCleaner) |
void |
setVersionComment(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.
|
createDraft, getCaptchaManager, getCollaborativeEditingHelper, getConfluenceRevision, getContentDraft, getContentObject, getCurrentEditPermission, getCurrentViewPermission, getDraft, getDraftAsCEO, getDraftId, getDraftShareId, getEntityId, getExistingDraft, getExistingDraftId, getFromPageId, getLabels, getLabelsString, getMovePageCommand, getNewSpaceKey, getNotificationManager, getParentPageId, getParentPageSpaceKey, getParentPageString, getParentPageTitle, getPermissionTypes, getPosition, getSynchronyRevisionSource, getSyncRev, getTargetId, getTitle, getViewInheritedContentPermissionSets, getWebInterfaceContext, hasDraftPermission, hasSetPagePermissionsPermission, isCollaborativeContent, isNewAbstractPage, isRestricted, isShowDraftMessage, isUseDraft, setAutomaticWatchIfRequired, setCaptchaManager, setCollaborativeEditingHelper, setDraftId, setDraftManager, setDraftService, setDraftShareId, setDraftsTransitionHelper, setHeartbeatManager, setLabelsString, setLabelsString, setNewSpaceKey, setNotificationManager, setPageService, setParentPageId, setParentPageSpaceKey, setParentPageString, setParentPageTitle, setPermissions, setPosition, setSharedDraftsDarkFeatureHelper, setShowDraftMessage, setSpaceService, setSyncRev, setTargetId, setTitle, setUseDraft, startHeartbeatOnDoDefault, validateDuplicatePageTitle
getGlobalPageTemplates, getPageTemplate, getSpacePageTemplates, getTemplateId, isPageTemplatesAvailable, loadTemplates, setPageTemplateManager, setTemplateId
getBean, getContentForSaving, getConversionContext, getEditorFormattedContent, getInPreview, getRenderContext, getStorageFormat, getWysiwygContent, getxHtmlContent, setBack, setFormatConverter, setInPreview, setPreview, setWikiStyleRenderer, setWysiwygContent, updateXHtmlContent
displayDatePath, getAttachmentSourceContent, getAvailableSpaces, getBeanKey, getBlogPost, getEditorVersion, getHelper, getIncomingLinks, getMode, getNextPost, getNumberOfAttachmentsAsString, getNumberOfLabelsAsString, getPermittedChildren, getPostingDate, getPostingDay, getPreviousPost, getPreviousVersion, getSpaceManager, getSuggestedLabels, getTinyUrl, hasAttachFilePermissions, hasPermittedChildren, isSpaceAdmin, isSuperUser, isUserWatchingOwnContent, setConfluenceWysiwygConverter, setEditorManager, setLinkManager, setMode, setPageManager, setPostingDate, setViewRenderer
getFriendlyDateFormatterHelper, getPage, getPageId, getSpace, getSpaceKey, hasViewPagePermission, isLatestVersionRequired, isPageRequired, isViewPermissionRequired, setContentPermissionManager, setSpaceManager
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, formatFriendlyDate, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getCancel, getConfluenceAccessManager, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocLink, getEventManager, getFriendlyDateFormatter, getFrontendServiceURL, 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
public static final String EDITED_PAGE_CRUMB_CSS
@Deprecated public boolean isVersionMismatch()
getConflictingVersion()
if you
need this.@Deprecated public void setVersionMismatch(boolean versionMismatch)
@Deprecated public String getOldContent()
@Deprecated public void setOldContent(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 Page getParentPage()
getParentPage
in class AbstractCreateAndEditPageAction
public void validate()
AbstractPreviewPageAction
validate
in interface MessageHolderAware
validate
in interface com.opensymphony.xwork.Validateable
validate
in class AbstractCreateAndEditPageAction
public String doDefault() throws Exception
ConfluenceActionSupport
doDefault
in class AbstractCreateAndEditPageAction
Exception
- if something goes wrongpublic final boolean isEditPermissionRequired()
isEditPermissionRequired
in interface PageAware
protected String afterEdit()
Action.SUCCESS
if successful. Any other return value means a failure.@Deprecated public String doSaveEditPageBean()
protected boolean isContentModified()
protected boolean isTitleModified()
@Deprecated public AbstractPage getOriginalPage()
public String getCancelResult()
getCancelResult
in class AbstractCreateAndEditPageAction
public int getOriginalVersion()
public void setOriginalVersion(int originalVersion)
public int getConflictingVersion()
public void setConflictingVersion(int conflictingVersion)
public String getDiff()
public ConfluenceUser getLastConflictingUser()
@Deprecated public DiffChunkRenderer getDiffRenderer()
public String getOverwrite()
public void setOverwrite(String overwrite)
public boolean isPermitted()
isPermitted
in class AbstractPageAwareAction
public String getNotifyWatchers()
public void setNotifyWatchers(String notifyWatchers)
public String getVersionComment()
public void setVersionComment(String versionComment)
public boolean isConflictFound()
public boolean isMergeRequired()
public void setViewConflict(boolean viewConflict)
public boolean isViewConflict()
public String getContentType()
AbstractCreateAndEditPageAction
getContentType
in class AbstractCreateAndEditPageAction
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
Copyright © 2003–2018 Atlassian. All rights reserved.