Class EditorAction
java.lang.Object
org.apache.struts2.ActionSupport
com.atlassian.confluence.core.AbstractI18nActionSupport
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.plugins.editorloader.EditorAction
- All Implemented Interfaces:
- Beanable,- PageAware,- TinyUrlAware,- WebInterface,- CaptchaAware,- SpaceAware,- Spaced,- BreadcrumbAware,- MessageHolderAware,- Serializable,- org.apache.struts2.action.Action,- org.apache.struts2.interceptor.ValidationAware,- org.apache.struts2.locale.LocaleProvider,- org.apache.struts2.text.TextProvider,- org.apache.struts2.Validateable
public class EditorAction
extends AbstractCreateAndEditPageAction
implements SpaceAware, BreadcrumbAware
- See Also:
- 
Field SummaryFieldsFields inherited from class com.atlassian.confluence.pages.actions.AbstractCreateAndEditPageActionACTIVITY_UNAVAILABLE, captchaManager, collaborativeEditingHelper, draftManager, draftService, draftsTransitionHelper, heartbeatManager, LOCKED, movePageCommandHelper, newSpaceKey, notificationManager, pageService, parentPage, parentPageId, parentPageSpaceKey, parentPageString, parentPageTitle, targetId, USER_LIMIT_REACHEDFields inherited from class com.atlassian.confluence.pages.actions.AbstractTemplatePageActionpageTemplateManager, templateIdFields inherited from class com.atlassian.confluence.pages.actions.AbstractPreviewPageActionback, bean, formatConverter, inPreview, preview, storageFormat, wikiStyleRenderer, wysiwygContentFields inherited from class com.atlassian.confluence.pages.actions.AbstractPageActionincomingLinks, linkManager, pageManager, PREVIEW, RICHTEXT, viewRenderer, wysiwygConverterFields inherited from class com.atlassian.confluence.pages.actions.AbstractPageAwareActioncontentPermissionManager, spaceManagerFields inherited from class com.atlassian.confluence.core.ConfluenceActionSupportaccessModeService, CANCEL, confluenceAccessManager, contentUiSupport, eventPublisher, formatSettingsManager, globalSettingsManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, localeManager, loginManager, messageHolder, permissionManager, pluginAccessor, request, response, spacePermissionManager, strutsHelper, systemInformationService, userAccessor, webInterfaceManagerFields inherited from class org.apache.struts2.ActionSupportcontainerFields inherited from interface org.apache.struts2.action.ActionERROR, INPUT, LOGIN, NONE, SUCCESS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionConvenient Action execution method which defaults to returning INPUTReturns the breadcrumb to be shown when the action is accessed.Returns the content type being created or edited.getMode()getSpace()Make the wysiwyg content an empty string on editor load a we pull this down from the server if page edit is triggered.booleanBecause this page only returns an editor frame we don't need to check permissions for this action .booleanIf the action requires that the space be set before being run, then it should return true to this method.booleanReturns true if the user is watching the current page.booleanReturns true if the user is watching the page/blog's space for the respective ContentType.voidsetBreadcrumbGenerator(BreadcrumbGenerator breadcrumbGenerator) voidIOC method for setting the space on the action.booleanThis method determines whether the current action should start an activity on the HeartbeatManager.Methods inherited from class com.atlassian.confluence.pages.actions.AbstractCreateAndEditPageActioncreateDraft, getCancelResult, getCaptchaManager, getCollaborativeEditingHelper, getConfluenceRevision, getContentDraft, getContentObject, getCurrentEditPermission, getCurrentViewPermission, getDraft, getDraftAsCEO, getDraftId, getDraftShareId, getEntityId, getExistingDraft, getExistingDraftId, getFromPageId, getLabels, getLabelsString, getMovePageCommand, getNewSpaceKey, getNotificationManager, getParentPage, getParentPageId, getParentPageSpaceKey, getParentPageString, getParentPageTitle, getPermissionTypes, getPosition, getSynchronyRevisionSource, getSyncRev, getTargetId, getTitle, getViewInheritedContentPermissionSets, getWebInterfaceContext, getXsrfToken, hasDraftPermission, hasSetPagePermissionsPermission, isCollaborativeContent, isNewAbstractPage, isRestricted, isShowDraftMessage, isUseDraft, setCaptchaManager, setCollaborativeEditingHelper, setDraftId, setDraftManager, setDraftService, setDraftShareId, setDraftsTransitionHelper, setHeartbeatManager, setLabelsString, setLabelsString, setMovePageCommandHelper, setNewSpaceKey, setNotificationManager, setPageService, setParentPageId, setParentPageSpaceKey, setParentPageString, setParentPageTitle, setPermissions, setPosition, setShowDraftMessage, setSpaceService, setSyncRev, setTargetId, setTitle, setUseDraft, setXsrfTokenGenerator, validate, validateDuplicatePageTitleMethods inherited from class com.atlassian.confluence.pages.actions.AbstractTemplatePageActiongetGlobalPageTemplates, getPageTemplate, getSpacePageTemplates, getTemplateId, isPageTemplatesAvailable, loadTemplates, setPageTemplateManager, setTemplateIdMethods inherited from class com.atlassian.confluence.pages.actions.AbstractPreviewPageActiongetBean, getContentForSaving, getConversionContext, getEditorFormattedContent, getInPreview, getRenderContext, getStorageFormat, getxHtmlContent, setBack, setFormatConverter, setInPreview, setPreview, setWikiStyleRenderer, setWysiwygContent, updateXHtmlContentMethods inherited from class com.atlassian.confluence.pages.actions.AbstractPageActiondisplayDatePath, getAttachmentSourceContent, getAvailableSpaces, getBeanKey, getBlogPost, getEditorVersion, getHelper, getIncomingLinks, getNextPost, getNumberOfAttachmentsAsString, getNumberOfLabelsAsString, getPermittedChildren, getPostingDateAsDate, getPostingDay, getPostingTimeAsTime, getPreviousPost, getPreviousVersion, getSpaceManager, getSuggestedLabels, getTinyUrl, hasAttachFilePermissions, hasPermittedChildren, isSpaceAdmin, isSuperUser, isUserWatchingOwnContent, setConfluenceWysiwygConverter, setEditorManager, setLinkManager, setMode, setPageManager, setPostingDate, setPostingTime, setViewRendererMethods inherited from class com.atlassian.confluence.pages.actions.AbstractPageAwareActiongetCustomPageUrl, getPage, getPageId, getPageUrl, getSpaceKey, isLatestVersionRequired, isPageRequired, isViewPermissionRequired, setContentPermissionManager, setPage, setSpaceManagerMethods inherited from class com.atlassian.confluence.core.ConfluenceActionSupportaddActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, getActionErrors, getActionMessages, getActionName, getActiveRequest, getActiveResponse, getAuthenticatedUser, getBootstrapStatusProvider, getDateFormatter, getDefaultTimeZone, getFieldErrors, getGlobalSettings, getI18n, getLocale, getMessageHolder, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getTimeZone, getUserByName, getUserInterfaceState, isAnonymousUser, isEmailVisible, setAccessModeService, setBootstrapStatusProvider, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventPublisher, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setSettingsManager, setSpacePermissionManager, setStrutsHelper, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManagerMethods inherited from class com.atlassian.confluence.core.AbstractI18nActionSupportgetText, getText, getText, getText, getText, getText, getText, getText, getTextStrictMethods inherited from class org.apache.struts2.ActionSupportaddActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, execute, getContainer, getFormatted, getLocaleProvider, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, toLocaleMethods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.security.CaptchaAwaremustValidateCaptchaMethods inherited from interface com.atlassian.confluence.pages.actions.PageAwareisEditPermissionRequiredMethods inherited from interface com.atlassian.confluence.spaces.actions.SpaceAwareisViewPermissionRequired
- 
Field Details- 
breadcrumbGenerator
 
