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
ConstructorsConstructorDescriptionDefault 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 intReturns the resource type ID of the XML contents to process.Returns the VFS folder under which XML contents will be processed recursively.booleanisForce()Checks if to force the reparation.booleanReturns the flag indicating if resources in sub folders should be repaired, too.voidsetForce(boolean force) Sets the force reparation flag.voidsetIncludeSubFolders(boolean includeSubFolders) Sets the flag indicating if resources in sub folders should be repaired, too.voidsetResourceType(String resourceType) Sets the resource type name of the XML contents to process.voidsetVfsFolder(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:
trueif 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
-