@ApplicationScoped public class PluginServicesImpl extends Object implements PluginServices
| Modifier and Type | Field and Description |
|---|---|
protected com.google.gson.Gson |
gson |
| Constructor and Description |
|---|
PluginServicesImpl() |
PluginServicesImpl(IOService ioService,
javax.enterprise.inject.Instance<MediaServletURI> mediaServletURI,
SessionInfo sessionInfo,
javax.enterprise.event.Event<PluginAdded> pluginAddedEvent,
javax.enterprise.event.Event<PluginDeleted> pluginDeletedEvent,
javax.enterprise.event.Event<PluginSaved> pluginSavedEvent,
javax.enterprise.event.Event<PluginRenamed> pluginRenamedEvent,
javax.enterprise.event.Event<MediaDeleted> mediaDeletedEvent,
DefaultFileNameValidator defaultFileNameValidator,
org.jboss.errai.security.shared.api.identity.User identity,
FileSystem fileSystem,
SaveAndRenameServiceImpl<Plugin,org.uberfire.ext.editor.commons.file.DefaultMetadata> saveAndRenameService) |
public PluginServicesImpl()
@Inject
public PluginServicesImpl(@Named(value="ioStrategy")
IOService ioService,
@Named(value="MediaServletURI")
javax.enterprise.inject.Instance<MediaServletURI> mediaServletURI,
SessionInfo sessionInfo,
javax.enterprise.event.Event<PluginAdded> pluginAddedEvent,
javax.enterprise.event.Event<PluginDeleted> pluginDeletedEvent,
javax.enterprise.event.Event<PluginSaved> pluginSavedEvent,
javax.enterprise.event.Event<PluginRenamed> pluginRenamedEvent,
javax.enterprise.event.Event<MediaDeleted> mediaDeletedEvent,
DefaultFileNameValidator defaultFileNameValidator,
org.jboss.errai.security.shared.api.identity.User identity,
@Named(value="pluginsFS")
FileSystem fileSystem,
SaveAndRenameServiceImpl<Plugin,org.uberfire.ext.editor.commons.file.DefaultMetadata> saveAndRenameService)
@PostConstruct public void init()
public String getMediaServletURI()
getMediaServletURI in interface PluginServicespublic Collection<RuntimePlugin> listRuntimePlugins()
listRuntimePlugins in interface PluginServicespublic Collection<RuntimePlugin> listPluginRuntimePlugins(Path pluginPath)
listPluginRuntimePlugins in interface PluginServicespublic Collection<Plugin> listPlugins()
listPlugins in interface PluginServicespublic Plugin createNewPlugin(String pluginName, PluginType type)
createNewPlugin in interface PluginServicespublic PluginContent getPluginContent(Path path)
getPluginContent in interface PluginServicespublic Path save(Plugin plugin, String commitMessage)
save in interface PluginServicespublic Path save(PluginSimpleContent plugin, String commitMessage)
public void delete(Path path, String comment)
delete in interface org.uberfire.ext.editor.commons.service.support.SupportsDeletepublic Path copy(Path path, String newName, String comment)
copy in interface org.uberfire.ext.editor.commons.service.support.SupportsCopypublic Path copy(Path path, String newName, Path targetDirectory, String comment)
copy in interface org.uberfire.ext.editor.commons.service.support.SupportsCopypublic Path rename(Path path, String newName, String comment)
rename in interface org.uberfire.ext.editor.commons.service.support.SupportsRenamepublic void deleteMedia(Media media)
deleteMedia in interface PluginServicespublic DynamicMenu getDynamicMenuContent(Path path)
getDynamicMenuContent in interface PluginServicespublic LayoutEditorModel getLayoutEditor(Path path, PluginType pluginType)
getLayoutEditor in interface PluginServicespublic Path saveMenu(DynamicMenu plugin, String commitMessage)
saveMenu in interface PluginServicespublic Path saveLayout(LayoutEditorModel plugin, String commitMessage)
saveLayout in interface PluginServicespublic Collection<DynamicMenu> listDynamicMenus()
listDynamicMenus in interface PluginServicespublic Collection<LayoutEditorModel> listLayoutEditor(PluginType pluginType)
listLayoutEditor in interface PluginServicespublic Path save(Path _path, Plugin content, org.uberfire.ext.editor.commons.file.DefaultMetadata _metadata, String comment)
save in interface org.uberfire.ext.editor.commons.service.support.SupportsUpdate<Plugin,org.uberfire.ext.editor.commons.file.DefaultMetadata>public Path saveAndRename(Path path, String newFileName, org.uberfire.ext.editor.commons.file.DefaultMetadata metadata, Plugin content, String comment)
saveAndRename in interface org.uberfire.ext.editor.commons.service.support.SupportsSaveAndRename<Plugin,org.uberfire.ext.editor.commons.file.DefaultMetadata>Copyright © 2012–2018 JBoss by Red Hat. All rights reserved.