@ApplicationScoped public class PerspectiveServicesImpl extends Object implements PerspectiveServices
Constructor and Description |
---|
PerspectiveServicesImpl(PluginServicesImpl pluginServices,
LayoutServicesImpl layoutServices,
SaveAndRenameServiceImpl<LayoutTemplate,DefaultMetadata> saveAndRenameService) |
@Inject public PerspectiveServicesImpl(PluginServicesImpl pluginServices, LayoutServicesImpl layoutServices, SaveAndRenameServiceImpl<LayoutTemplate,DefaultMetadata> saveAndRenameService)
@PostConstruct public void init()
public 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(Path perspectivePath)
getLayoutTemplate
in interface PerspectiveServices
public LayoutTemplate getLayoutTemplate(Plugin perspectivePlugin)
getLayoutTemplate
in interface PerspectiveServices
public Path saveLayoutTemplate(Path perspectivePath, LayoutTemplate layoutTemplate, String commitMessage)
saveLayoutTemplate
in interface PerspectiveServices
public LayoutTemplate convertToLayoutTemplate(String layoutModel)
convertToLayoutTemplate
in interface PerspectiveServices
public Path copy(Path path, String newName, String comment)
copy
in interface SupportsCopy
public Path copy(Path path, String newName, Path targetDirectory, String comment)
copy
in interface SupportsCopy
public Path rename(Path path, String newName, String comment)
rename
in interface SupportsRename
public void delete(Path path, String comment)
delete
in interface SupportsDelete
public Path save(Path path, LayoutTemplate content, DefaultMetadata metadata, String comment)
save
in interface SupportsUpdate<LayoutTemplate,DefaultMetadata>
public Path saveAndRename(Path path, String newFileName, DefaultMetadata metadata, LayoutTemplate content, String comment)
saveAndRename
in interface SupportsSaveAndRename<LayoutTemplate,DefaultMetadata>
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.