@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 pluginsFileSystem,
FileSystem perspectivesFileSystem,
SaveAndRenameServiceImpl<Plugin,DefaultMetadata> saveAndRenameService,
SpacesAPI spacesAPI) |
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 pluginsFileSystem,
@Named(value="perspectivesFS")
FileSystem perspectivesFileSystem,
SaveAndRenameServiceImpl<Plugin,DefaultMetadata> saveAndRenameService,
SpacesAPI spacesAPI)
@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 Collection<Plugin> listPlugins(PluginType type)
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 SupportsDeletepublic Path copy(Path path, String newName, String comment)
copy in interface SupportsCopypublic Path copy(Path path, String newName, Path targetDirectory, String comment)
copy in interface SupportsCopypublic Path rename(Path path, String newName, String comment)
rename in interface 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, DefaultMetadata _metadata, String comment)
save in interface SupportsUpdate<Plugin,DefaultMetadata>public Path saveAndRename(Path path, String newFileName, DefaultMetadata metadata, Plugin content, String comment)
saveAndRename in interface SupportsSaveAndRename<Plugin,DefaultMetadata>Copyright © 2012–2021 JBoss by Red Hat. All rights reserved.