The list of methods to do List Include are organized into topic(s).
boolean
isAcceptedCountry(String country, List countryInclude, List countryExclude) Return if a country is accepted
if (country == null || "".equals(country))
return true;
country = country.toLowerCase();
if (countryInclude != null && countryInclude.size() > 0 && !"".equals(countryInclude.get(0))) {
if (countryInclude.contains(country))
return true;
return false;
if (countryExclude != null && countryExclude.size() > 0 && !"".equals(countryExclude.get(0))) {
if (countryExclude.contains(country))
return false;
return true;
return true;
boolean
isIndexable(String filename, List includes, List excludes) We check if we can index the file or if we should ignore it
if (includes.isEmpty() && excludes.isEmpty())
return true;
for (String exclude : excludes) {
String regex = exclude.replace("?", ".?").replace("*", ".*?");
if (filename.matches(regex))
return false;
if (includes.isEmpty())
...
boolean
isIndexable(String key, List includes, List excludes) Tells if an Aamzon S3 file is indexable from its key (file name), based on includes and excludes rules.
if ((includes == null && excludes == null) || (includes.isEmpty() && excludes.isEmpty())) {
return true;
if (excludes != null) {
for (String exclude : excludes) {
String regex = exclude.replace("?", ".?").replace("*", ".*");
if (key.matches(regex)) {
return false;
...