Class DummyPluginServices

  • All Implemented Interfaces:
    org.uberfire.ext.editor.commons.service.support.SupportsCopy, org.uberfire.ext.editor.commons.service.support.SupportsDelete, org.uberfire.ext.editor.commons.service.support.SupportsRename, org.uberfire.ext.editor.commons.service.support.SupportsSaveAndRename<org.uberfire.ext.plugin.model.Plugin,​org.uberfire.ext.editor.commons.file.DefaultMetadata>, org.uberfire.ext.editor.commons.service.support.SupportsUpdate<org.uberfire.ext.plugin.model.Plugin,​org.uberfire.ext.editor.commons.file.DefaultMetadata>, org.uberfire.ext.plugin.service.PluginServices

    @ApplicationScoped
    public class DummyPluginServices
    extends Object
    implements org.uberfire.ext.plugin.service.PluginServices
    This should be removed as soon as PluginServices cliend side mocked service starts working.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.uberfire.backend.vfs.Path copy​(org.uberfire.backend.vfs.Path path, String newName, String comment)  
      org.uberfire.backend.vfs.Path copy​(org.uberfire.backend.vfs.Path path, String newName, org.uberfire.backend.vfs.Path targetDirectory, String comment)  
      org.uberfire.ext.plugin.model.Plugin createNewPlugin​(String name, org.uberfire.ext.plugin.model.PluginType type)  
      void delete​(org.uberfire.backend.vfs.Path path, String comment)  
      void deleteMedia​(org.uberfire.ext.plugin.model.Media media)  
      org.uberfire.ext.plugin.model.DynamicMenu getDynamicMenuContent​(org.uberfire.backend.vfs.Path path)  
      org.uberfire.ext.plugin.model.LayoutEditorModel getLayoutEditor​(org.uberfire.backend.vfs.Path path, org.uberfire.ext.plugin.model.PluginType pluginType)  
      String getMediaServletURI()  
      org.uberfire.ext.plugin.model.PluginContent getPluginContent​(org.uberfire.backend.vfs.Path path)  
      Collection<org.uberfire.ext.plugin.model.DynamicMenu> listDynamicMenus()  
      Collection<org.uberfire.ext.plugin.model.LayoutEditorModel> listLayoutEditor​(org.uberfire.ext.plugin.model.PluginType pluginType)  
      Collection<org.uberfire.ext.plugin.model.RuntimePlugin> listPluginRuntimePlugins​(org.uberfire.backend.vfs.Path pluginPath)  
      Collection<org.uberfire.ext.plugin.model.Plugin> listPlugins()  
      Collection<org.uberfire.ext.plugin.model.Plugin> listPlugins​(org.uberfire.ext.plugin.model.PluginType type)  
      Collection<org.uberfire.ext.plugin.model.RuntimePlugin> listRuntimePlugins()  
      org.uberfire.backend.vfs.Path rename​(org.uberfire.backend.vfs.Path path, String newName, String comment)  
      org.uberfire.backend.vfs.Path save​(org.uberfire.backend.vfs.Path path, org.uberfire.ext.plugin.model.Plugin content, org.uberfire.ext.editor.commons.file.DefaultMetadata metadata, String comment)  
      org.uberfire.backend.vfs.Path save​(org.uberfire.ext.plugin.model.Plugin plugin, String commitMessage)  
      org.uberfire.backend.vfs.Path saveAndRename​(org.uberfire.backend.vfs.Path path, String newFileName, org.uberfire.ext.editor.commons.file.DefaultMetadata metadata, org.uberfire.ext.plugin.model.Plugin content, String comment)  
      org.uberfire.backend.vfs.Path saveLayout​(org.uberfire.ext.plugin.model.LayoutEditorModel layoutContent, String commitMessage)  
      org.uberfire.backend.vfs.Path saveMenu​(org.uberfire.ext.plugin.model.DynamicMenu menu, String commitMessage)  
    • Constructor Detail

      • DummyPluginServices

        public DummyPluginServices()
    • Method Detail

      • delete

        public void delete​(org.uberfire.backend.vfs.Path path,
                           String comment)
        Specified by:
        delete in interface org.uberfire.ext.editor.commons.service.support.SupportsDelete
      • copy

        public org.uberfire.backend.vfs.Path copy​(org.uberfire.backend.vfs.Path path,
                                                  String newName,
                                                  String comment)
        Specified by:
        copy in interface org.uberfire.ext.editor.commons.service.support.SupportsCopy
      • copy

        public org.uberfire.backend.vfs.Path copy​(org.uberfire.backend.vfs.Path path,
                                                  String newName,
                                                  org.uberfire.backend.vfs.Path targetDirectory,
                                                  String comment)
        Specified by:
        copy in interface org.uberfire.ext.editor.commons.service.support.SupportsCopy
      • saveAndRename

        public org.uberfire.backend.vfs.Path saveAndRename​(org.uberfire.backend.vfs.Path path,
                                                           String newFileName,
                                                           org.uberfire.ext.editor.commons.file.DefaultMetadata metadata,
                                                           org.uberfire.ext.plugin.model.Plugin content,
                                                           String comment)
        Specified by:
        saveAndRename in interface org.uberfire.ext.editor.commons.service.support.SupportsSaveAndRename<org.uberfire.ext.plugin.model.Plugin,​org.uberfire.ext.editor.commons.file.DefaultMetadata>
      • rename

        public org.uberfire.backend.vfs.Path rename​(org.uberfire.backend.vfs.Path path,
                                                    String newName,
                                                    String comment)
        Specified by:
        rename in interface org.uberfire.ext.editor.commons.service.support.SupportsRename
      • save

        public org.uberfire.backend.vfs.Path save​(org.uberfire.backend.vfs.Path path,
                                                  org.uberfire.ext.plugin.model.Plugin content,
                                                  org.uberfire.ext.editor.commons.file.DefaultMetadata metadata,
                                                  String comment)
        Specified by:
        save in interface org.uberfire.ext.editor.commons.service.support.SupportsUpdate<org.uberfire.ext.plugin.model.Plugin,​org.uberfire.ext.editor.commons.file.DefaultMetadata>
      • getMediaServletURI

        public String getMediaServletURI()
        Specified by:
        getMediaServletURI in interface org.uberfire.ext.plugin.service.PluginServices
      • listRuntimePlugins

        public Collection<org.uberfire.ext.plugin.model.RuntimePlugin> listRuntimePlugins()
        Specified by:
        listRuntimePlugins in interface org.uberfire.ext.plugin.service.PluginServices
      • listPluginRuntimePlugins

        public Collection<org.uberfire.ext.plugin.model.RuntimePlugin> listPluginRuntimePlugins​(org.uberfire.backend.vfs.Path pluginPath)
        Specified by:
        listPluginRuntimePlugins in interface org.uberfire.ext.plugin.service.PluginServices
      • listPlugins

        public Collection<org.uberfire.ext.plugin.model.Plugin> listPlugins()
        Specified by:
        listPlugins in interface org.uberfire.ext.plugin.service.PluginServices
      • listPlugins

        public Collection<org.uberfire.ext.plugin.model.Plugin> listPlugins​(org.uberfire.ext.plugin.model.PluginType type)
        Specified by:
        listPlugins in interface org.uberfire.ext.plugin.service.PluginServices
      • createNewPlugin

        public org.uberfire.ext.plugin.model.Plugin createNewPlugin​(String name,
                                                                    org.uberfire.ext.plugin.model.PluginType type)
        Specified by:
        createNewPlugin in interface org.uberfire.ext.plugin.service.PluginServices
      • getPluginContent

        public org.uberfire.ext.plugin.model.PluginContent getPluginContent​(org.uberfire.backend.vfs.Path path)
        Specified by:
        getPluginContent in interface org.uberfire.ext.plugin.service.PluginServices
      • deleteMedia

        public void deleteMedia​(org.uberfire.ext.plugin.model.Media media)
        Specified by:
        deleteMedia in interface org.uberfire.ext.plugin.service.PluginServices
      • getDynamicMenuContent

        public org.uberfire.ext.plugin.model.DynamicMenu getDynamicMenuContent​(org.uberfire.backend.vfs.Path path)
        Specified by:
        getDynamicMenuContent in interface org.uberfire.ext.plugin.service.PluginServices
      • save

        public org.uberfire.backend.vfs.Path save​(org.uberfire.ext.plugin.model.Plugin plugin,
                                                  String commitMessage)
        Specified by:
        save in interface org.uberfire.ext.plugin.service.PluginServices
      • getLayoutEditor

        public org.uberfire.ext.plugin.model.LayoutEditorModel getLayoutEditor​(org.uberfire.backend.vfs.Path path,
                                                                               org.uberfire.ext.plugin.model.PluginType pluginType)
        Specified by:
        getLayoutEditor in interface org.uberfire.ext.plugin.service.PluginServices
      • saveMenu

        public org.uberfire.backend.vfs.Path saveMenu​(org.uberfire.ext.plugin.model.DynamicMenu menu,
                                                      String commitMessage)
        Specified by:
        saveMenu in interface org.uberfire.ext.plugin.service.PluginServices
      • saveLayout

        public org.uberfire.backend.vfs.Path saveLayout​(org.uberfire.ext.plugin.model.LayoutEditorModel layoutContent,
                                                        String commitMessage)
        Specified by:
        saveLayout in interface org.uberfire.ext.plugin.service.PluginServices
      • listDynamicMenus

        public Collection<org.uberfire.ext.plugin.model.DynamicMenu> listDynamicMenus()
        Specified by:
        listDynamicMenus in interface org.uberfire.ext.plugin.service.PluginServices
      • listLayoutEditor

        public Collection<org.uberfire.ext.plugin.model.LayoutEditorModel> listLayoutEditor​(org.uberfire.ext.plugin.model.PluginType pluginType)
        Specified by:
        listLayoutEditor in interface org.uberfire.ext.plugin.service.PluginServices