Class FilterScriptService

  • All Implemented Interfaces:
    org.xwiki.script.service.ScriptService

    @Component
    @Named("filter")
    @Singleton
    public class FilterScriptService
    extends AbstractFilterScriptService
    Expose various FilterStream related APIs to scripts.
    Since:
    6.2M1
    Version:
    $Id: bedccd645354ebf3bfb534c20adbac9ede917532 $
    • Constructor Detail

      • FilterScriptService

        public FilterScriptService()
    • Method Detail

      • get

        public org.xwiki.script.service.ScriptService get​(String id)
      • startConvert

        public org.xwiki.job.Job startConvert​(org.xwiki.filter.type.FilterStreamType inputType,
                                              Map<String,​Object> inputProperties,
                                              org.xwiki.filter.type.FilterStreamType outputType,
                                              Map<String,​Object> outputProperties)
        Since:
        6.2M1
      • startConvert

        public org.xwiki.job.Job startConvert​(org.xwiki.filter.type.FilterStreamType inputType,
                                              Map<String,​Object> inputProperties,
                                              org.xwiki.filter.type.FilterStreamType outputType,
                                              boolean folded,
                                              Map<String,​Object> outputProperties)
        Since:
        8.2RC1
      • convert

        public org.xwiki.job.Job convert​(org.xwiki.filter.type.FilterStreamType inputType,
                                         Map<String,​Object> inputProperties,
                                         org.xwiki.filter.type.FilterStreamType outputType,
                                         Map<String,​Object> outputProperties)
        Since:
        6.2M1
      • convert

        public org.xwiki.job.Job convert​(org.xwiki.filter.type.FilterStreamType inputType,
                                         Map<String,​Object> inputProperties,
                                         org.xwiki.filter.type.FilterStreamType outputType,
                                         boolean folded,
                                         Map<String,​Object> outputProperties)
        Since:
        8.2RC1
      • getCurrentJob

        public org.xwiki.job.Job getCurrentJob()
        Since:
        6.2M1
      • getAvailableInputStreams

        public Collection<org.xwiki.filter.type.FilterStreamType> getAvailableInputStreams()
        Since:
        6.2M1
      • getAvailableOutputStreams

        public Collection<org.xwiki.filter.type.FilterStreamType> getAvailableOutputStreams()
        Since:
        6.2M1
      • getInputFilterStreamDescriptor

        public org.xwiki.filter.descriptor.FilterStreamDescriptor getInputFilterStreamDescriptor​(org.xwiki.filter.type.FilterStreamType inputType)
        Since:
        6.2M1
      • getOutputFilterStreamDescriptor

        public org.xwiki.filter.descriptor.FilterStreamDescriptor getOutputFilterStreamDescriptor​(org.xwiki.filter.type.FilterStreamType inputType)
        Since:
        6.2M1
      • getInputFilterStreamFactory

        public org.xwiki.filter.input.InputFilterStreamFactory getInputFilterStreamFactory​(org.xwiki.filter.type.FilterStreamType inputType)
        Since:
        6.2M1
      • getOutputFilterStreamFactory

        public org.xwiki.filter.output.OutputFilterStreamFactory getOutputFilterStreamFactory​(org.xwiki.filter.type.FilterStreamType outputType)
        Since:
        6.2M1
      • createOutputStreamOutputTarget

        public org.xwiki.filter.output.OutputStreamOutputTarget createOutputStreamOutputTarget​(OutputStream stream,
                                                                                               boolean autoclose)
        Since:
        6.2M1