Class CmsCopyPageDialog.TargetInfo

java.lang.Object
org.opencms.ui.sitemap.CmsCopyPageDialog.TargetInfo
Enclosing class:
CmsCopyPageDialog

Helper class used to interpret the target path in the 'copy page' dioalog.

  • Constructor Details

    • TargetInfo

      public TargetInfo(CmsObject cms, String path)
      Creates a new instance.

      Parameters:
      cms - the CMS context to use
      path - the target path to analyze
  • Method Details

    • getTargetFolder

      Gets the target folder resource, or null if no target folder could be determined.

      Returns:
      the target folder resource
    • getTargetName

      Gets the target name, or null if only the target folder was given in the target select widget.

      Returns:
      the target name
    • isFile

      public boolean isFile()
      Returns true if the target path or its parent is actually a file.

      Returns:
      true if the target path or its parent is a file
    • isValid

      public boolean isValid()
      Returns true if the target folder could be determined from the target path.

      Returns:
      true if the target folder could be determined