Package org.xwiki.filter.instance.input
Class AbstractEntityEventGenerator<E,F>
- java.lang.Object
-
- org.xwiki.filter.instance.input.AbstractEntityEventGenerator<E,F>
-
- Type Parameters:
E- the type of the entity (XWikiDocument, BaseObject, BaseClass, etc.)F- the type of the filter declaring the events supported by thisEntityEventGenerator
- All Implemented Interfaces:
org.xwiki.component.phase.Initializable,EntityEventGenerator<E>
public abstract class AbstractEntityEventGenerator<E,F> extends Object implements EntityEventGenerator<E>, org.xwiki.component.phase.Initializable
- Since:
- 6.2M1
- Version:
- $Id: 035175dd379d2ccbac878c9bfc4dc50ab9cd4050 $
-
-
Field Summary
Fields Modifier and Type Field Description protected org.xwiki.filter.descriptor.FilterStreamDescriptordescriptorprotected org.xwiki.filter.FilterDescriptorManagerfilterDescriptorManagerprotected Class<F>filterType
-
Constructor Summary
Constructors Constructor Description AbstractEntityEventGenerator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.xwiki.filter.descriptor.FilterStreamDescriptorgetDescriptor()voidinitialize()protected voidsetDescriptor(org.xwiki.filter.descriptor.FilterStreamDescriptor descriptor)protected abstract voidwrite(E entity, Object filter, F internalFilter, Map<String,Object> properties)voidwrite(E entity, Object filter, Map<String,Object> properties)
-
-
-
Method Detail
-
initialize
public void initialize() throws org.xwiki.component.phase.InitializationException- Specified by:
initializein interfaceorg.xwiki.component.phase.Initializable- Throws:
org.xwiki.component.phase.InitializationException
-
getDescriptor
public org.xwiki.filter.descriptor.FilterStreamDescriptor getDescriptor()
- Specified by:
getDescriptorin interfaceEntityEventGenerator<E>- Returns:
- the FilterStreamDescriptor describes a FilterStream and has the list of bean class parameters or properties.
-
setDescriptor
protected void setDescriptor(org.xwiki.filter.descriptor.FilterStreamDescriptor descriptor)
-
write
public void write(E entity, Object filter, Map<String,Object> properties) throws org.xwiki.filter.FilterException
- Specified by:
writein interfaceEntityEventGenerator<E>- Throws:
org.xwiki.filter.FilterException
-
-