public abstract class AbstractCreatePageAction extends AbstractCreateAndEditPageAction implements Spaced, BreadcrumbAware
Modifier and Type | Field and Description |
---|---|
protected AttachmentManager |
attachmentManager |
protected BreadcrumbGenerator |
breadcrumbGenerator |
protected StringParsingContextProvider |
contextProvider |
static String |
INPUT_VARIABLES |
protected String |
originalReferrer
To get back to the correct place if creation gets cancelled.
|
protected Space |
space |
protected ThemeManager |
themeManager |
ACTIVITY_UNAVAILABLE, captchaManager, collaborativeEditingHelper, 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
accessModeService, CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, personService, pluginAccessor, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager
Constructor and Description |
---|
AbstractCreatePageAction() |
Modifier and Type | Method and Description |
---|---|
protected String |
afterAdd()
Common processing to be performed by all subclasses after the add operation.
|
protected void |
assignParentPage(ContentEntityObject page,
Page parentPage) |
protected void |
assignSpace(ContentEntityObject draft,
Space space) |
protected String |
beforeAdd()
Common processing to be performed by all subclasses prior to performing the add.
|
void |
createPage()
Create the CEO to be saved from the data supplied to the action.
|
String |
doAdd() |
String |
doDefault()
Default webwork action execution method.
|
ContentEntityObject |
getAttachmentSourceContent()
Returns the
ConfluenceEntityObject that contains attachments relevant to the current action. |
Breadcrumb |
getBreadcrumb()
Returns the breadcrumb to be shown when the action is accessed.
|
String |
getCancelRedirectUrl() |
String |
getCancelResult() |
protected abstract CommandActionHelper |
getCommandActionHelper() |
protected Breadcrumb |
getContentBreadcrumb() |
String |
getContentType()
Returns the content type being created or edited.
|
protected abstract AbstractPage |
getCreatedAbstractPage() |
Page |
getFromPage() |
long |
getFromPageId()
Hack to grab the fromPageId in the AbstractCreatePageAction.
|
Space |
getNewSpace() |
String |
getOriginalReferrer() |
protected abstract AbstractPage |
getPageToCreate() |
String |
getQueryString() |
Space |
getSpace() |
String |
getSpaceKey() |
boolean |
hasSetPagePermissionsPermission() |
protected abstract void |
initialiseProvider(AbstractPage abstractPage) |
boolean |
isPageRequired()
If the action requires that the page be set before being run, then it should
return true to this method.
|
protected void |
populateContextProvider() |
void |
setAttachmentManager(AttachmentManager attachmentManager) |
void |
setBreadcrumbGenerator(BreadcrumbGenerator breadcrumbGenerator) |
void |
setFromPage(Page fromPage) |
void |
setFromPageId(long fromPageId) |
void |
setOriginalReferrer(String originalReferrer) |
void |
setQueryString(String queryString) |
void |
setSpaceKey(String spaceKey) |
void |
setThemeManager(ThemeManager themeManager) |
void |
setTitleWritten(String titleWritten) |
protected void |
transferDraftAttachments() |
createDraft, 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, setCaptchaManager, setCollaborativeEditingHelper, setDraftId, setDraftManager, setDraftService, setDraftShareId, setDraftsTransitionHelper, setHeartbeatManager, setLabelsString, setLabelsString, setNewSpaceKey, setNotificationManager, setPageService, setParentPageId, setParentPageSpaceKey, setParentPageString, setParentPageTitle, setPermissions, setPosition, setShowDraftMessage, setSpaceService, setSyncRev, setTargetId, setTitle, setUseDraft, startHeartbeatOnDoDefault, validate, 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, isLatestVersionRequired, isPermitted, isViewPermissionRequired, setContentPermissionManager, setPage, setSpaceManager
addActionError, 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, getLanguageJs, 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, withServletRequestSupplier
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
public static final String INPUT_VARIABLES
protected Space space
protected AttachmentManager attachmentManager
protected ThemeManager themeManager
protected BreadcrumbGenerator breadcrumbGenerator
protected final StringParsingContextProvider contextProvider
protected String originalReferrer
public void setSpaceKey(String spaceKey)
public String getSpaceKey()
getSpaceKey
in class AbstractPageAwareAction
public Space getSpace()
getSpace
in interface Spaced
getSpace
in class AbstractPageAwareAction
public Space getNewSpace()
public String doDefault() throws Exception
ConfluenceActionSupport
doDefault
in class AbstractCreateAndEditPageAction
Exception
- if something goes wrongprotected String beforeAdd() throws Exception
Action.SUCCESS
if successful. Any other return value means the add operation should not proceed.Exception
protected void populateContextProvider()
protected void assignSpace(ContentEntityObject draft, Space space)
protected void assignParentPage(ContentEntityObject page, Page parentPage)
protected abstract AbstractPage getCreatedAbstractPage()
protected abstract CommandActionHelper getCommandActionHelper()
protected abstract void initialiseProvider(AbstractPage abstractPage)
protected String afterAdd()
Action.SUCCESS
if successful. Any other return value means a failure.protected void transferDraftAttachments()
public void createPage() throws XhtmlException, IOException
IOException
XhtmlException
protected abstract AbstractPage getPageToCreate()
public boolean isPageRequired()
PageAware
isPageRequired
in interface PageAware
isPageRequired
in class AbstractPageAwareAction
public void setFromPageId(long fromPageId)
public long getFromPageId()
AbstractCreateAndEditPageAction
getFromPageId
in class AbstractCreateAndEditPageAction
public Page getFromPage()
public void setFromPage(Page fromPage)
public ContentEntityObject getAttachmentSourceContent()
AbstractPageAction
ConfluenceEntityObject
that contains attachments relevant to the current action. E.g.:
AbstractPage
being viewed or edited.Draft
of the AbstractPage
being createdAbstractPage
to which the Comment
being created/edited
belongsgetAttachmentSourceContent
in class AbstractPageAction
public String getCancelRedirectUrl()
public String getContentType()
AbstractCreateAndEditPageAction
getContentType
in class AbstractCreateAndEditPageAction
public boolean hasSetPagePermissionsPermission()
hasSetPagePermissionsPermission
in class AbstractCreateAndEditPageAction
public void setTitleWritten(String titleWritten)
public void setAttachmentManager(AttachmentManager attachmentManager)
public void setThemeManager(ThemeManager themeManager)
public String getCancelResult()
getCancelResult
in class AbstractCreateAndEditPageAction
public void setBreadcrumbGenerator(BreadcrumbGenerator breadcrumbGenerator)
public Breadcrumb getBreadcrumb()
BreadcrumbAware
getBreadcrumb
in interface BreadcrumbAware
protected Breadcrumb getContentBreadcrumb()
public void setQueryString(String queryString)
public String getQueryString()
public String getOriginalReferrer()
public void setOriginalReferrer(String originalReferrer)
Copyright © 2003–2021 Atlassian. All rights reserved.