public class CreatePageAction extends AbstractCreatePageAction
Modifier and Type | Class and Description |
---|---|
protected static class |
CreatePageAction.SimplePageProvider
A simple PageProvider that returns the Page that has been set on it.
|
Modifier and Type | Field and Description |
---|---|
protected CreatePageAction.SimplePageProvider |
pageProvider |
attachmentManager, breadcrumbGenerator, contextProvider, INPUT_VARIABLES, originalReferrer, space, themeManager
ACTIVITY_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_REACHED
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 |
---|
CreatePageAction() |
Modifier and Type | Method and Description |
---|---|
protected void |
assignParentPage(ContentEntityObject page,
Page parentPage) |
protected void |
assignSpace(ContentEntityObject page,
Space space) |
protected ServiceCommand |
createCommand() |
protected Draft |
createDraft() |
void |
createPage()
Create the CEO to be saved from the data supplied to the action.
|
String |
doDefault()
Default webwork action execution method.
|
String |
doTemplateDefault() |
protected CommandActionHelper |
getCommandActionHelper() |
protected AbstractPage |
getCreatedAbstractPage() |
Set |
getInheritedViewPermissions() |
String |
getLinkCreation() |
protected AbstractPage |
getPageToCreate() |
protected void |
initialiseProvider(AbstractPage abstractPage) |
boolean |
isPermitted() |
protected void |
populateParentPageTitleField() |
void |
setEncodedTitle(String encodedTitle) |
void |
setLinkCreation(String linkCreation) |
void |
validate()
Convert the editor content to storageFormat, catching and reporting any problems in the process.
|
afterAdd, beforeAdd, doAdd, getAttachmentSourceContent, getBreadcrumb, getCancelRedirectUrl, getCancelResult, getContentBreadcrumb, getContentType, getFromPage, getFromPageId, getNewSpace, getOriginalReferrer, getQueryString, getSpace, getSpaceKey, hasSetPagePermissionsPermission, isInvalidPageTitle, isPageRequired, populateContextProvider, setAttachmentManager, setBreadcrumbGenerator, setFromPageId, setOriginalReferrer, setQueryString, setSpaceKey, setThemeManager, setTitleWritten, transferDraftAttachments
getCaptchaManager, 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, validateDuplicatePageTitle
getGlobalPageTemplates, getPageTemplate, getSpacePageTemplates, getTemplateId, isPageTemplatesAvailable, loadTemplates, setPageTemplateManager, setTemplateId
getBean, getContentForSaving, getConversionContext, getEditorFormattedContent, getInPreview, getRenderContext, getStorageFormat, getWysiwygContent, getxHtmlContent, setBack, setFormatConverter, setInPreview, setPreview, setWikiStyleRenderer, setWysiwygContent, updateXHtmlContent
displayDatePath, 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, setViewRenderer
getFriendlyDateFormatterHelper, getPage, getPageId, hasViewPagePermission, isLatestVersionRequired, 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, 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, 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
isEditPermissionRequired
protected CreatePageAction.SimplePageProvider pageProvider
protected CommandActionHelper getCommandActionHelper()
getCommandActionHelper
in class AbstractCreatePageAction
protected void initialiseProvider(AbstractPage abstractPage)
initialiseProvider
in class AbstractCreatePageAction
protected ServiceCommand createCommand()
public void validate()
AbstractPreviewPageAction
validate
in interface MessageHolderAware
validate
in interface com.opensymphony.xwork.Validateable
validate
in class AbstractCreateAndEditPageAction
protected Draft createDraft()
createDraft
in class AbstractCreateAndEditPageAction
public boolean isPermitted()
isPermitted
in class AbstractPageAwareAction
protected AbstractPage getCreatedAbstractPage()
getCreatedAbstractPage
in class AbstractCreatePageAction
public void setLinkCreation(String linkCreation)
public String getLinkCreation()
public void setEncodedTitle(String encodedTitle)
public String doDefault() throws Exception
ConfluenceActionSupport
doDefault
in class AbstractCreatePageAction
Exception
- if something goes wrongprotected void populateParentPageTitleField()
public void createPage() throws XhtmlException, IOException
AbstractCreatePageAction
createPage
in class AbstractCreatePageAction
IOException
XhtmlException
protected AbstractPage getPageToCreate()
getPageToCreate
in class AbstractCreatePageAction
protected void assignSpace(ContentEntityObject page, Space space)
assignSpace
in class AbstractCreatePageAction
protected void assignParentPage(ContentEntityObject page, Page parentPage)
assignParentPage
in class AbstractCreatePageAction
public Set getInheritedViewPermissions()
Copyright © 2003–2018 Atlassian. All rights reserved.