Class CopyPageAction
java.lang.Object
org.apache.struts2.ActionSupport
com.atlassian.confluence.core.AbstractI18nActionSupport
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
com.atlassian.confluence.pages.actions.CopyPageAction
- All Implemented Interfaces:
Beanable,PageAware,TinyUrlAware,WebInterface,CaptchaAware,Spaced,BreadcrumbAware,MessageHolderAware,Serializable,org.apache.struts2.action.Action,org.apache.struts2.interceptor.ValidationAware,org.apache.struts2.locale.LocaleProvider,org.apache.struts2.text.TextProvider,org.apache.struts2.Validateable
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.atlassian.confluence.pages.actions.CreatePageAction
CreatePageAction.SimplePageProvider -
Field Summary
Fields inherited from class com.atlassian.confluence.pages.actions.CreatePageAction
pageProviderFields inherited from class com.atlassian.confluence.pages.actions.AbstractCreatePageAction
attachmentManager, breadcrumbGenerator, contextProvider, INPUT_VARIABLES, originalReferrer, space, themeManagerFields inherited from class com.atlassian.confluence.pages.actions.AbstractCreateAndEditPageAction
ACTIVITY_UNAVAILABLE, captchaManager, collaborativeEditingHelper, draftManager, draftService, draftsTransitionHelper, heartbeatManager, LOCKED, movePageCommandHelper, newSpaceKey, notificationManager, pageService, parentPage, parentPageId, parentPageSpaceKey, parentPageString, parentPageTitle, targetId, USER_LIMIT_REACHEDFields inherited from class com.atlassian.confluence.pages.actions.AbstractTemplatePageAction
pageTemplateManager, templateIdFields inherited from class com.atlassian.confluence.pages.actions.AbstractPreviewPageAction
back, bean, formatConverter, inPreview, preview, storageFormat, wikiStyleRenderer, wysiwygContentFields inherited from class com.atlassian.confluence.pages.actions.AbstractPageAction
incomingLinks, linkManager, pageManager, PREVIEW, RICHTEXT, viewRenderer, wysiwygConverterFields inherited from class com.atlassian.confluence.pages.actions.AbstractPageAwareAction
contentPermissionManager, spaceManagerFields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
accessModeService, CANCEL, confluenceAccessManager, contentUiSupport, eventPublisher, formatSettingsManager, globalSettingsManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, localeManager, loginManager, messageHolder, permissionManager, pluginAccessor, request, response, spacePermissionManager, strutsHelper, systemInformationService, userAccessor, webInterfaceManagerFields inherited from class org.apache.struts2.ActionSupport
containerFields inherited from interface org.apache.struts2.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ServiceCommandConvenient Action execution method which defaults to returning INPUTgetEditorFormattedContent(String storageFormat) longlongprotected StringReturns a context which can be passed to web items when rendering them.booleanIf the action requires that the page be set before being run, then it should return true to this method.booleanConsulted byPermissionCheckInterceptor.booleanvoidsetContentPropertyService(ContentPropertyService contentPropertyService) voidsetCopyAttachments(Boolean copyAttachments) voidsetDuplicateNestedTagsRemover(DuplicateNestedTagsRemover duplicateNestedTagsRemover) voidsetIdOfPageToCopy(long idOfPageToCopy) voidsetIdOfPageToCopyTo(long idOfPageToCopyTo) voidsetRelatedContentRefactorer(RelatedContentRefactorer refactorer) Methods inherited from class com.atlassian.confluence.pages.actions.CreatePageAction
assignParentPage, assignSpace, createDraft, createPage, doTemplateDefault, getCommandActionHelper, getCreatedAbstractPage, getInheritedViewPermissions, getLinkCreation, getPageToCreate, initialiseProvider, populateParentPageTitleField, setEncodedTitle, setLinkCreation, validateMethods inherited from class com.atlassian.confluence.pages.actions.AbstractCreatePageAction
afterAdd, beforeAdd, doAdd, getAttachmentSourceContent, getBreadcrumb, getCancelRedirectUrl, getCancelResult, getContentBreadcrumb, getContentType, getFromPage, getFromPageId, getOriginalReferrer, getQueryString, getSpace, getSpaceKey, hasSetPagePermissionsPermission, populateContextProvider, setAttachmentManager, setBreadcrumbGenerator, setFromPage, setFromPageId, setOriginalReferrer, setQueryString, setSpaceKey, setThemeManager, setTitleWritten, transferDraftAttachmentsMethods inherited from class com.atlassian.confluence.pages.actions.AbstractCreateAndEditPageAction
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, getXsrfToken, hasDraftPermission, isCollaborativeContent, isNewAbstractPage, isRestricted, isUseDraft, setCaptchaManager, setCollaborativeEditingHelper, setDraftId, setDraftManager, setDraftService, setDraftShareId, setDraftsTransitionHelper, setHeartbeatManager, setLabelsString, setLabelsString, setMovePageCommandHelper, setNewSpaceKey, setNotificationManager, setPageService, setParentPageId, setParentPageSpaceKey, setParentPageString, setParentPageTitle, setPermissions, setPosition, setShowDraftMessage, setSpaceService, setSyncRev, setTargetId, setTitle, setUseDraft, setXsrfTokenGenerator, startHeartbeatOnDoDefault, validateDuplicatePageTitleMethods inherited from class com.atlassian.confluence.pages.actions.AbstractTemplatePageAction
getGlobalPageTemplates, getPageTemplate, getSpacePageTemplates, getTemplateId, isPageTemplatesAvailable, loadTemplates, setPageTemplateManager, setTemplateIdMethods inherited from class com.atlassian.confluence.pages.actions.AbstractPreviewPageAction
getBean, getContentForSaving, getConversionContext, getInPreview, getRenderContext, getStorageFormat, getWysiwygContent, getxHtmlContent, setBack, setFormatConverter, setInPreview, setPreview, setWikiStyleRenderer, setWysiwygContent, updateXHtmlContentMethods inherited from class com.atlassian.confluence.pages.actions.AbstractPageAction
displayDatePath, getAvailableSpaces, getBeanKey, getBlogPost, getEditorVersion, getHelper, getIncomingLinks, getMode, getNextPost, getNumberOfAttachmentsAsString, getPermittedChildren, getPostingDateAsDate, getPostingDay, getPostingTimeAsTime, getPreviousPost, getPreviousVersion, getSpaceManager, getSuggestedLabels, getTinyUrl, hasAttachFilePermissions, hasPermittedChildren, isSpaceAdmin, isSuperUser, isUserWatchingOwnContent, setConfluenceWysiwygConverter, setEditorManager, setLinkManager, setMode, setPageManager, setPostingDate, setPostingTime, setViewRendererMethods inherited from class com.atlassian.confluence.pages.actions.AbstractPageAwareAction
getCustomPageUrl, getPage, getPageId, getPageUrl, isLatestVersionRequired, isViewPermissionRequired, setContentPermissionManager, setPage, setSpaceManagerMethods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, getActionErrors, getActionMessages, getActionName, getActiveRequest, getActiveResponse, getAuthenticatedUser, getBootstrapStatusProvider, getDateFormatter, getDefaultTimeZone, getFieldErrors, getGlobalSettings, getI18n, getLocale, getMessageHolder, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getTimeZone, getUserByName, getUserInterfaceState, isAnonymousUser, isEmailVisible, setAccessModeService, setBootstrapStatusProvider, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventPublisher, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setSettingsManager, setSpacePermissionManager, setStrutsHelper, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManagerMethods inherited from class com.atlassian.confluence.core.AbstractI18nActionSupport
getText, getText, getText, getText, getText, getText, getText, getText, getTextStrictMethods inherited from class org.apache.struts2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, execute, getContainer, getFormatted, getLocaleProvider, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, toLocaleMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.security.CaptchaAware
mustValidateCaptchaMethods inherited from interface com.atlassian.confluence.pages.actions.PageAware
isEditPermissionRequired
-
Constructor Details
-
CopyPageAction
public CopyPageAction()
-
-
Method Details
-
createCommand
- Overrides:
createCommandin classCreatePageAction
-
doDefault
Description copied from class:ConfluenceActionSupportConvenient Action execution method which defaults to returning INPUT- Overrides:
doDefaultin classCreatePageAction- Throws:
Exception
-
isShowDraftMessage
public boolean isShowDraftMessage()- Overrides:
isShowDraftMessagein classAbstractCreateAndEditPageAction
-
isPermitted
public boolean isPermitted()Description copied from class:ConfluenceActionSupportConsulted byPermissionCheckInterceptor.- Overrides:
isPermittedin classCreatePageAction
-
getPageToCopyTo
-
getPageToCopy
-
getWebInterfaceContext
Description copied from interface:WebInterfaceReturns a context which can be passed to web items when rendering them.Typically, Struts actions will implement this to provide extra details in the context such as content objects, and so on.
- Specified by:
getWebInterfaceContextin interfaceWebInterface- Overrides:
getWebInterfaceContextin classAbstractCreateAndEditPageAction
-
isPageRequired
public boolean isPageRequired()Description copied from interface:PageAwareIf the action requires that the page be set before being run, then it should return true to this method. If the action requires a page, but no page is available, then the interceptor will automatically redirect to the 'pagenotfound' result- Specified by:
isPageRequiredin interfacePageAware- Overrides:
isPageRequiredin classAbstractCreatePageAction- Returns:
- true if the action requires a page in order to execute
-
getIdOfPageToCopyTo
public long getIdOfPageToCopyTo() -
setIdOfPageToCopyTo
public void setIdOfPageToCopyTo(long idOfPageToCopyTo) -
getIdOfPageToCopy
public long getIdOfPageToCopy() -
setIdOfPageToCopy
public void setIdOfPageToCopy(long idOfPageToCopy) -
setRelatedContentRefactorer
-
getNewSpace
- Overrides:
getNewSpacein classAbstractCreatePageAction- Returns:
- the space referenced by the newSpaceKey property, or null if there is none or it cannot be found.
-
isCopyAttachments
-
setCopyAttachments
-
getNumberOfLabelsAsString
- Overrides:
getNumberOfLabelsAsStringin classAbstractPageAction
-
setContentPropertyService
-
setDuplicateNestedTagsRemover
-
getEditorFormattedContent
- Overrides:
getEditorFormattedContentin classAbstractPreviewPageAction- Parameters:
storageFormat- the storage data to be converted for editing.- Returns:
- the supplied storage formatted content in editor format
-