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, draftsTransitionHelper, newSpaceKey, notificationManager, pageService, parentPage, parentPageId, parentPageSpaceKey, parentPageString, parentPageTitle, sharedDraftsDarkFeatureHelper, targetId
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 |
---|
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, getContentDraft, getCurrentEditPermission, getCurrentViewPermission, getDraft, getDraftAsCEO, getDraftId, getDraftShareId, getEntityId, getExistingDraft, getExistingDraftId, getLabels, getLabelsString, getMovePageCommand, getNewSpaceKey, getNotificationManager, getParentPage, getParentPageId, getParentPageSpaceKey, getParentPageString, getParentPageTitle, getPermissionTypes, getPosition, getSharedDraftsDarkFeatureHelper, getSyncRev, getTargetId, getTitle, getViewInheritedContentPermissionSets, hasDraftPermission, hasSetPagePermissionsPermission, isNewAbstractPage, isRestricted, isShowDraftMessage, isUseDraft, setAutomaticWatchIfRequired, setCaptchaManager, setDraftId, setDraftManager, setDraftService, setDraftShareId, setDraftsTransitionHelper, 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, hasViewPagePermission, isLatestVersionRequired, isPageRequired, isViewPermissionRequired, setContentPermissionManager, setPage, setSpaceManager
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, formatFriendlyDate, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getCancel, getConfluenceAccessManager, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocLink, getEventManager, getFriendlyDateFormatter, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isViewPermissionRequired
protected BreadcrumbGenerator breadcrumbGenerator
public String doDefault() throws Exception
ConfluenceActionSupport
doDefault
in class AbstractCreateAndEditPageAction
Exception
- if something goes wrongpublic WebInterfaceContext getWebInterfaceContext()
WebInterface
Typically, WebWork actions will implement this to provide extra details in the context such as content objects, and so on.
getWebInterfaceContext
in interface WebInterface
getWebInterfaceContext
in class AbstractCreateAndEditPageAction
public 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
Copyright © 2003–2016 Atlassian. All rights reserved.