Class 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 this EntityEventGenerator
    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 Detail

      • filterDescriptorManager

        @Inject
        protected org.xwiki.filter.FilterDescriptorManager filterDescriptorManager
      • filterType

        protected Class<F> filterType
      • descriptor

        protected org.xwiki.filter.descriptor.FilterStreamDescriptor descriptor
    • Constructor Detail

      • AbstractEntityEventGenerator

        public AbstractEntityEventGenerator()
    • Method Detail

      • initialize

        public void initialize()
                        throws org.xwiki.component.phase.InitializationException
        Specified by:
        initialize in interface org.xwiki.component.phase.Initializable
        Throws:
        org.xwiki.component.phase.InitializationException
      • getDescriptor

        public org.xwiki.filter.descriptor.FilterStreamDescriptor getDescriptor()
        Specified by:
        getDescriptor in interface EntityEventGenerator<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

        protected abstract void write​(E entity,
                                      Object filter,
                                      F internalFilter,
                                      Map<String,​Object> properties)
                               throws org.xwiki.filter.FilterException
        Throws:
        org.xwiki.filter.FilterException