Class CmsSearchReplaceThread

java.lang.Object
java.lang.Thread
org.opencms.report.A_CmsReportThread
org.opencms.workplace.tools.searchindex.sourcesearch.CmsSearchReplaceThread
All Implemented Interfaces:
Runnable, org.opencms.report.I_CmsReportThread

public class CmsSearchReplaceThread extends org.opencms.report.A_CmsReportThread
Searches in sources.

Since:
7.5.3
  • Constructor Details

    • CmsSearchReplaceThread

      public CmsSearchReplaceThread(javax.servlet.http.HttpSession session, org.opencms.file.CmsObject cms, CmsSearchReplaceSettings settings)
      Creates a replace html tag Thread.

      Parameters:
      session - the current session
      cms - the current cms object
      settings - the settings needed to perform the operation.
  • Method Details

    • getReportUpdate

      Specified by:
      getReportUpdate in class org.opencms.report.A_CmsReportThread
      See Also:
      • A_CmsReportThread.getReportUpdate()
    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
      See Also:
    • searchAndReplace

      protected void searchAndReplace(org.opencms.file.CmsObject cmsObject, List<org.opencms.file.CmsResource> resources, boolean replace, org.opencms.report.I_CmsReport report)
      Search the resources.

      Parameters:
      cmsObject - the CmsObject using to write files
      resources - the relevant resources
      replace - true, if search and replace. False is search only.
      report - the report.