@ApplicationScoped public class PerspectiveServicesImpl extends Object implements PerspectiveServices
Constructor and Description |
---|
PerspectiveServicesImpl(PluginServicesImpl pluginServices,
LayoutServicesImpl layoutServices,
org.uberfire.ext.editor.commons.backend.service.SaveAndRenameServiceImpl<LayoutTemplate,org.uberfire.ext.editor.commons.file.DefaultMetadata> saveAndRenameService) |
Modifier and Type | Method and Description |
---|---|
LayoutTemplate |
convertToLayoutTemplate(String layoutModel) |
org.uberfire.backend.vfs.Path |
copy(org.uberfire.backend.vfs.Path path,
String newName,
org.uberfire.backend.vfs.Path targetDirectory,
String comment) |
org.uberfire.backend.vfs.Path |
copy(org.uberfire.backend.vfs.Path path,
String newName,
String comment) |
org.uberfire.ext.plugin.model.Plugin |
createNewPerspective(String name,
LayoutTemplate.Style style) |
void |
delete(org.uberfire.backend.vfs.Path path,
String comment) |
LayoutTemplate |
getLayoutTemplate(org.uberfire.backend.vfs.Path perspectivePath) |
LayoutTemplate |
getLayoutTemplate(org.uberfire.ext.plugin.model.Plugin perspectivePlugin) |
LayoutTemplate |
getLayoutTemplate(String perspectiveName) |
org.uberfire.ext.plugin.model.Plugin |
getLayoutTemplatePlugin(String perspectiveName) |
void |
init() |
Collection<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,
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,
LayoutTemplate content,
String comment) |
org.uberfire.backend.vfs.Path |
saveLayoutTemplate(org.uberfire.backend.vfs.Path perspectivePath,
LayoutTemplate layoutTemplate,
String commitMessage) |
@Inject public PerspectiveServicesImpl(PluginServicesImpl pluginServices, LayoutServicesImpl layoutServices, org.uberfire.ext.editor.commons.backend.service.SaveAndRenameServiceImpl<LayoutTemplate,org.uberfire.ext.editor.commons.file.DefaultMetadata> saveAndRenameService)
@PostConstruct public void init()
public org.uberfire.ext.plugin.model.Plugin createNewPerspective(String name, LayoutTemplate.Style style)
createNewPerspective
in interface PerspectiveServices
public Collection<LayoutTemplate> listLayoutTemplates()
listLayoutTemplates
in interface PerspectiveServices
public LayoutTemplate getLayoutTemplate(String perspectiveName)
getLayoutTemplate
in interface PerspectiveServices
public LayoutTemplate getLayoutTemplate(org.uberfire.backend.vfs.Path perspectivePath)
getLayoutTemplate
in interface PerspectiveServices
public LayoutTemplate getLayoutTemplate(org.uberfire.ext.plugin.model.Plugin perspectivePlugin)
getLayoutTemplate
in interface PerspectiveServices
public org.uberfire.ext.plugin.model.Plugin getLayoutTemplatePlugin(String perspectiveName)
public org.uberfire.backend.vfs.Path saveLayoutTemplate(org.uberfire.backend.vfs.Path perspectivePath, LayoutTemplate layoutTemplate, String commitMessage)
saveLayoutTemplate
in interface PerspectiveServices
public LayoutTemplate convertToLayoutTemplate(String layoutModel)
convertToLayoutTemplate
in interface PerspectiveServices
public org.uberfire.backend.vfs.Path copy(org.uberfire.backend.vfs.Path path, String newName, String comment)
copy
in interface org.uberfire.ext.editor.commons.service.support.SupportsCopy
public org.uberfire.backend.vfs.Path copy(org.uberfire.backend.vfs.Path path, String newName, org.uberfire.backend.vfs.Path targetDirectory, String comment)
copy
in interface org.uberfire.ext.editor.commons.service.support.SupportsCopy
public org.uberfire.backend.vfs.Path rename(org.uberfire.backend.vfs.Path path, String newName, String comment)
rename
in interface org.uberfire.ext.editor.commons.service.support.SupportsRename
public void delete(org.uberfire.backend.vfs.Path path, String comment)
delete
in interface org.uberfire.ext.editor.commons.service.support.SupportsDelete
public org.uberfire.backend.vfs.Path save(org.uberfire.backend.vfs.Path path, LayoutTemplate content, org.uberfire.ext.editor.commons.file.DefaultMetadata metadata, String comment)
save
in interface org.uberfire.ext.editor.commons.service.support.SupportsUpdate<LayoutTemplate,org.uberfire.ext.editor.commons.file.DefaultMetadata>
public org.uberfire.backend.vfs.Path saveAndRename(org.uberfire.backend.vfs.Path path, String newFileName, org.uberfire.ext.editor.commons.file.DefaultMetadata metadata, LayoutTemplate content, String comment)
saveAndRename
in interface org.uberfire.ext.editor.commons.service.support.SupportsSaveAndRename<LayoutTemplate,org.uberfire.ext.editor.commons.file.DefaultMetadata>
Copyright © 2012–2018 JBoss by Red Hat. All rights reserved.