Class CmsCopyPageDialog.TargetInfo

    • Constructor Summary

      Constructors 
      Constructor Description
      TargetInfo​(CmsObject cms, java.lang.String path)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      CmsResource getTargetFolder()
      Gets the target folder resource, or null if no target folder could be determined.
      java.lang.String getTargetName()
      Gets the target name, or null if only the target folder was given in the target select widget.
      boolean isFile()
      Returns true if the target path or its parent is actually a file.
      boolean isValid()
      Returns true if the target folder could be determined from the target path.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TargetInfo

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

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

      • getTargetFolder

        public CmsResource getTargetFolder()
        Gets the target folder resource, or null if no target folder could be determined.

        Returns:
        the target folder resource
      • getTargetName

        public java.lang.String 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