CmsRepositoryFilter
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using org.opencms.repository.CmsRepositoryFilter (Showing top 9 results out of 315)

origin: org.opencms/opencms-solr

/**
 * @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);
  }
}
origin: org.opencms/opencms-solr

/**
 * 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);
}
origin: org.opencms/opencms-solr

/**
 * 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);
}
origin: org.opencms/opencms-solr

List rules = filter.getFilterRules();
if (rules.size() > 0) {
  Element filterElement = repositoryElement.addElement(N_FILTER);
  filterElement.addAttribute(A_TYPE, filter.getType());
origin: org.opencms/opencms-core

List<Pattern> rules = filter.getFilterRules();
if (rules.size() > 0) {
  Element filterElement = repositoryElement.addElement(N_FILTER);
  filterElement.addAttribute(A_TYPE, filter.getType());
origin: org.opencms/opencms-core

/**
 * @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);
  }
}
origin: org.opencms/opencms-core

/**
 * 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);
}
origin: org.opencms/opencms-core

/**
 * 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);
}
origin: org.opencms/opencms-core

m_filter.initConfiguration();
org.opencms.repositoryCmsRepositoryFilter

Javadoc

This class is a filter for the repositories.

It filters path names, depending on the configuration made.

Most used methods

  • getFilterRules
    Returns the filterRules.
  • getType
    Returns the type.
  • initConfiguration
    Initializes a configuration after all parameters have been added.
  • isFiltered
    Checks if a path is filtered out of the filter or not.
  • isPartialMatch
    Returns if the given path matches or partially matches the pattern. For example the regex "/system/m

Popular in Java

  • Making http post requests using okhttp
  • addToBackStack (FragmentTransaction)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JButton (javax.swing)

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)