com.atlassian.confluence.pages.actions
Class CreatePageAction
java.lang.Object
com.opensymphony.xwork.ActionSupport
com.atlassian.confluence.core.ConfluenceActionSupport
com.atlassian.confluence.pages.actions.AbstractPageAwareAction
com.atlassian.confluence.pages.actions.AbstractPageAction
com.atlassian.confluence.pages.actions.AbstractPreviewPageAction
com.atlassian.confluence.pages.actions.AbstractTemplatePageAction
com.atlassian.confluence.pages.actions.AbstractCreateAndEditPageAction
com.atlassian.confluence.pages.actions.AbstractCreatePageAction
com.atlassian.confluence.pages.actions.CreatePageAction
- All Implemented Interfaces:
- PageAware, TinyUrlAware, WebInterface, CaptchaAware, Spaced, Action, LocaleProvider, TextProvider, Validateable, ValidationAware, Serializable
- Direct Known Subclasses:
- CopyPageAction, CreatePageEntryAction, PageVariablesAction
public class CreatePageAction
- extends AbstractCreatePageAction
- See Also:
- Serialized Form
Fields inherited from class com.atlassian.confluence.pages.actions.AbstractCreateAndEditPageAction |
captchaManager, draftManager, editPermissionsGroups, editPermissionsUsers, newSpaceKey, notificationManager, parentPageId, parentPageSpaceKey, parentPageString, parentPageTitle, targetId, viewPermissionsGroups, viewPermissionsUsers |
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport |
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, log, permissionManager, permitted, pluginAccessor, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager |
Methods inherited from class com.atlassian.confluence.pages.actions.AbstractCreatePageAction |
doAdd, getAttachmentSourceContent, getContentType, getFromPage, getFromPageId, getNewSpace, getPageToReturnToOnCancel, getSpace, getSpaceKey, hasSetPagePermissionsPermission, isInvalidPageTitle, isPageRequired, onAddComplete, setAttachmentManager, setFromPageId, setSpaceKey, setTitle, setTitleWritten, titleIsSetToDefault, transferDraftAttachments |
Methods inherited from class com.atlassian.confluence.pages.actions.AbstractCreateAndEditPageAction |
createEditPermissions, createViewPermissions, getCancelResult, getCaptchaManager, getCurrentEditPermission, getCurrentViewPermission, getDraft, getDraftId, getEditPermissionsGroups, getEditPermissionsSummary, getEditPermissionsUsers, getLabelsShowing, getLabelsString, getLocationShowing, getMovePageCommand, getNewSpaceKey, getNotificationManager, getParentPage, getParentPageId, getParentPageSpaceKey, getParentPageString, getParentPageTitle, getPermissionTypes, getPosition, getRestrictionsShowing, getTargetId, getTitle, getViewInheritedContentPermissionSets, getViewPermissionsGroups, getViewPermissionsSummary, getViewPermissionsUsers, isShowDraftMessage, isUseDraft, setAutomaticWatchIfRequired, setCaptchaManager, setContentChanged, setDiscardDraft, setDraftId, setDraftManager, setEditPermissionsGroups, setEditPermissionsUsers, setLabelsShowing, setLabelsString, setLocationShowing, setNewSpaceKey, setNotificationManager, setPageService, setParentPageId, setParentPageSpaceKey, setParentPageString, setParentPageTitle, setPermissions, setPosition, setRestrictionsShowing, setShowDraftMessage, setSpaceService, setTargetId, setUseDraft, setViewPermissionsGroups, setViewPermissionsUsers, validateDuplicatePageTitle |
Methods inherited from class com.atlassian.confluence.pages.actions.AbstractPreviewPageAction |
getContent, getInPreview, getPageOrDummyPage, getWysiwygContent, getxHtmlContent, setBack, setContent, setInPreview, setPreview, setWikiStyleRenderer, setWysiwygcontent, updateXHtmlContent |
Methods inherited from class com.atlassian.confluence.pages.actions.AbstractPageAction |
displayDatePath, getAvailableSpaces, getBeanKey, getBlogPost, getEditor, getEditorVersion, getHelper, getIncomingLinks, getMARKUP, getMode, getNextPost, getPermittedChildren, getPostingDate, getPostingDay, getPostingDayOfMonth, getPostingMonth, getPostingMonthNumeric, getPostingYear, getPREVIEW, getPreviousPost, getPreviousVersion, getRICHTEXT, getShowMarkup, getSpaceManager, getSuggestedLabels, getSupportWysiwyg, getTinyUrl, getUseWysiwyg, getWebInterfaceContext, getXhtml, hasAttachFilePermissions, hasPermittedChildren, isSpaceAdmin, isSuperUser, isUserWatchingOwnContent, setConfluenceWysiwygConverter, setEditorManager, setLinkManager, setMode, setPageManager, setPostingDate, setXhtml |
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport |
addActionError, addFieldError, addPermissionTypeTo, addToHistory, formatFriendlyDate, getActionName, getActionName, getBootstrapManager, getContext, getDateFormatter, getDefaultResourceBundle, getDocLink, getEventManager, getFriendlyDateFormatter, getGlobalSettings, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getNiceContentType, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRandom, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserFullName, getUserInterfaceState, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPermissionCheck, isPermittedAsString, isPrintableVersion, isSharedMode, isUserStatusPluginEnabled, isUsingHSQL, setBootstrapManager, setCancel, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setPermissionCheck, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setSettingsManager, setSpacePermissionManager, setSystemInformationService, setUserAccessor, setWebInterfaceManager |
Methods inherited from class com.opensymphony.xwork.ActionSupport |
addActionError, addActionMessage, addFieldError, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CreatePageAction
public CreatePageAction()
validate
public void validate()
- Specified by:
validate
in interface Validateable
- Overrides:
validate
in class AbstractCreateAndEditPageAction
createDraftIfItDoesNotExist
protected void createDraftIfItDoesNotExist()
- Description copied from class:
AbstractCreatePageAction
- creates a draft if it doesn't already exist. The purpose is to ensure we have a draft available when we create any new content
- Overrides:
createDraftIfItDoesNotExist
in class AbstractCreatePageAction
isPermitted
public boolean isPermitted()
- Overrides:
isPermitted
in class AbstractPageAwareAction
setLinkCreation
public void setLinkCreation(String linkCreation)
getLinkCreation
public String getLinkCreation()
setEncodedTitle
public void setEncodedTitle(String encodedTitle)
doTemplateDefault
public String doTemplateDefault()
throws Exception
- Throws:
Exception
doDefault
public String doDefault()
throws Exception
- Description copied from class:
ConfluenceActionSupport
- Default webwork action execution method.
- Overrides:
doDefault
in class AbstractCreatePageAction
- Returns:
- the action result
- Throws:
Exception
- if something goes wrong
populateParentPageTitleField
protected void populateParentPageTitleField()
createPage
public void createPage()
throws IOException
- Overrides:
createPage
in class AbstractCreatePageAction
- Throws:
IOException
getPageToCreate
protected AbstractPage getPageToCreate()
- Specified by:
getPageToCreate
in class AbstractCreatePageAction
getInheritedViewPermissions
public Set getInheritedViewPermissions()