Class CmsExportFolderMatcher

java.lang.Object
org.opencms.staticexport.CmsExportFolderMatcher

public class CmsExportFolderMatcher extends Object
This class provides a file name matcher to find out those resources which must be part of a static export.

Since:
6.0.0
  • Constructor Details

    • CmsExportFolderMatcher

      public CmsExportFolderMatcher(List<String> vfsFolders, String checkResource)
      Creates a new CmsExportFolderMatcher.

      Parameters:
      vfsFolders - array of vfsFolder used for static export
      checkResource - additional resource name to be added to the static export
  • Method Details

    • match

      public boolean match(String vfsName)
      Checks if a vfsName matches the given static export folders.

      Parameters:
      vfsName - the vfs name of a resource to check
      Returns:
      true if the name matches one of the given static export folders