Package org.opencms.ui.sitemap
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the target folder resource, or null if no target folder could be determined.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 Details
-
TargetInfo
Creates a new instance.- Parameters:
cms
- the CMS context to usepath
- 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
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
Returns true if the target folder could be determined from the target path.- Returns:
- true if the target folder could be determined
-