Class CopyPage


  • public class CopyPage
    extends ViewPage
    Represents the common actions possible on the Copy Page page.

    Since:
    3.2M3
    Version:
    $Id: 7a0ab5c24b1c1408f24ebd4a323be2cc60d17b00 $
    • Constructor Detail

      • CopyPage

        public CopyPage()
    • Method Detail

      • getSourceLocation

        public BreadcrumbElement getSourceLocation()
        Returns:
        the breadcrumb that specified the location of the source document
        Since:
        7.2M3
      • getSourceSpaceName

        public String getSourceSpaceName()
        Returns:
        the name of the space where the source page should be.
      • getSourcePageName

        public String getSourcePageName()
        Returns:
        the name of the source page.
      • getTargetSpaceName

        public String getTargetSpaceName()
        Returns:
        the current name of the space where the page should be copied.
      • setTargetSpaceName

        public void setTargetSpaceName​(String targetSpaceName)
        Sets the name of the space where the page should be copied.
        Parameters:
        targetSpaceName - the name of the space where the page should be copied
      • getTargetPageName

        public String getTargetPageName()
        Returns:
        the current name of the target page.
      • isTerminal

        public boolean isTerminal()
        Returns:
        true if the checkbox for copying terminal page is checked.
        Since:
        12.0RC1
      • setTargetPageName

        public void setTargetPageName​(String targetPageName)
        Sets the name of the target page.
        Parameters:
        targetPageName - the name of the target page
      • clickCopyButtonExpectingOverwritePrompt

        public CopyOverwritePromptPage clickCopyButtonExpectingOverwritePrompt()
        Submit the copy page form and expect to receive an overwrite warning.
        Returns:
        the overwrite warning page
      • getDocumentPicker

        public DocumentPicker getDocumentPicker()
        Returns:
        the document picker used to select the target document