- 
- 
Constructor Details- 
EditorActionpublic EditorAction()
 
- 
- 
Method Details- 
doDefaultDescription copied from class:ConfluenceActionSupportConvenient Action execution method which defaults to returning INPUT- Overrides:
- doDefaultin class- AbstractCreateAndEditPageAction
- Throws:
- Exception
 
- 
getWysiwygContentMake the wysiwyg content an empty string on editor load a we pull this down from the server if page edit is triggered.- Overrides:
- getWysiwygContentin class- AbstractPreviewPageAction
- Returns:
- empty string
 
- 
getSpace- Specified by:
- getSpacein interface- Spaced
- Overrides:
- getSpacein class- AbstractPageAwareAction
 
- 
setSpaceDescription copied from interface:SpaceAwareIOC method for setting the space on the action. This is called from the interceptor- Specified by:
- setSpacein interface- SpaceAware
- Parameters:
- space- the space that the action will be working on.
 
- 
isSpaceRequiredpublic boolean isSpaceRequired()Description copied from interface:SpaceAwareIf the action requires that the space be set before being run, then it should return true to this method. If the action requires a space, but no space is available, then the interceptor will automatically redirect to the 'pagenotfound' result- Specified by:
- isSpaceRequiredin interface- SpaceAware
- Returns:
- true if the action requires a space in order to execute
 
- 
getMode- Overrides:
- getModein class- AbstractPageAction
 
- 
isPermittedpublic boolean isPermitted()Because this page only returns an editor frame we don't need to check permissions for this action .- Overrides:
- isPermittedin class- AbstractPageAwareAction
- Returns:
- always returns true
 
- 
isUserWatchingPagepublic boolean isUserWatchingPage()Returns true if the user is watching the current page. Returns false otherwise, or if the user is anonymous.
- 
isUserWatchingSpacepublic boolean isUserWatchingSpace()Returns true if the user is watching the page/blog's space for the respective ContentType. For example, if getPage returns a BlogPost and the user is only watching Pages in the Space, this method returns false.
- 
getContentTypeDescription copied from class:AbstractCreateAndEditPageActionReturns the content type being created or edited. e.g. "page", "blogpost"- Specified by:
- getContentTypein class- AbstractCreateAndEditPageAction
 
- 
setBreadcrumbGenerator
- 
getBreadcrumbDescription copied from interface:BreadcrumbAwareReturns the breadcrumb to be shown when the action is accessed.- Specified by:
- getBreadcrumbin interface- BreadcrumbAware
- Returns:
- Breadcrumb
 
- 
startHeartbeatOnDoDefault@Internal public boolean startHeartbeatOnDoDefault()Description copied from class:AbstractCreateAndEditPageActionThis method determines whether the current action should start an activity on the HeartbeatManager. In most cases this should be left as true since we would like to track user activity in the editor. Only override this method if you know exactly what you doing.- Overrides:
- startHeartbeatOnDoDefaultin class- AbstractCreateAndEditPageAction
- Returns:
- boolean indicating whether activity should be started via the HeartbeatManager
 
 
-