Class AbstractInstanceInputEventGenerator<F>

    • Field Detail

      • filter

        protected Object filter
      • proxyFilter

        protected F proxyFilter
      • currentWiki

        protected String currentWiki
      • descriptor

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

      • AbstractInstanceInputEventGenerator

        public AbstractInstanceInputEventGenerator()
    • 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 InstanceInputEventGenerator
        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)
      • getFilterInterfaces

        public Collection<Class<?>> getFilterInterfaces()
                                                 throws org.xwiki.filter.FilterException
        Specified by:
        getFilterInterfaces in interface InstanceInputEventGenerator
        Returns:
        the filters supported by this stream factory
        Throws:
        org.xwiki.filter.FilterException - when failing to get filters interfaces
      • setWikiFarmParameters

        public void setWikiFarmParameters​(org.xwiki.filter.FilterEventParameters parameters)
                                   throws org.xwiki.filter.FilterException
        Description copied from interface: InstanceInputEventGenerator
        Set custom parameter related to the farm.
        Specified by:
        setWikiFarmParameters in interface InstanceInputEventGenerator
        Parameters:
        parameters - the parameters to set
        Throws:
        org.xwiki.filter.FilterException - when failing to set parameters
      • setWikiParameters

        public void setWikiParameters​(String name,
                                      org.xwiki.filter.FilterEventParameters parameters)
                               throws org.xwiki.filter.FilterException
        Description copied from interface: InstanceInputEventGenerator
        Set custom parameter related to the wiki.
        Specified by:
        setWikiParameters in interface InstanceInputEventGenerator
        Parameters:
        name - the name of wiki
        parameters - the parameters to set
        Throws:
        org.xwiki.filter.FilterException - when failing to set parameters
      • setWikiSpaceParameters

        public void setWikiSpaceParameters​(String name,
                                           org.xwiki.filter.FilterEventParameters parameters)
                                    throws org.xwiki.filter.FilterException
        Description copied from interface: InstanceInputEventGenerator
        Set custom parameter related to the space.
        Specified by:
        setWikiSpaceParameters in interface InstanceInputEventGenerator
        Parameters:
        name - the name of space
        parameters - the parameters to set
        Throws:
        org.xwiki.filter.FilterException - when failing to set parameters
      • setWikiDocumentParameters

        public void setWikiDocumentParameters​(String name,
                                              org.xwiki.filter.FilterEventParameters parameters)
                                       throws org.xwiki.filter.FilterException
        Description copied from interface: InstanceInputEventGenerator
        Set custom parameter related to the document.
        Specified by:
        setWikiDocumentParameters in interface InstanceInputEventGenerator
        Parameters:
        name - the name of document
        parameters - the parameters to set
        Throws:
        org.xwiki.filter.FilterException - when failing to set parameters
      • beginWikiFarm

        public void beginWikiFarm​(org.xwiki.filter.FilterEventParameters parameters)
                           throws org.xwiki.filter.FilterException
        Specified by:
        beginWikiFarm in interface WikiFarmFilter
        Throws:
        org.xwiki.filter.FilterException
      • endWikiFarm

        public void endWikiFarm​(org.xwiki.filter.FilterEventParameters parameters)
                         throws org.xwiki.filter.FilterException
        Specified by:
        endWikiFarm in interface WikiFarmFilter
        Throws:
        org.xwiki.filter.FilterException
      • beginWiki

        public void beginWiki​(String name,
                              org.xwiki.filter.FilterEventParameters parameters)
                       throws org.xwiki.filter.FilterException
        Specified by:
        beginWiki in interface WikiFilter
        Throws:
        org.xwiki.filter.FilterException
      • endWiki

        public void endWiki​(String name,
                            org.xwiki.filter.FilterEventParameters parameters)
                     throws org.xwiki.filter.FilterException
        Specified by:
        endWiki in interface WikiFilter
        Throws:
        org.xwiki.filter.FilterException
      • beginWikiSpace

        public void beginWikiSpace​(String name,
                                   org.xwiki.filter.FilterEventParameters parameters)
                            throws org.xwiki.filter.FilterException
        Specified by:
        beginWikiSpace in interface WikiSpaceFilter
        Throws:
        org.xwiki.filter.FilterException
      • endWikiSpace

        public void endWikiSpace​(String name,
                                 org.xwiki.filter.FilterEventParameters parameters)
                          throws org.xwiki.filter.FilterException
        Specified by:
        endWikiSpace in interface WikiSpaceFilter
        Throws:
        org.xwiki.filter.FilterException
      • beginWikiDocument

        public void beginWikiDocument​(String name,
                                      org.xwiki.filter.FilterEventParameters parameters)
                               throws org.xwiki.filter.FilterException
        Specified by:
        beginWikiDocument in interface WikiDocumentFilter
        Throws:
        org.xwiki.filter.FilterException
      • endWikiDocument

        public void endWikiDocument​(String name,
                                    org.xwiki.filter.FilterEventParameters parameters)
                             throws org.xwiki.filter.FilterException
        Specified by:
        endWikiDocument in interface WikiDocumentFilter
        Throws:
        org.xwiki.filter.FilterException
      • beginWikiDocumentLocale

        public void beginWikiDocumentLocale​(Locale locale,
                                            org.xwiki.filter.FilterEventParameters parameters)
                                     throws org.xwiki.filter.FilterException
        Specified by:
        beginWikiDocumentLocale in interface WikiDocumentFilter
        Throws:
        org.xwiki.filter.FilterException
      • endWikiDocumentLocale

        public void endWikiDocumentLocale​(Locale locale,
                                          org.xwiki.filter.FilterEventParameters parameters)
                                   throws org.xwiki.filter.FilterException
        Specified by:
        endWikiDocumentLocale in interface WikiDocumentFilter
        Throws:
        org.xwiki.filter.FilterException
      • beginWikiDocumentRevision

        public void beginWikiDocumentRevision​(String version,
                                              org.xwiki.filter.FilterEventParameters parameters)
                                       throws org.xwiki.filter.FilterException
        Specified by:
        beginWikiDocumentRevision in interface WikiDocumentFilter
        Throws:
        org.xwiki.filter.FilterException
      • endWikiDocumentRevision

        public void endWikiDocumentRevision​(String version,
                                            org.xwiki.filter.FilterEventParameters parameters)
                                     throws org.xwiki.filter.FilterException
        Specified by:
        endWikiDocumentRevision in interface WikiDocumentFilter
        Throws:
        org.xwiki.filter.FilterException
      • beginUnknwon

        public void beginUnknwon​(String id,
                                 org.xwiki.filter.FilterEventParameters parameters)
                          throws org.xwiki.filter.FilterException
        Specified by:
        beginUnknwon in interface org.xwiki.filter.UnknownFilter
        Throws:
        org.xwiki.filter.FilterException
      • endUnknwon

        public void endUnknwon​(String id,
                               org.xwiki.filter.FilterEventParameters parameters)
                        throws org.xwiki.filter.FilterException
        Specified by:
        endUnknwon in interface org.xwiki.filter.UnknownFilter
        Throws:
        org.xwiki.filter.FilterException
      • onUnknwon

        public void onUnknwon​(String id,
                              org.xwiki.filter.FilterEventParameters parameters)
                       throws org.xwiki.filter.FilterException
        Specified by:
        onUnknwon in interface org.xwiki.filter.UnknownFilter
        Throws:
        org.xwiki.filter.FilterException