public abstract class AbstractCreateBlueprintPageAction
extends com.atlassian.confluence.pages.actions.CreatePageAction
| Modifier and Type | Field and Description |
|---|---|
protected ContentBlueprint |
contentBlueprint |
protected ContentBlueprintManager |
contentBlueprintManager |
protected Map<String,Object> |
context |
attachmentManager, breadcrumbGenerator, contextProvider, INPUT_VARIABLES, originalReferrer, space, themeManagerACTIVITY_UNAVAILABLE, captchaManager, CLOSE_CANCEL_RESULT, collaborativeEditingHelper, DISCARD_CANCEL_RESULT, 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, spaceManagerCANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, pluginAccessor, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager| Constructor and Description |
|---|
AbstractCreateBlueprintPageAction() |
| Modifier and Type | Method and Description |
|---|---|
String |
getFormaction() |
boolean |
getGoToIndexPage() |
protected com.atlassian.confluence.pages.Page |
getOrCreateIndexPage() |
protected com.atlassian.confluence.pages.PageManager |
getPageManager() |
protected com.atlassian.confluence.pages.Page |
populateBlueprintPage()
Loads the Blueprint content template and generates the Blueprint Page from the template and the context.
|
protected void |
sendBlueprintPageCreateEvent(com.atlassian.confluence.pages.Page page) |
void |
setBlueprintManager(BlueprintManager blueprintManager) |
void |
setConfluenceWebResourceManager(com.atlassian.confluence.plugin.webresource.ConfluenceWebResourceManager confluenceWebResourceManager) |
void |
setContentBlueprintId(String id) |
void |
setContentBlueprintManager(ContentBlueprintManager contentBlueprintManager) |
void |
setContentGenerator(BlueprintContentGenerator contentGenerator) |
void |
setContentTemplateKey(String contentTemplateKey)
Deprecated.
|
void |
setContentTemplateRefId(String contentTemplateRefId)
Allows create POSTs to override the plugin descriptor's defined template key.
|
protected void |
setContext(Map<String,Object> context) |
void |
setContextJson(String contextJson) |
void |
setContextPathHolder(com.atlassian.confluence.core.ContextPathHolder contextPathHolder) |
void |
setEditorFormatService(com.atlassian.confluence.xhtml.api.EditorFormatService editorFormatService) |
void |
setGoToIndexPage(boolean goToIndexPage) |
void |
setSpaceKey(String spaceKey)
Permissions checking is currently done against the space associated with "newSpaceKey" (as opposed to "spaceKey").
|
void |
storeBlueprintKeyInEditorContext()
We need to pass information from this action call to the one where the form is submitted, so
that we know which 'simple' blueprint module is being used and which index page should be created, etc.
|
void |
storeBlueprintPageIndicatorInEditorContext() |
protected void |
validatePageTitleAgainstIndexPageTitle() |
assignParentPage, assignSpace, createCommand, createDraft, createPage, doDefault, doTemplateDefault, getCommandActionHelper, getCreatedAbstractPage, getInheritedViewPermissions, getLinkCreation, getPageToCreate, initialiseProvider, isPermitted, populateParentPageTitleField, setEncodedTitle, setLinkCreation, validateafterAdd, beforeAdd, doAdd, getAttachmentSourceContent, getBreadcrumb, getCancelRedirectUrl, getCancelResult, getContentBreadcrumb, getContentType, getFromPage, getFromPageId, getNewSpace, getOriginalReferrer, getQueryString, getSpace, getSpaceKey, hasSetPagePermissionsPermission, isInvalidPageTitle, isPageRequired, populateContextProvider, setAttachmentManager, setBreadcrumbGenerator, setFromPageId, setOriginalReferrer, setQueryString, setThemeManager, setTitleWritten, transferDraftAttachmentsgetCaptchaManager, getCollaborativeEditingHelper, getConfluenceRevision, getContentDraft, getContentObject, getCurrentEditPermission, getCurrentViewPermission, getDraft, getDraftAsCEO, getDraftId, getDraftShareId, getEntityId, getExistingDraft, getExistingDraftId, getLabels, getLabelsString, getMovePageCommand, getNewSpaceKey, getNotificationManager, getParentPage, getParentPageId, getParentPageSpaceKey, getParentPageString, getParentPageTitle, getPermissionTypes, getPosition, getSynchronyRevisionSource, getSyncRev, getTargetId, getTitle, getViewInheritedContentPermissionSets, getWebInterfaceContext, hasDraftPermission, isCollaborativeContent, isNewAbstractPage, isRestricted, isShowDraftMessage, isUseDraft, setAutomaticWatchIfRequired, 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, setFormatConverter, 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, hasViewPagePermission, isLatestVersionRequired, isViewPermissionRequired, setContentPermissionManager, setPage, setSpaceManageraddActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, formatFriendlyDate, 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, 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, setWebInterfaceManageraddActionError, addActionMessage, addFieldError, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrorsprotected ContentBlueprint contentBlueprint
protected ContentBlueprintManager contentBlueprintManager
protected void validatePageTitleAgainstIndexPageTitle()
protected com.atlassian.confluence.pages.Page getOrCreateIndexPage()
protected com.atlassian.confluence.pages.Page populateBlueprintPage()
throws com.atlassian.confluence.content.render.xhtml.XhtmlException
com.atlassian.confluence.content.render.xhtml.XhtmlExceptionpublic void storeBlueprintKeyInEditorContext()
public void storeBlueprintPageIndicatorInEditorContext()
protected void sendBlueprintPageCreateEvent(com.atlassian.confluence.pages.Page page)
public void setContextJson(String contextJson)
public void setContentBlueprintId(String id)
public void setSpaceKey(String spaceKey)
Failing to do this will lead to strange permission issues.
setSpaceKey in class com.atlassian.confluence.pages.actions.AbstractCreatePageActionpublic void setContentTemplateRefId(String contentTemplateRefId)
@Deprecated public void setContentTemplateKey(String contentTemplateKey)
public String getFormaction()
public void setContextPathHolder(com.atlassian.confluence.core.ContextPathHolder contextPathHolder)
public void setBlueprintManager(BlueprintManager blueprintManager)
public void setContentGenerator(BlueprintContentGenerator contentGenerator)
public void setEditorFormatService(com.atlassian.confluence.xhtml.api.EditorFormatService editorFormatService)
public void setConfluenceWebResourceManager(com.atlassian.confluence.plugin.webresource.ConfluenceWebResourceManager confluenceWebResourceManager)
public void setContentBlueprintManager(ContentBlueprintManager contentBlueprintManager)
protected com.atlassian.confluence.pages.PageManager getPageManager()
public boolean getGoToIndexPage()
public void setGoToIndexPage(boolean goToIndexPage)
Copyright © 2017 Atlassian. All rights reserved.