Package org.opencms.ui.sitemap
Class CmsCopyPageDialog.TargetInfo
- java.lang.Object
-
- org.opencms.ui.sitemap.CmsCopyPageDialog.TargetInfo
-
- Enclosing class:
- CmsCopyPageDialog
public class CmsCopyPageDialog.TargetInfo extends java.lang.Object
Helper class used to interpret the target path in the 'copy page' dioalog.
-
-
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.
-
-
-
Constructor Detail
-
TargetInfo
public TargetInfo(CmsObject cms, java.lang.String path)
Creates a new instance.- Parameters:
cms
- the CMS context to usepath
- 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
-
-