@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 PluginServices
public Collection<RuntimePlugin> listRuntimePlugins()
listRuntimePlugins
in interface PluginServices
public Collection<RuntimePlugin> listPluginRuntimePlugins(Path pluginPath)
listPluginRuntimePlugins
in interface PluginServices
public Collection<Plugin> listPlugins()
listPlugins
in interface PluginServices
public Collection<Plugin> listPlugins(PluginType type)
listPlugins
in interface PluginServices
public Plugin createNewPlugin(String pluginName, PluginType type)
createNewPlugin
in interface PluginServices
public PluginContent getPluginContent(Path path)
getPluginContent
in interface PluginServices
public Path save(Plugin plugin, String commitMessage)
save
in interface PluginServices
public Path save(PluginSimpleContent plugin, String commitMessage)
public void delete(Path path, String comment)
delete
in interface SupportsDelete
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 deleteMedia(Media media)
deleteMedia
in interface PluginServices
public DynamicMenu getDynamicMenuContent(Path path)
getDynamicMenuContent
in interface PluginServices
public LayoutEditorModel getLayoutEditor(Path path, PluginType pluginType)
getLayoutEditor
in interface PluginServices
public Path saveMenu(DynamicMenu plugin, String commitMessage)
saveMenu
in interface PluginServices
public Path saveLayout(LayoutEditorModel plugin, String commitMessage)
saveLayout
in interface PluginServices
public Collection<DynamicMenu> listDynamicMenus()
listDynamicMenus
in interface PluginServices
public Collection<LayoutEditorModel> listLayoutEditor(PluginType pluginType)
listLayoutEditor
in interface PluginServices
public 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–2020 JBoss by Red Hat. All rights reserved.