Class DummyPerspectiveServices

  • 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.layout.editor.api.editor.LayoutTemplate,​org.uberfire.ext.editor.commons.file.DefaultMetadata>, org.uberfire.ext.editor.commons.service.support.SupportsUpdate<org.uberfire.ext.layout.editor.api.editor.LayoutTemplate,​org.uberfire.ext.editor.commons.file.DefaultMetadata>, org.uberfire.ext.layout.editor.api.PerspectiveServices

    @ApplicationScoped
    public class DummyPerspectiveServices
    extends Object
    implements org.uberfire.ext.layout.editor.api.PerspectiveServices
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.uberfire.ext.layout.editor.api.editor.LayoutTemplate convertToLayoutTemplate​(String layoutModel)  
      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 createNewPerspective​(String name, org.uberfire.ext.layout.editor.api.editor.LayoutTemplate.Style style)  
      void delete​(org.uberfire.backend.vfs.Path path, String comment)  
      org.uberfire.ext.layout.editor.api.editor.LayoutTemplate getLayoutTemplate​(String perspectiveName)  
      org.uberfire.ext.layout.editor.api.editor.LayoutTemplate getLayoutTemplate​(org.uberfire.backend.vfs.Path perspectivePath)  
      org.uberfire.ext.layout.editor.api.editor.LayoutTemplate getLayoutTemplate​(org.uberfire.ext.plugin.model.Plugin perspectivePlugin)  
      Collection<org.uberfire.ext.layout.editor.api.editor.LayoutTemplate> listLayoutTemplates()  
      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.layout.editor.api.editor.LayoutTemplate content, org.uberfire.ext.editor.commons.file.DefaultMetadata metadata, String comment)  
      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.layout.editor.api.editor.LayoutTemplate content, String comment)  
      org.uberfire.backend.vfs.Path saveLayoutTemplate​(org.uberfire.backend.vfs.Path perspectivePath, org.uberfire.ext.layout.editor.api.editor.LayoutTemplate layoutTemplate, String commitMessage)  
    • Constructor Detail

      • DummyPerspectiveServices

        public DummyPerspectiveServices()
    • Method Detail

      • 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
      • 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
      • 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.layout.editor.api.editor.LayoutTemplate content,
                                                           String comment)
        Specified by:
        saveAndRename in interface org.uberfire.ext.editor.commons.service.support.SupportsSaveAndRename<org.uberfire.ext.layout.editor.api.editor.LayoutTemplate,​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.layout.editor.api.editor.LayoutTemplate 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.layout.editor.api.editor.LayoutTemplate,​org.uberfire.ext.editor.commons.file.DefaultMetadata>
      • createNewPerspective

        public org.uberfire.ext.plugin.model.Plugin createNewPerspective​(String name,
                                                                         org.uberfire.ext.layout.editor.api.editor.LayoutTemplate.Style style)
        Specified by:
        createNewPerspective in interface org.uberfire.ext.layout.editor.api.PerspectiveServices
      • listLayoutTemplates

        public Collection<org.uberfire.ext.layout.editor.api.editor.LayoutTemplate> listLayoutTemplates()
        Specified by:
        listLayoutTemplates in interface org.uberfire.ext.layout.editor.api.PerspectiveServices
      • getLayoutTemplate

        public org.uberfire.ext.layout.editor.api.editor.LayoutTemplate getLayoutTemplate​(String perspectiveName)
        Specified by:
        getLayoutTemplate in interface org.uberfire.ext.layout.editor.api.PerspectiveServices
      • getLayoutTemplate

        public org.uberfire.ext.layout.editor.api.editor.LayoutTemplate getLayoutTemplate​(org.uberfire.backend.vfs.Path perspectivePath)
        Specified by:
        getLayoutTemplate in interface org.uberfire.ext.layout.editor.api.PerspectiveServices
      • getLayoutTemplate

        public org.uberfire.ext.layout.editor.api.editor.LayoutTemplate getLayoutTemplate​(org.uberfire.ext.plugin.model.Plugin perspectivePlugin)
        Specified by:
        getLayoutTemplate in interface org.uberfire.ext.layout.editor.api.PerspectiveServices
      • convertToLayoutTemplate

        public org.uberfire.ext.layout.editor.api.editor.LayoutTemplate convertToLayoutTemplate​(String layoutModel)
        Specified by:
        convertToLayoutTemplate in interface org.uberfire.ext.layout.editor.api.PerspectiveServices
      • saveLayoutTemplate

        public org.uberfire.backend.vfs.Path saveLayoutTemplate​(org.uberfire.backend.vfs.Path perspectivePath,
                                                                org.uberfire.ext.layout.editor.api.editor.LayoutTemplate layoutTemplate,
                                                                String commitMessage)
        Specified by:
        saveLayoutTemplate in interface org.uberfire.ext.layout.editor.api.PerspectiveServices