public class EditorAction extends AbstractCreateAndEditPageAction implements SpaceAware, BreadcrumbAware
| Modifier and Type | Field and Description |
|---|---|
protected BreadcrumbGenerator |
breadcrumbGenerator |
captchaManager, CLOSE_CANCEL_RESULT, DISCARD_CANCEL_RESULT, draftManager, draftService, newSpaceKey, notificationManager, pageService, parentPageId, parentPageSpaceKey, parentPageString, parentPageTitle, sharedDraftsDarkFeatureHelper, targetIdpageTemplateManager, templateIdback, bean, formatConverter, inPreview, preview, storageFormat, wikiStyleRenderer, wysiwygContentincomingLinks, linkManager, pageManager, PREVIEW, RICHTEXT, viewRenderer, wysiwygConvertercontentPermissionManager, spaceManagerCANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, 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() |
WebInterfaceContext |
getWebInterfaceContext()
Returns a context which can be passed to web items when rendering them.
|
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.
|
createDraft, getCancelResult, getCaptchaManager, getCurrentEditPermission, getCurrentViewPermission, getDraft, getDraftId, getDraftShareId, getEntityId, getExistingDraft, getExistingDraftId, getLabels, getLabelsString, getMovePageCommand, getNewSpaceKey, getNotificationManager, getParentPage, getParentPageId, getParentPageSpaceKey, getParentPageString, getParentPageTitle, getPermissionTypes, getPosition, getSharedDraftsDarkFeatureHelper, getTargetId, getTitle, getViewInheritedContentPermissionSets, hasDraftPermission, hasSetPagePermissionsPermission, isNewAbstractPage, isRestricted, isShowDraftMessage, isUseDraft, setAutomaticWatchIfRequired, setCaptchaManager, setDraftId, setDraftManager, setDraftService, setDraftShareId, setLabelsString, setLabelsString, setNewSpaceKey, setNotificationManager, setPageService, setParentPageId, setParentPageSpaceKey, setParentPageString, setParentPageTitle, setPermissions, setPosition, setSharedDraftsDarkFeatureHelper, setShowDraftMessage, setSpaceService, setTargetId, setTitle, setUseDraft, validate, validateDuplicatePageTitlegetGlobalPageTemplates, getPageTemplate, getSpacePageTemplates, getTemplateId, isPageTemplatesAvailable, loadTemplates, setPageTemplateManager, setTemplateIdgetBean, getContentForSaving, getConversionContext, getEditorFormattedContent, getInPreview, getRenderContext, getStorageFormat, getxHtmlContent, setBack, setFormatConverter, setInPreview, setPreview, setWikiStyleRenderer, setWysiwygContent, updateXHtmlContentdisplayDatePath, 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, setViewRenderergetFriendlyDateFormatterHelper, getPage, getPageId, getSpaceKey, hasViewPagePermission, isLatestVersionRequired, isPageRequired, isViewPermissionRequired, setContentPermissionManager, setPage, setSpaceManageraddActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, formatFriendlyDate, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getCancel, getContext, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocLink, getEventManager, getFriendlyDateFormatter, getGlobalSettings, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserByName, getUserFullName, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPermissionCheck, isPermittedAsString, isPrintableVersion, isSharedMode, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setApiDateFormatService, setBootstrapManager, setCancel, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionCheck, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setSettingsManager, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManageraddActionError, addActionMessage, addFieldError, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrorsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisViewPermissionRequiredprotected BreadcrumbGenerator breadcrumbGenerator
public String doDefault() throws Exception
ConfluenceActionSupportdoDefault in class AbstractCreateAndEditPageActionException - if something goes wrongpublic WebInterfaceContext getWebInterfaceContext()
WebInterfacegetWebInterfaceContext in interface WebInterfacegetWebInterfaceContext in class AbstractCreateAndEditPageActionpublic String getWysiwygContent()
getWysiwygContent in class AbstractPreviewPageActionpublic Space getSpace()
getSpace in interface SpacedgetSpace in class AbstractPageAwareActionpublic void setSpace(Space space)
SpaceAwaresetSpace in interface SpaceAwarespace - the space that the action will be working on.public boolean isSpaceRequired()
SpaceAwareisSpaceRequired in interface SpaceAwarepublic String getMode()
getMode in class AbstractPageActionpublic boolean isPermitted()
isPermitted in class AbstractPageAwareActionpublic boolean isUserWatchingPage()
public boolean isUserWatchingSpace()
public String getContentType()
AbstractCreateAndEditPageActiongetContentType in class AbstractCreateAndEditPageActionpublic void setBreadcrumbGenerator(BreadcrumbGenerator breadcrumbGenerator)
public Breadcrumb getBreadcrumb()
BreadcrumbAwaregetBreadcrumb in interface BreadcrumbAwareCopyright © 2003–2015 Atlassian. All rights reserved.