Class CmsUpdateXmlSettings
java.lang.Object
org.opencms.workplace.tools.content.updatexml.CmsUpdateXmlSettings
Bean to hold the settings needed for the operation of converting xml files in
the OpenCms VFS.
- Since:
- 7.0.5
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Property for the tag-replace contentool to know the files that have been processed before in case of early terminaton in previous runs. -
Constructor Summary
ConstructorDescriptionCmsUpdateXmlSettings
(org.opencms.file.CmsObject cms) Bean constructor with cms object for path validation. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets if also files in sub folders shall become processed.boolean
Gets if only count files to transform.int
Gets resource type to transform.Returns the path under which files will be processed.Gets path to xsl file.void
setIncludeSubFolders
(boolean subFolders) Sets value if also process files in sub folders.void
setOnlyCountFiles
(boolean countFiles) Sets if only count files to transform.void
setResourceType
(int resourceType) Sets resource type to transform.void
setVfsFolder
(String vfsFolder) Sets vfs folder to process files in.void
setXslFile
(String xslFile) Sets path to xsl file.
-
Field Details
-
PROPERTY_CONTENTOOLS_TAGREPLACE
Property for the tag-replace contentool to know the files that have been processed before in case of early terminaton in previous runs.- See Also:
-
-
Constructor Details
-
CmsUpdateXmlSettings
Bean constructor with cms object for path validation.- Parameters:
cms
- used to test the working path for valididty.
-
-
Method Details
-
getIncludeSubFolders
Gets if also files in sub folders shall become processed.- Returns:
- if also files in sub folders shall become processed.
-
getOnlyCountFiles
Gets if only count files to transform.- Returns:
- If only count files to transform.
-
getResourceType
Gets resource type to transform.- Returns:
- Resource type to transform.
-
getVfsFolder
Returns the path under which files will be processed.- Returns:
- the path under which files will be processed.
-
getXslFile
Gets path to xsl file.- Returns:
- Path to xsl file.
-
setIncludeSubFolders
public void setIncludeSubFolders(boolean subFolders) throws org.opencms.main.CmsIllegalArgumentException Sets value if also process files in sub folders.- Parameters:
subFolders
- True if process sub folders, too- Throws:
org.opencms.main.CmsIllegalArgumentException
- if the argument is not valid.
-
setOnlyCountFiles
public void setOnlyCountFiles(boolean countFiles) throws org.opencms.main.CmsIllegalArgumentException Sets if only count files to transform.- Parameters:
countFiles
- True, if only count files to transform- Throws:
org.opencms.main.CmsIllegalArgumentException
- if the argument is not valid.
-
setResourceType
Sets resource type to transform.- Parameters:
resourceType
- File format to transform- Throws:
org.opencms.main.CmsIllegalArgumentException
- if the argument is not valid.
-
setVfsFolder
Sets vfs folder to process files in.- Parameters:
vfsFolder
- The vfs folder to process files in- Throws:
org.opencms.main.CmsIllegalArgumentException
- if the argument is not valid.
-
setXslFile
Sets path to xsl file.- Parameters:
xslFile
- Path to xsl file- Throws:
org.opencms.main.CmsIllegalArgumentException
- if the argument is not valid.
-