@Test public void testGetRawContent() throws IOException { String result = diagramService.getRawContent(diagram); assertEquals(DIAGRAM_MARSHALLED, result); }
@Override public String getRawContent(D diagram) { try { return serialize(diagram)[0]; } catch (java.io.IOException e) { LOG.error("Error while getting raw content for diagram with UUID [" + diagram.getName() + "].", e); throw new RuntimeException(e); } }
AbstractVFSDiagramService implements BaseDiagramService<M, D> { @Override public String getRawContent(D diagram) { try { return serialize(diagram)[0]; } catch (java.io.IOException e) { LOG.error("Error while getting raw content for diagram with UUID [" + diagram.getName() + "].", e); throw new RuntimeException(e); } } }
AbstractVFSDiagramService implements BaseDiagramService<M, D> { @Override public String getRawContent(D diagram) { try { return serialize(diagram)[0]; } catch (java.io.IOException e) { LOG.error("Error while getting raw content for diagram with UUID [" + diagram.getName() + "].", e); throw new RuntimeException(e); } } AbstractVFSDiagramService(final DefinitionManager definitionManager,
                                     final FactoryManager factoryManager,
                                     final Instance<DefinitionSetService> definitionSetServiceInstances,
                                     final BackendRegistryFactory registryFactory,
                                     final User identity); }
AbstractVFSDiagramService implements BaseDiagramService<M, D> { @Override public String getRawContent(D diagram) { try { return serialize(diagram)[0]; } catch (java.io.IOException e) { LOG.error("Error while getting raw content for diagram with UUID [" + diagram.getName() + "].", e); throw new RuntimeException(e); } } AbstractVFSDiagramService(final DefinitionManager definitionManager,
                                     final FactoryManager factoryManager,
                                     final Instance<DefinitionSetService> definitionSetServiceInstances,
                                     final BackendRegistryFactory registryFactory,
                                     final User identity); Path create(final Path path,
                       final String name,
                       final String defSetId,
                       final Metadata metadata); @Override String getRawContent(D diagram); @SuppressWarnings("unchecked") D getDiagramByPath(final org.uberfire.backend.vfs.Path file); M saveOrUpdate(final D diagram); @Override Path saveOrUpdateSvg(Path diagramPath, String rawDiagramSvg); boolean delete(final D diagram); boolean contains(final D item); Collection<D> getDiagramsByPath(final org.uberfire.java.nio.file.Path root); boolean accepts(final org.uberfire.backend.vfs.Path path); }
AbstractVFSDiagramService implements BaseDiagramService<M, D> { @Override public String getRawContent(D diagram) { try { return serialize(diagram)[0]; } catch (java.io.IOException e) { LOG.error("Error while getting raw content for diagram with UUID [" + diagram.getName() + "].", e); throw new RuntimeException(e); } } AbstractVFSDiagramService(final DefinitionManager definitionManager,
                                     final FactoryManager factoryManager,
                                     final Instance<DefinitionSetService> definitionSetServiceInstances,
                                     final BackendRegistryFactory registryFactory,
                                     final User identity); Path create(final Path path,
                       final String name,
                       final String defSetId,
                       final Metadata metadata); @Override String getRawContent(D diagram); @SuppressWarnings("unchecked") D getDiagramByPath(final org.uberfire.backend.vfs.Path file); M saveOrUpdate(final D diagram); @Override Path saveOrUpdateSvg(Path diagramPath, String rawDiagramSvg); boolean delete(final D diagram); boolean contains(final D item); Collection<D> getDiagramsByPath(final org.uberfire.java.nio.file.Path root); boolean accepts(final org.uberfire.backend.vfs.Path path); static final String SVG_SUFFIX; }