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.FilterStreamDescriptor
descriptor
protected org.xwiki.filter.FilterDescriptorManager
filterDescriptorManager
protected 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.FilterStreamDescriptor
getDescriptor()
void
initialize()
protected void
setDescriptor(org.xwiki.filter.descriptor.FilterStreamDescriptor descriptor)
protected abstract void
write(E entity, Object filter, F internalFilter, Map<String,Object> properties)
void
write(E entity, Object filter, Map<String,Object> properties)
-
-
-
Method Detail
-
initialize
public void initialize() throws org.xwiki.component.phase.InitializationException
- Specified by:
initialize
in interfaceorg.xwiki.component.phase.Initializable
- Throws:
org.xwiki.component.phase.InitializationException
-
getDescriptor
public org.xwiki.filter.descriptor.FilterStreamDescriptor getDescriptor()
- Specified by:
getDescriptor
in 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:
write
in interfaceEntityEventGenerator<E>
- Throws:
org.xwiki.filter.FilterException
-
-