Class CmsXmlFileTransformer

java.lang.Object
org.opencms.xml.CmsXmlFileTransformer

public class CmsXmlFileTransformer extends Object
Transforms all resources of a given type by
  • Constructor Details

    • CmsXmlFileTransformer

      public CmsXmlFileTransformer(CmsObject cms, String path, String type, String xslName, InputStream xslStream, I_CmsReport report) throws CmsException, IOException
      Creates a new instance.
      Parameters:
      cms - the CMS context
      path - the ancestor folder under which files should be processed
      type - the resource type which should be processed
      xslName - a string containing information about where the XSL transform is coming from
      xslStream - the stream to read the XSL transformation from
      report - the report to write to
      Throws:
      CmsException - if something goes wrong
      IOException - if an IO error occurs
  • Method Details

    • run

      public void run() throws CmsException
      Performs the transformation on all resources of the configured type.
      Throws:
      CmsException - if something goes wrong