Package org.alfresco.repo.event2.filter
Class EventFilterRegistry
- java.lang.Object
-
- org.alfresco.repo.event2.filter.EventFilterRegistry
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanFactoryAware
public class EventFilterRegistry extends Object implements org.springframework.beans.factory.BeanFactoryAware
HoldsEventFilterimplementations.- Author:
- Jamal Kaabi-Mofrad
-
-
Constructor Summary
Constructors Constructor Description EventFilterRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChildAssociationTypeFiltergetChildAssociationTypeFilter()EventUserFiltergetEventUserFilter()<F extends EventFilter<?>>
FgetFilter(String beanName, Class<F> filterClass)Return the filter bean instance that uniquely matches the given object type.NodeAspectFiltergetNodeAspectFilter()NodePropertyFiltergetNodePropertyFilter()NodeTypeFiltergetNodeTypeFilter()voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
-
-
-
Method Detail
-
setBeanFactory
public void setBeanFactory(@NonNull org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException- Specified by:
setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware- Throws:
org.springframework.beans.BeansException
-
getFilter
public <F extends EventFilter<?>> F getFilter(String beanName, Class<F> filterClass)
Return the filter bean instance that uniquely matches the given object type.- Parameters:
filterClass- the event filter type that the bean must match- Returns:
- an instance of the filter bean matching the required type
- Throws:
org.springframework.beans.factory.NoSuchBeanDefinitionException- - if no bean of the given type was found
-
getNodeTypeFilter
public NodeTypeFilter getNodeTypeFilter()
-
getNodeAspectFilter
public NodeAspectFilter getNodeAspectFilter()
-
getNodePropertyFilter
public NodePropertyFilter getNodePropertyFilter()
-
getChildAssociationTypeFilter
public ChildAssociationTypeFilter getChildAssociationTypeFilter()
-
getEventUserFilter
public EventUserFilter getEventUserFilter()
-
-