E
- the type of the entity (XWikiDocument, BaseObject, BaseClass, etc.)F
- the type of the filter declaring the events supported by this EntityEventGenerator
public abstract class AbstractEntityEventGenerator<E,F> extends Object implements EntityEventGenerator<E>, org.xwiki.component.phase.Initializable
Modifier and Type | Field and Description |
---|---|
protected org.xwiki.filter.descriptor.FilterStreamDescriptor |
descriptor |
protected org.xwiki.filter.FilterDescriptorManager |
filterDescriptorManager |
protected Class<F> |
filterType |
Constructor and Description |
---|
AbstractEntityEventGenerator() |
Modifier and Type | Method and 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) |
@Inject protected org.xwiki.filter.FilterDescriptorManager filterDescriptorManager
protected org.xwiki.filter.descriptor.FilterStreamDescriptor descriptor
public void initialize() throws org.xwiki.component.phase.InitializationException
initialize
in interface org.xwiki.component.phase.Initializable
org.xwiki.component.phase.InitializationException
public org.xwiki.filter.descriptor.FilterStreamDescriptor getDescriptor()
getDescriptor
in interface EntityEventGenerator<E>
protected void setDescriptor(org.xwiki.filter.descriptor.FilterStreamDescriptor descriptor)
public void write(E entity, Object filter, Map<String,Object> properties) throws org.xwiki.filter.FilterException
write
in interface EntityEventGenerator<E>
org.xwiki.filter.FilterException
Copyright © 2004–2022 XWiki. All rights reserved.