public class EditorAction extends AbstractCreateAndEditPageAction implements SpaceAware, BreadcrumbAware
Modifier and Type | Field and Description |
---|---|
protected BreadcrumbGenerator |
breadcrumbGenerator |
protected String |
editPermissionsGroups |
protected String |
editPermissionsUsers |
protected NotificationManager |
notificationManager |
protected String |
viewPermissionsGroups |
protected String |
viewPermissionsUsers |
captchaManager, CLOSE_CANCEL_RESULT, DISCARD_CANCEL_RESULT, draftManager, draftService, newSpaceKey, pageService, 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 |
getEditPermissionsGroups() |
String |
getEditPermissionsUsers() |
String |
getMode() |
Space |
getSpace() |
String |
getViewPermissionsGroups() |
String |
getViewPermissionsUsers() |
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 |
isRestricted() |
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 |
setEditPermissionsGroups(String editPermissionsGroups) |
void |
setEditPermissionsUsers(String editPermissionsUsers) |
void |
setNotificationManager(NotificationManager notificationManager) |
void |
setSpace(Space space)
IOC method for setting the space on the action.
|
void |
setViewPermissionsGroups(String viewPermissionsGroups) |
void |
setViewPermissionsUsers(String viewPermissionsUsers) |
createDraft, createEditPermissions, createViewPermissions, getCancelResult, getCaptchaManager, getCurrentEditPermission, getCurrentViewPermission, getDraft, getDraftId, getDraftShareId, getEditPermissionsSummary, getEntityId, getExistingDraft, getExistingDraftId, getLabelsString, getMovePageCommand, getNewSpaceKey, getNotificationManager, getParentPage, getParentPageId, getParentPageSpaceKey, getParentPageString, getParentPageTitle, getPermissionTypes, getPosition, getSharedDraftsDarkFeatureHelper, getTargetId, getTitle, getViewInheritedContentPermissionSets, getViewPermissionsSummary, hasDraftPermission, hasSetPagePermissionsPermission, isNewAbstractPage, isShowDraftMessage, isUseDraft, setAutomaticWatchIfRequired, setCaptchaManager, setDraftId, setDraftManager, setDraftService, setDraftShareId, setLabelsString, setLabelsString, setNewSpaceKey, setPageService, setParentPageId, setParentPageSpaceKey, setParentPageString, setParentPageTitle, setPermissions, setPosition, setSharedDraftsDarkFeatureHelper, setShowDraftMessage, setSpaceService, 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, getLabels, 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, 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, isUsingHSQL, setApiDateFormatService, setBootstrapManager, setCancel, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionCheck, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setSettingsManager, 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 NotificationManager notificationManager
protected String viewPermissionsGroups
protected String viewPermissionsUsers
protected String editPermissionsGroups
protected String editPermissionsUsers
protected BreadcrumbGenerator breadcrumbGenerator
public String doDefault() throws Exception
ConfluenceActionSupport
doDefault
in class AbstractCreateAndEditPageAction
Exception
- if something goes wrongpublic WebInterfaceContext getWebInterfaceContext()
WebInterface
getWebInterfaceContext
in interface WebInterface
getWebInterfaceContext
in class AbstractCreateAndEditPageAction
public String getWysiwygContent()
getWysiwygContent
in class AbstractPreviewPageAction
public boolean isRestricted()
isRestricted
in class AbstractCreateAndEditPageAction
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 setNotificationManager(NotificationManager notificationManager)
setNotificationManager
in class AbstractCreateAndEditPageAction
public String getViewPermissionsGroups()
getViewPermissionsGroups
in class AbstractCreateAndEditPageAction
public void setViewPermissionsGroups(String viewPermissionsGroups)
setViewPermissionsGroups
in class AbstractCreateAndEditPageAction
public String getViewPermissionsUsers()
getViewPermissionsUsers
in class AbstractCreateAndEditPageAction
public void setViewPermissionsUsers(String viewPermissionsUsers)
setViewPermissionsUsers
in class AbstractCreateAndEditPageAction
public String getEditPermissionsGroups()
getEditPermissionsGroups
in class AbstractCreateAndEditPageAction
public void setEditPermissionsGroups(String editPermissionsGroups)
setEditPermissionsGroups
in class AbstractCreateAndEditPageAction
public String getEditPermissionsUsers()
getEditPermissionsUsers
in class AbstractCreateAndEditPageAction
public void setEditPermissionsUsers(String editPermissionsUsers)
setEditPermissionsUsers
in class AbstractCreateAndEditPageAction
public void setBreadcrumbGenerator(BreadcrumbGenerator breadcrumbGenerator)
public Breadcrumb getBreadcrumb()
BreadcrumbAware
getBreadcrumb
in interface BreadcrumbAware
Copyright © 2003–2015 Atlassian. All rights reserved.