예제 #1
0
 public IFilter getFilterFor(final Class<? extends PersistentObject> clazz) {
   IObjectFilterProvider prov = hash.get(clazz);
   if (prov != null) {
     return prov.getFilter();
   }
   return null;
 }
예제 #2
0
 public synchronized void registerObjectFilter(
     final Class<? extends PersistentObject> clazz, final IObjectFilterProvider provider) {
   IObjectFilterProvider old = hash.get(clazz);
   if (old != null) {
     old.deactivate();
   }
   hash.put(clazz, provider);
   provider.activate();
   ElexisEventDispatcher.reload(clazz);
 }
예제 #3
0
 public void unregisterObjectFilter(
     final Class<? extends PersistentObject> clazz, final IObjectFilterProvider provider) {
   hash.remove(clazz);
   provider.deactivate();
   ElexisEventDispatcher.reload(clazz);
 }