public class EditorAction extends AbstractCreateAndEditPageAction implements SpaceAware, BreadcrumbAware
Modifier and Type | Field and Description |
---|---|
protected BreadcrumbGenerator |
breadcrumbGenerator |
ACTIVITY_UNAVAILABLE, captchaManager, collaborativeEditingHelper, 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
accessModeService, CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, personService, pluginAccessor, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager
Constructor and Description |
---|
EditorAction() |
Modifier and Type | Method and Description |
---|---|
String |
doDefault()
Default webwork action execution method.
|
Breadcrumb |
getBreadcrumb()
Returns the breadcrumb to be shown when the action is accessed.
|
String |
getContentType()
Returns the content type being created or edited.
|
String |
getMode() |
Space |
getSpace() |
String |
getWysiwygContent()
Make the wysiwyg content an empty string on editor load a we pull this down from the server if page edit is triggered.
|
boolean |
isPermitted()
Because this page only returns an editor frame we don't need to check permissions for this action
.
|
boolean |
isSpaceRequired()
If the action requires that the space be set before being run, then it should
return true to this method.
|
boolean |
isUserWatchingPage()
Returns true if the user is watching the current page.
|
boolean |
isUserWatchingSpace()
Returns true if the user is watching the page/blog's space for the respective ContentType.
|
void |
setBreadcrumbGenerator(BreadcrumbGenerator breadcrumbGenerator) |
void |
setSpace(Space space)
IOC method for setting the space on the action.
|
boolean |
startHeartbeatOnDoDefault()
This method determines whether the current action should start an activity on the HeartbeatManager.
|
createDraft, 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, hasDraftPermission, hasSetPagePermissionsPermission, isCollaborativeContent, isNewAbstractPage, isRestricted, isShowDraftMessage, isUseDraft, 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, validate, validateDuplicatePageTitle
getGlobalPageTemplates, getPageTemplate, getSpacePageTemplates, getTemplateId, isPageTemplatesAvailable, loadTemplates, setPageTemplateManager, setTemplateId
getBean, getContentForSaving, getConversionContext, getEditorFormattedContent, getInPreview, getRenderContext, getStorageFormat, getxHtmlContent, setBack, setFormatConverter, setInPreview, setPreview, setWikiStyleRenderer, setWysiwygContent, updateXHtmlContent
displayDatePath, getAttachmentSourceContent, getAvailableSpaces, getBeanKey, getBlogPost, getEditorVersion, getHelper, getIncomingLinks, 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, getSpaceKey, isLatestVersionRequired, isPageRequired, isViewPermissionRequired, setContentPermissionManager, setPage, setSpaceManager
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, formatFriendlyDate, getAccessMode, 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, getPersonService, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUserAccessor, getUserByName, getUserFullName, getUserHasBrowseUsersPermission, getUserHasLicensedAccess, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPrintableVersion, isSkipAccessCheck, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setAccessModeService, setApiDateFormatService, setApiPersonService, setBootstrapManager, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSkipAccessCheck, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, withServletRequestSupplier
addActionError, addActionMessage, addFieldError, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isViewPermissionRequired
isEditPermissionRequired
protected BreadcrumbGenerator breadcrumbGenerator
public String doDefault() throws Exception
ConfluenceActionSupport
doDefault
in class AbstractCreateAndEditPageAction
Exception
- if something goes wrongpublic String getWysiwygContent()
getWysiwygContent
in class AbstractPreviewPageAction
public Space getSpace()
getSpace
in interface Spaced
getSpace
in class AbstractPageAwareAction
public void setSpace(Space space)
SpaceAware
setSpace
in interface SpaceAware
space
- the space that the action will be working on.public boolean isSpaceRequired()
SpaceAware
isSpaceRequired
in interface SpaceAware
public String getMode()
getMode
in class AbstractPageAction
public boolean isPermitted()
isPermitted
in class AbstractPageAwareAction
public boolean isUserWatchingPage()
public boolean isUserWatchingSpace()
public String getContentType()
AbstractCreateAndEditPageAction
getContentType
in class AbstractCreateAndEditPageAction
public void setBreadcrumbGenerator(BreadcrumbGenerator breadcrumbGenerator)
public Breadcrumb getBreadcrumb()
BreadcrumbAware
getBreadcrumb
in interface BreadcrumbAware
@Internal public boolean startHeartbeatOnDoDefault()
AbstractCreateAndEditPageAction
startHeartbeatOnDoDefault
in class AbstractCreateAndEditPageAction
Copyright © 2003–2021 Atlassian. All rights reserved.