org.opencms.staticexport
Class CmsExportFolderMatcher

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

public class CmsExportFolderMatcher
extends java.lang.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 Summary
CmsExportFolderMatcher(java.util.List<java.lang.String> vfsFolders, java.lang.String checkResource)
          Creates a new CmsExportFolderMatcher.
 
Method Summary
 boolean match(java.lang.String vfsName)
          Checks if a vfsName matches the given static export folders.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsExportFolderMatcher

public CmsExportFolderMatcher(java.util.List<java.lang.String> vfsFolders,
                              java.lang.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 Detail

match

public boolean match(java.lang.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