Package org.opencms.workplace.threads
Class CmsXmlContentRepairSettings
java.lang.Object
org.opencms.workplace.threads.CmsXmlContentRepairSettings
Settings object that provides the settings to repair XML content resources in the OpenCms virtual file system (VFS).
- Since:
- 6.2.0
-
Constructor Summary
ConstructorDescriptionDefault constructor with cms object that is used for VFS path validation. -
Method Summary
Modifier and TypeMethodDescriptionReturns the resource type name of the XML contents to process.protected int
Returns the resource type ID of the XML contents to process.Returns the VFS folder under which XML contents will be processed recursively.boolean
isForce()
Checks if to force the reparation.boolean
Returns the flag indicating if resources in sub folders should be repaired, too.void
setForce
(boolean force) Sets the force reparation flag.void
setIncludeSubFolders
(boolean includeSubFolders) Sets the flag indicating if resources in sub folders should be repaired, too.void
setResourceType
(String resourceType) Sets the resource type name of the XML contents to process.void
setVfsFolder
(String vfsFolder) Sets the VFS folder under which XML contents will be processed recursively.
-
Constructor Details
-
CmsXmlContentRepairSettings
Default constructor with cms object that is used for VFS path validation.- Parameters:
cms
- the current users context to check the VFS path information
-
-
Method Details
-
getResourceType
Returns the resource type name of the XML contents to process.- Returns:
- the resource type name of the XML contents to process
-
getVfsFolder
Returns the VFS folder under which XML contents will be processed recursively.- Returns:
- the VFS folder under which XML contents will be processed recursively
-
isForce
Checks if to force the reparation.- Returns:
true
if to force the reparation
-
isIncludeSubFolders
Returns the flag indicating if resources in sub folders should be repaired, too.- Returns:
- the flag indicating if resources in sub folders should be repaired, too
-
setForce
Sets the force reparation flag.- Parameters:
force
- the force reparation flag to set
-
setIncludeSubFolders
Sets the flag indicating if resources in sub folders should be repaired, too.- Parameters:
includeSubFolders
- the flag indicating if resources in sub folders should be repaired, too
-
setResourceType
Sets the resource type name of the XML contents to process.- Parameters:
resourceType
- the resource type name of the XML contents to process
-
setVfsFolder
Sets the VFS folder under which XML contents will be processed recursively.- Parameters:
vfsFolder
- the VFS folder under which XML contents will be processed recursively- Throws:
CmsIllegalArgumentException
- if the given VFS path is not valid
-
getResourceTypeId
Returns the resource type ID of the XML contents to process.- Returns:
- the resource type ID of the XML contents to process
-