Class DummyPerspectiveServices
- java.lang.Object
-
- org.dashbuilder.backend.remote.services.dummy.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
-
-
Constructor Summary
Constructors Constructor Description DummyPerspectiveServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.uberfire.ext.layout.editor.api.editor.LayoutTemplateconvertToLayoutTemplate(String layoutModel)org.uberfire.backend.vfs.Pathcopy(org.uberfire.backend.vfs.Path path, String newName, String comment)org.uberfire.backend.vfs.Pathcopy(org.uberfire.backend.vfs.Path path, String newName, org.uberfire.backend.vfs.Path targetDirectory, String comment)org.uberfire.ext.plugin.model.PlugincreateNewPerspective(String name, org.uberfire.ext.layout.editor.api.editor.LayoutTemplate.Style style)voiddelete(org.uberfire.backend.vfs.Path path, String comment)org.uberfire.ext.layout.editor.api.editor.LayoutTemplategetLayoutTemplate(String perspectiveName)org.uberfire.ext.layout.editor.api.editor.LayoutTemplategetLayoutTemplate(org.uberfire.backend.vfs.Path perspectivePath)org.uberfire.ext.layout.editor.api.editor.LayoutTemplategetLayoutTemplate(org.uberfire.ext.plugin.model.Plugin perspectivePlugin)Collection<org.uberfire.ext.layout.editor.api.editor.LayoutTemplate>listLayoutTemplates()org.uberfire.backend.vfs.Pathrename(org.uberfire.backend.vfs.Path path, String newName, String comment)org.uberfire.backend.vfs.Pathsave(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.PathsaveAndRename(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.PathsaveLayoutTemplate(org.uberfire.backend.vfs.Path perspectivePath, org.uberfire.ext.layout.editor.api.editor.LayoutTemplate layoutTemplate, String commitMessage)
-
-
-
Method Detail
-
copy
public org.uberfire.backend.vfs.Path copy(org.uberfire.backend.vfs.Path path, String newName, String comment)- Specified by:
copyin interfaceorg.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:
copyin interfaceorg.uberfire.ext.editor.commons.service.support.SupportsCopy
-
delete
public void delete(org.uberfire.backend.vfs.Path path, String comment)- Specified by:
deletein interfaceorg.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:
saveAndRenamein interfaceorg.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:
renamein interfaceorg.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:
savein interfaceorg.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:
createNewPerspectivein interfaceorg.uberfire.ext.layout.editor.api.PerspectiveServices
-
listLayoutTemplates
public Collection<org.uberfire.ext.layout.editor.api.editor.LayoutTemplate> listLayoutTemplates()
- Specified by:
listLayoutTemplatesin interfaceorg.uberfire.ext.layout.editor.api.PerspectiveServices
-
getLayoutTemplate
public org.uberfire.ext.layout.editor.api.editor.LayoutTemplate getLayoutTemplate(String perspectiveName)
- Specified by:
getLayoutTemplatein interfaceorg.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:
getLayoutTemplatein interfaceorg.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:
getLayoutTemplatein interfaceorg.uberfire.ext.layout.editor.api.PerspectiveServices
-
convertToLayoutTemplate
public org.uberfire.ext.layout.editor.api.editor.LayoutTemplate convertToLayoutTemplate(String layoutModel)
- Specified by:
convertToLayoutTemplatein interfaceorg.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:
saveLayoutTemplatein interfaceorg.uberfire.ext.layout.editor.api.PerspectiveServices
-
-