/** * @see org.opencms.configuration.I_CmsConfigurationParameterHandler#initConfiguration() */ public void initConfiguration() throws CmsConfigurationException { if (m_filter != null) { m_filter.initConfiguration(); } // suppress the compiler warning, this is never true if (m_configuration == null) { throw new CmsConfigurationException(null); } }
/** * Checks if a path is filtered out of the filter or not.<p> * * @param path the path of a resource to check * @return true if the name matches one of the given filter patterns */ protected boolean isFiltered(String path) { // filter all temporary files if (CmsWorkplace.isTemporaryFileName(path)) { return true; } if (m_filter == null) { return false; } return m_filter.isFiltered(path); }
/** * Checks if a path is filtered out of the filter or not.<p> * * @param path the path of a resource to check * @return true if the name matches one of the given filter patterns */ public boolean isFiltered(String path) { for (int j = 0; j < m_filterRules.size(); j++) { Pattern pattern = (Pattern)m_filterRules.get(j); if (isPartialMatch(pattern, path)) { return m_type.equals(TYPE_EXCLUDE); } } return m_type.equals(TYPE_INCLUDE); }
List rules = filter.getFilterRules(); if (rules.size() > 0) { Element filterElement = repositoryElement.addElement(N_FILTER); filterElement.addAttribute(A_TYPE, filter.getType());
List<Pattern> rules = filter.getFilterRules(); if (rules.size() > 0) { Element filterElement = repositoryElement.addElement(N_FILTER); filterElement.addAttribute(A_TYPE, filter.getType());
/** * @see org.opencms.configuration.I_CmsConfigurationParameterHandler#initConfiguration() */ public void initConfiguration() throws CmsConfigurationException { if (m_filter != null) { m_filter.initConfiguration(); } // suppress the compiler warning, this is never true if (m_configuration == null) { throw new CmsConfigurationException(null); } }
/** * Checks if a path is filtered out of the filter or not.<p> * * @param path the path of a resource to check * @return true if the name matches one of the given filter patterns */ public boolean isFiltered(String path) { for (int j = 0; j < m_filterRules.size(); j++) { Pattern pattern = m_filterRules.get(j); if (isPartialMatch(pattern, path)) { return m_type.equals(TYPE_EXCLUDE); } } return m_type.equals(TYPE_INCLUDE); }
/** * Checks if a path is filtered out of the filter or not.<p> * * @param path the path of a resource to check * @return true if the name matches one of the given filter patterns */ protected boolean isFiltered(String path) { // filter all temporary files if (CmsResource.isTemporaryFileName(path)) { return true; } if (m_filter == null) { return false; } return m_filter.isFiltered(path); }