Exemple #1
0
  public static void removeLiferayFilter(LiferayFilter liferayFilter) {
    Class<?> clazz = liferayFilter.getClass();

    Set<LiferayFilter> liferayFilters = _liferayFilters.get(clazz.getName());

    if (liferayFilters != null) {
      liferayFilters.remove(liferayFilter);
    }
  }
Exemple #2
0
  public static void addLiferayFilter(LiferayFilter liferayFilter) {
    Class<?> clazz = liferayFilter.getClass();

    Set<LiferayFilter> liferayFilters = _liferayFilters.get(clazz.getName());

    if (liferayFilters == null) {
      liferayFilters = new HashSet<LiferayFilter>();

      _liferayFilters.put(clazz.getName(), liferayFilters);
    }

    liferayFilters.add(liferayFilter);
  }