Class CmsUpdateXmlSettings

java.lang.Object
org.opencms.workplace.tools.content.updatexml.CmsUpdateXmlSettings

public final class CmsUpdateXmlSettings extends Object
Bean to hold the settings needed for the operation of converting xml files in the OpenCms VFS.

Since:
7.0.5
  • Field Details

  • Constructor Details

    • CmsUpdateXmlSettings

      public CmsUpdateXmlSettings(org.opencms.file.CmsObject cms)
      Bean constructor with cms object for path validation.

      Parameters:
      cms - used to test the working path for valididty.
  • Method Details

    • getIncludeSubFolders

      public boolean getIncludeSubFolders()
      Gets if also files in sub folders shall become processed.

      Returns:
      if also files in sub folders shall become processed.
    • getOnlyCountFiles

      public boolean getOnlyCountFiles()
      Gets if only count files to transform.

      Returns:
      If only count files to transform.
    • getResourceType

      public int getResourceType()
      Gets resource type to transform.

      Returns:
      Resource type to transform.
    • getVfsFolder

      public String getVfsFolder()
      Returns the path under which files will be processed.

      Returns:
      the path under which files will be processed.
    • getXslFile

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

      public void setResourceType(int resourceType) throws org.opencms.main.CmsIllegalArgumentException
      Sets resource type to transform.

      Parameters:
      resourceType - File format to transform
      Throws:
      org.opencms.main.CmsIllegalArgumentException - if the argument is not valid.
    • setVfsFolder

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

      public void setXslFile(String xslFile) throws org.opencms.main.CmsIllegalArgumentException
      Sets path to xsl file.

      Parameters:
      xslFile - Path to xsl file
      Throws:
      org.opencms.main.CmsIllegalArgumentException - if the argument is not valid.