Drools Workbench - Test Scenario Editor - Backend 6.2.0.CR4

org.drools.workbench.screens.testscenario.backend.server
Class ScenarioTestEditorServiceImpl

java.lang.Object
  extended by org.kie.workbench.common.services.backend.service.KieService
      extended by org.drools.workbench.screens.testscenario.backend.server.ScenarioTestEditorServiceImpl
All Implemented Interfaces:
ScenarioTestEditorService, org.guvnor.common.services.shared.test.TestService, org.uberfire.ext.editor.commons.service.support.SupportsCopy, org.uberfire.ext.editor.commons.service.support.SupportsCreate<org.drools.workbench.models.testscenarios.shared.Scenario>, org.uberfire.ext.editor.commons.service.support.SupportsDelete, org.uberfire.ext.editor.commons.service.support.SupportsRead<org.drools.workbench.models.testscenarios.shared.Scenario>, org.uberfire.ext.editor.commons.service.support.SupportsRename, org.uberfire.ext.editor.commons.service.support.SupportsUpdate<org.drools.workbench.models.testscenarios.shared.Scenario,org.guvnor.common.services.shared.metadata.model.Metadata>

@ApplicationScoped
public class ScenarioTestEditorServiceImpl
extends org.kie.workbench.common.services.backend.service.KieService
implements ScenarioTestEditorService


Field Summary
protected  org.jboss.errai.security.shared.api.identity.User identity
           
 
Fields inherited from class org.kie.workbench.common.services.backend.service.KieService
sessionInfo, sourceServices
 
Fields inherited from interface org.drools.workbench.screens.testscenario.service.ScenarioTestEditorService
TEST_SCENARIO_EDITOR_MAX_RULE_FIRINGS, TEST_SCENARIO_EDITOR_SETTINGS
 
Constructor Summary
ScenarioTestEditorServiceImpl()
           
 
Method Summary
 org.uberfire.backend.vfs.Path copy(org.uberfire.backend.vfs.Path path, String newName, String comment)
           
 org.uberfire.backend.vfs.Path create(org.uberfire.backend.vfs.Path context, String fileName, org.drools.workbench.models.testscenarios.shared.Scenario content, String comment)
           
 void delete(org.uberfire.backend.vfs.Path path, String comment)
           
 org.drools.workbench.models.testscenarios.shared.Scenario load(org.uberfire.backend.vfs.Path path)
           
 TestScenarioModelContent loadContent(org.uberfire.backend.vfs.Path path)
           
 List<org.uberfire.backend.vfs.Path> loadScenarioPaths(org.uberfire.backend.vfs.Path path)
           
 org.uberfire.backend.vfs.Path rename(org.uberfire.backend.vfs.Path path, String newName, String comment)
           
 void runAllTests(org.uberfire.backend.vfs.Path testResourcePath)
           
 void runAllTests(org.uberfire.backend.vfs.Path testResourcePath, javax.enterprise.event.Event<org.guvnor.common.services.shared.test.TestResultMessage> customTestResultEvent)
           
 TestScenarioResult runScenario(org.uberfire.backend.vfs.Path path, org.drools.workbench.models.testscenarios.shared.Scenario scenario)
           
 org.uberfire.backend.vfs.Path save(org.uberfire.backend.vfs.Path resource, org.drools.workbench.models.testscenarios.shared.Scenario content, org.guvnor.common.services.shared.metadata.model.Metadata metadata, String comment)
           
 
Methods inherited from class org.kie.workbench.common.services.backend.service.KieService
getSource, loadOverview, makeCommentedOption
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

identity

@Inject
protected org.jboss.errai.security.shared.api.identity.User identity
Constructor Detail

ScenarioTestEditorServiceImpl

public ScenarioTestEditorServiceImpl()
Method Detail

create

public org.uberfire.backend.vfs.Path create(org.uberfire.backend.vfs.Path context,
                                            String fileName,
                                            org.drools.workbench.models.testscenarios.shared.Scenario content,
                                            String comment)
Specified by:
create in interface org.uberfire.ext.editor.commons.service.support.SupportsCreate<org.drools.workbench.models.testscenarios.shared.Scenario>

load

public org.drools.workbench.models.testscenarios.shared.Scenario load(org.uberfire.backend.vfs.Path path)
Specified by:
load in interface org.uberfire.ext.editor.commons.service.support.SupportsRead<org.drools.workbench.models.testscenarios.shared.Scenario>

save

public org.uberfire.backend.vfs.Path save(org.uberfire.backend.vfs.Path resource,
                                          org.drools.workbench.models.testscenarios.shared.Scenario content,
                                          org.guvnor.common.services.shared.metadata.model.Metadata metadata,
                                          String comment)
Specified by:
save in interface org.uberfire.ext.editor.commons.service.support.SupportsUpdate<org.drools.workbench.models.testscenarios.shared.Scenario,org.guvnor.common.services.shared.metadata.model.Metadata>

delete

public void delete(org.uberfire.backend.vfs.Path path,
                   String comment)
Specified by:
delete in interface org.uberfire.ext.editor.commons.service.support.SupportsDelete

rename

public org.uberfire.backend.vfs.Path rename(org.uberfire.backend.vfs.Path path,
                                            String newName,
                                            String comment)
Specified by:
rename in interface org.uberfire.ext.editor.commons.service.support.SupportsRename

copy

public org.uberfire.backend.vfs.Path copy(org.uberfire.backend.vfs.Path path,
                                          String newName,
                                          String comment)
Specified by:
copy in interface org.uberfire.ext.editor.commons.service.support.SupportsCopy

loadContent

public TestScenarioModelContent loadContent(org.uberfire.backend.vfs.Path path)
Specified by:
loadContent in interface ScenarioTestEditorService

runScenario

public TestScenarioResult runScenario(org.uberfire.backend.vfs.Path path,
                                      org.drools.workbench.models.testscenarios.shared.Scenario scenario)
Specified by:
runScenario in interface ScenarioTestEditorService

runAllTests

public void runAllTests(org.uberfire.backend.vfs.Path testResourcePath)
Specified by:
runAllTests in interface ScenarioTestEditorService
Specified by:
runAllTests in interface org.guvnor.common.services.shared.test.TestService

runAllTests

public void runAllTests(org.uberfire.backend.vfs.Path testResourcePath,
                        javax.enterprise.event.Event<org.guvnor.common.services.shared.test.TestResultMessage> customTestResultEvent)
Specified by:
runAllTests in interface ScenarioTestEditorService
Specified by:
runAllTests in interface org.guvnor.common.services.shared.test.TestService

loadScenarioPaths

public List<org.uberfire.backend.vfs.Path> loadScenarioPaths(org.uberfire.backend.vfs.Path path)

Drools Workbench - Test Scenario Editor - Backend 6.2.0.CR4

Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.