public static void removeLiferayFilter(LiferayFilter liferayFilter) { Class<?> clazz = liferayFilter.getClass(); Set<LiferayFilter> liferayFilters = _liferayFilters.get(clazz.getName()); if (liferayFilters != null) { liferayFilters.remove(liferayFilter); } }
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); }