public class PageVariablesAction extends CreatePageAction
CreatePageAction.SimplePageProviderpageProviderattachmentManager, breadcrumbGenerator, contextProvider, INPUT_VARIABLES, originalReferrer, space, themeManagerACTIVITY_UNAVAILABLE, captchaManager, collaborativeEditingHelper, draftManager, draftService, draftsTransitionHelper, heartbeatManager, LOCKED, newSpaceKey, notificationManager, pageService, parentPage, parentPageId, parentPageSpaceKey, parentPageString, parentPageTitle, targetId, USER_LIMIT_REACHEDpageTemplateManager, templateIdback, bean, formatConverter, inPreview, preview, storageFormat, wikiStyleRenderer, wysiwygContentincomingLinks, linkManager, pageManager, PREVIEW, RICHTEXT, viewRenderer, wysiwygConvertercontentPermissionManager, spaceManageraccessModeService, CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, personService, pluginAccessor, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager| Constructor and Description |
|---|
PageVariablesAction() |
| Modifier and Type | Method and Description |
|---|---|
String |
doEnter() |
String |
execute() |
protected List<Label> |
getLabels()
Metadata is now retrieved from the existing page, if it exists, otherwise it is stored on the
draft (i.e.
|
String |
getRenderedTemplateContent() |
List |
getTemplateVariables() |
DefaultWebInterfaceContext |
getWebInterfaceContext()
Returns a context which can be passed to web items when rendering them.
|
boolean |
isPermitted()
This action is being used to set up the content for the CreatePageAction, so the
permissions test is not needed (and doesn't work, as the final space the page will be
created in hasn't been chosen yet)
|
boolean |
isTemplateApplied() |
void |
setEditorFormatService(EditorFormatService editorFormatService)
Deprecated.
since 5.10. Unused.
|
void |
setFormatConverter(FormatConverter formatConverter) |
void |
setRenderedTemplateContent(String renderedTemplateContent) |
void |
setTemplateApplied(boolean templateApplied) |
void |
setXhtmlContent(XhtmlContent xhtmlContent) |
void |
validate()
Convert the editor content to storageFormat, catching and reporting any problems in the process.
|
assignParentPage, assignSpace, createCommand, createDraft, createPage, doDefault, doTemplateDefault, getCommandActionHelper, getCreatedAbstractPage, getInheritedViewPermissions, getLinkCreation, getPageToCreate, initialiseProvider, populateParentPageTitleField, setEncodedTitle, setLinkCreationafterAdd, beforeAdd, doAdd, getAttachmentSourceContent, getBreadcrumb, getCancelRedirectUrl, getCancelResult, getContentBreadcrumb, getContentType, getFromPage, getFromPageId, getNewSpace, getOriginalReferrer, getQueryString, getSpace, getSpaceKey, hasSetPagePermissionsPermission, isPageRequired, populateContextProvider, setAttachmentManager, setBreadcrumbGenerator, setFromPage, setFromPageId, setOriginalReferrer, setQueryString, setSpaceKey, setThemeManager, setTitleWritten, transferDraftAttachmentsgetCaptchaManager, getCollaborativeEditingHelper, getConfluenceRevision, getContentDraft, getContentObject, getCurrentEditPermission, getCurrentViewPermission, getDraft, getDraftAsCEO, getDraftId, getDraftShareId, getEntityId, getExistingDraft, getExistingDraftId, getLabelsString, getMovePageCommand, getNewSpaceKey, getNotificationManager, getParentPage, getParentPageId, getParentPageSpaceKey, getParentPageString, getParentPageTitle, getPermissionTypes, getPosition, getSynchronyRevisionSource, getSyncRev, getTargetId, getTitle, getViewInheritedContentPermissionSets, hasDraftPermission, 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, startHeartbeatOnDoDefault, validateDuplicatePageTitlegetGlobalPageTemplates, getPageTemplate, getSpacePageTemplates, getTemplateId, isPageTemplatesAvailable, loadTemplates, setPageTemplateManager, setTemplateIdgetBean, getContentForSaving, getConversionContext, getEditorFormattedContent, getInPreview, getRenderContext, getStorageFormat, getWysiwygContent, getxHtmlContent, setBack, setInPreview, setPreview, setWikiStyleRenderer, setWysiwygContent, updateXHtmlContentdisplayDatePath, getAvailableSpaces, getBeanKey, getBlogPost, getEditorVersion, getHelper, getIncomingLinks, getMode, 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, isLatestVersionRequired, isViewPermissionRequired, setContentPermissionManager, setPage, setSpaceManageraddActionError, 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, withServletRequestSupplieraddActionError, addActionMessage, addFieldError, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrorsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisEditPermissionRequiredpublic List getTemplateVariables() throws XhtmlException
XhtmlException@XsrfProtectionExcluded public String execute() throws Exception
execute in interface com.opensymphony.xwork.Actionexecute in class com.opensymphony.xwork.ActionSupportExceptionprotected List<Label> getLabels()
AbstractCreateAndEditPageActiongetLabels in class AbstractCreateAndEditPageActionpublic DefaultWebInterfaceContext getWebInterfaceContext()
WebInterfaceTypically, WebWork actions will implement this to provide extra details in the context such as content objects, and so on.
getWebInterfaceContext in interface WebInterfacegetWebInterfaceContext in class AbstractCreateAndEditPageActionpublic String getRenderedTemplateContent()
public void setRenderedTemplateContent(String renderedTemplateContent)
public void validate()
AbstractPreviewPageActionvalidate in interface MessageHolderAwarevalidate in interface com.opensymphony.xwork.Validateablevalidate in class CreatePageActionpublic boolean isPermitted()
isPermitted in class CreatePageActionpublic boolean isTemplateApplied()
public void setTemplateApplied(boolean templateApplied)
@Deprecated public void setEditorFormatService(EditorFormatService editorFormatService)
public void setXhtmlContent(XhtmlContent xhtmlContent)
public void setFormatConverter(FormatConverter formatConverter)
setFormatConverter in class AbstractPreviewPageActionCopyright © 2003–2020 Atlassian. All rights reserved.