Package org.opencms.staticexport
Class CmsExportFolderMatcher
- java.lang.Object
-
- 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
Constructors Constructor Description CmsExportFolderMatcher(java.util.List<java.lang.String> vfsFolders, java.lang.String checkResource)
Creates a new CmsExportFolderMatcher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
match(java.lang.String vfsName)
Checks if a vfsName matches the given static export folders.
-
-
-
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 exportcheckResource
- 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
-
-