@Test public void testSessionInfoOnSave() { service.save( path, inputstream, sessionId, comment ); final CommentedOption commentedOption = commentedOptionArgumentCaptor.getValue(); assertNotNull( commentedOption ); assertEquals( "user", commentedOption.getName() ); assertEquals( "123", commentedOption.getSessionId() ); }
@Override public Path save( final Path resource, final InputStream content, final String sessionId, final String comment ) { return writeToFile( resource, content, sessionId, comment, false ); }
ScoreCardXLSServiceImpl extends KieService<ScoreCardXLSContent> implements ScoreCardXLSService,
                   ExtendedScoreCardXLSService { @Override public Path save( final Path resource, final InputStream content, final String sessionId, final String comment ) { return writeToFile( resource, content, sessionId, comment, false ); } }
ScoreCardXLSServiceImpl extends KieService<ScoreCardXLSContent> implements ScoreCardXLSService,
                   ExtendedScoreCardXLSService { @Override public Path save( final Path resource, final InputStream content, final String sessionId, final String comment ) { return writeToFile( resource, content, sessionId, comment, false ); } ScoreCardXLSServiceImpl(); @Inject  ScoreCardXLSServiceImpl( @Named("ioStrategy") final IOService ioService,
                                    final CopyService copyService,
                                    final DeleteService deleteService,
                                    final RenameService renameService,
                                    final Event<ResourceOpenedEvent> resourceOpenedEvent,
                                    final GenericValidator genericValidator,
                                    final CommentedOptionFactory commentedOptionFactory,
                                    final AuthenticationService authenticationService ); }
ScoreCardXLSServiceImpl extends KieService<ScoreCardXLSContent> implements ScoreCardXLSService,
                   ExtendedScoreCardXLSService { @Override public Path save( final Path resource, final InputStream content, final String sessionId, final String comment ) { return writeToFile( resource, content, sessionId, comment, false ); } ScoreCardXLSServiceImpl(); @Inject  ScoreCardXLSServiceImpl( @Named("ioStrategy") final IOService ioService,
                                    final CopyService copyService,
                                    final DeleteService deleteService,
                                    final RenameService renameService,
                                    final Event<ResourceOpenedEvent> resourceOpenedEvent,
                                    final GenericValidator genericValidator,
                                    final CommentedOptionFactory commentedOptionFactory,
                                    final AuthenticationService authenticationService ); @Override ScoreCardXLSContent loadContent( final Path path ); @Override InputStream load( final Path path,
                             final String sessionId ); @Override Path create( final Path resource,
                        final InputStream content,
                        final String sessionId,
                        final String comment ); @Override Path save( final Path resource,
                      final InputStream content,
                      final String sessionId,
                      final String comment ); @Override void delete( final Path path,
                        final String comment ); @Override Path rename( final Path path,
                        final String newName,
                        final String comment ); @Override Path copy( final Path path,
                      final String newName,
                      final String comment ); @Override Path copy( final Path path,
                      final String newName,
                      final Path targetDirectory,
                      final String comment ); @Override List<ValidationMessage> validate( final Path path,
                                             final Path resource ); }
ScoreCardXLSServiceImpl extends KieService<ScoreCardXLSContent> implements ScoreCardXLSService,
                   ExtendedScoreCardXLSService { @Override public Path save( final Path resource, final InputStream content, final String sessionId, final String comment ) { return writeToFile( resource, content, sessionId, comment, false ); } ScoreCardXLSServiceImpl(); @Inject  ScoreCardXLSServiceImpl( @Named("ioStrategy") final IOService ioService,
                                    final CopyService copyService,
                                    final DeleteService deleteService,
                                    final RenameService renameService,
                                    final Event<ResourceOpenedEvent> resourceOpenedEvent,
                                    final GenericValidator genericValidator,
                                    final CommentedOptionFactory commentedOptionFactory,
                                    final AuthenticationService authenticationService ); @Override ScoreCardXLSContent loadContent( final Path path ); @Override InputStream load( final Path path,
                             final String sessionId ); @Override Path create( final Path resource,
                        final InputStream content,
                        final String sessionId,
                        final String comment ); @Override Path save( final Path resource,
                      final InputStream content,
                      final String sessionId,
                      final String comment ); @Override void delete( final Path path,
                        final String comment ); @Override Path rename( final Path path,
                        final String newName,
                        final String comment ); @Override Path copy( final Path path,
                      final String newName,
                      final String comment ); @Override Path copy( final Path path,
                      final String newName,
                      final Path targetDirectory,
                      final String comment ); @Override List<ValidationMessage> validate( final Path path,
                                             final Path resource );  }