Class CmsXmlContentRepairSettings

java.lang.Object
org.opencms.workplace.threads.CmsXmlContentRepairSettings

public final class CmsXmlContentRepairSettings extends Object
Settings object that provides the settings to repair XML content resources in the OpenCms virtual file system (VFS).

Since:
6.2.0
  • 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

      public String 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

      public boolean isForce()
      Checks if to force the reparation.

      Returns:
      true if to force the reparation
    • isIncludeSubFolders

      public boolean 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

      public void setForce(boolean force)
      Sets the force reparation flag.

      Parameters:
      force - the force reparation flag to set
    • setIncludeSubFolders

      public void setIncludeSubFolders(boolean includeSubFolders)
      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

      public void setResourceType(String resourceType)
      Sets the resource type name of the XML contents to process.

      Parameters:
      resourceType - the resource type name of the XML contents to process
    • setVfsFolder

      public void setVfsFolder(String vfsFolder) throws CmsIllegalArgumentException
      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

      protected int getResourceTypeId()
      Returns the resource type ID of the XML contents to process.

      Returns:
      the resource type ID of the XML contents to process