@ApplicationScoped public class ScenarioSimulationServiceImpl extends org.kie.workbench.common.services.backend.service.KieService<ScenarioSimulationModelContent> implements ScenarioSimulationService
| Modifier and Type | Field and Description |
|---|---|
protected ScenarioSimulationBuilder |
scenarioSimulationBuilder |
| Constructor and Description |
|---|
ScenarioSimulationServiceImpl() |
ScenarioSimulationServiceImpl(org.uberfire.rpc.SessionInfo sessionInfo) |
| Modifier and Type | Method and Description |
|---|---|
protected ScenarioSimulationModelContent |
constructContent(org.uberfire.backend.vfs.Path path,
org.guvnor.common.services.shared.metadata.model.Overview overview) |
org.uberfire.backend.vfs.Path |
copy(org.uberfire.backend.vfs.Path path,
String newName,
org.uberfire.backend.vfs.Path targetDirectory,
String comment) |
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,
ScenarioSimulationModel content,
String comment) |
org.uberfire.backend.vfs.Path |
create(org.uberfire.backend.vfs.Path context,
String fileName,
ScenarioSimulationModel content,
String comment,
ScenarioSimulationModel.Type type,
String value) |
protected void |
createActivatorIfNotExist(org.uberfire.backend.vfs.Path context) |
void |
delete(org.uberfire.backend.vfs.Path path,
String comment) |
protected boolean |
editPomIfNecessary(org.guvnor.common.services.project.model.Dependencies dependencies,
org.guvnor.common.services.project.model.GAV gav) |
protected void |
ensureDependencies(org.kie.workbench.common.services.shared.project.KieModule module) |
protected org.uberfire.java.nio.file.Path |
getActivatorPath(org.guvnor.common.services.project.model.Package rootModulePackage) |
protected List<org.guvnor.common.services.project.model.GAV> |
getDependencies(String kieVersion) |
protected org.uberfire.java.nio.file.Path |
getJunitActivatorPackagePath(org.guvnor.common.services.project.model.Package rootModulePackage) |
protected org.guvnor.common.services.project.model.Package |
getOrCreateJunitActivatorPackage(org.kie.workbench.common.services.shared.project.KieModule kieModule) |
void |
init() |
ScenarioSimulationModel |
load(org.uberfire.backend.vfs.Path path) |
protected void |
removeOldActivatorIfExists(org.kie.workbench.common.services.shared.project.KieModule kieModule) |
org.uberfire.backend.vfs.Path |
rename(org.uberfire.backend.vfs.Path path,
String newName,
String comment) |
ScenarioSimulationModel |
runScenario(org.uberfire.backend.vfs.Path path,
ScenarioSimulationModel model) |
org.uberfire.backend.vfs.Path |
save(org.uberfire.backend.vfs.Path resource,
ScenarioSimulationModel content,
org.guvnor.common.services.shared.metadata.model.Metadata metadata,
String comment) |
org.uberfire.backend.vfs.Path |
saveAndRename(org.uberfire.backend.vfs.Path path,
String newFileName,
org.guvnor.common.services.shared.metadata.model.Metadata metadata,
ScenarioSimulationModel content,
String comment) |
fireMetadataSocialEvents, getSource, loadContentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitloadContent@Inject protected ScenarioSimulationBuilder scenarioSimulationBuilder
public ScenarioSimulationServiceImpl()
@Inject public ScenarioSimulationServiceImpl(org.uberfire.rpc.SessionInfo sessionInfo)
@PostConstruct public void init()
public ScenarioSimulationModel runScenario(org.uberfire.backend.vfs.Path path, ScenarioSimulationModel model)
runScenario in interface ScenarioSimulationServicepublic org.uberfire.backend.vfs.Path create(org.uberfire.backend.vfs.Path context,
String fileName,
ScenarioSimulationModel content,
String comment)
create in interface org.uberfire.ext.editor.commons.service.support.SupportsCreate<ScenarioSimulationModel>public org.uberfire.backend.vfs.Path create(org.uberfire.backend.vfs.Path context,
String fileName,
ScenarioSimulationModel content,
String comment,
ScenarioSimulationModel.Type type,
String value)
create in interface ScenarioSimulationServicepublic ScenarioSimulationModel load(org.uberfire.backend.vfs.Path path)
load in interface org.uberfire.ext.editor.commons.service.support.SupportsRead<ScenarioSimulationModel>protected ScenarioSimulationModelContent constructContent(org.uberfire.backend.vfs.Path path, org.guvnor.common.services.shared.metadata.model.Overview overview)
constructContent in class org.kie.workbench.common.services.backend.service.KieService<ScenarioSimulationModelContent>public org.uberfire.backend.vfs.Path save(org.uberfire.backend.vfs.Path resource,
ScenarioSimulationModel content,
org.guvnor.common.services.shared.metadata.model.Metadata metadata,
String comment)
save in interface org.uberfire.ext.editor.commons.service.support.SupportsUpdate<ScenarioSimulationModel,org.guvnor.common.services.shared.metadata.model.Metadata>public void delete(org.uberfire.backend.vfs.Path path,
String comment)
delete in interface org.uberfire.ext.editor.commons.service.support.SupportsDeletepublic org.uberfire.backend.vfs.Path rename(org.uberfire.backend.vfs.Path path,
String newName,
String comment)
rename in interface org.uberfire.ext.editor.commons.service.support.SupportsRenamepublic org.uberfire.backend.vfs.Path copy(org.uberfire.backend.vfs.Path path,
String newName,
String comment)
copy in interface org.uberfire.ext.editor.commons.service.support.SupportsCopypublic org.uberfire.backend.vfs.Path copy(org.uberfire.backend.vfs.Path path,
String newName,
org.uberfire.backend.vfs.Path targetDirectory,
String comment)
copy in interface org.uberfire.ext.editor.commons.service.support.SupportsCopypublic org.uberfire.backend.vfs.Path saveAndRename(org.uberfire.backend.vfs.Path path,
String newFileName,
org.guvnor.common.services.shared.metadata.model.Metadata metadata,
ScenarioSimulationModel content,
String comment)
saveAndRename in interface org.uberfire.ext.editor.commons.service.support.SupportsSaveAndRename<ScenarioSimulationModel,org.guvnor.common.services.shared.metadata.model.Metadata>protected void createActivatorIfNotExist(org.uberfire.backend.vfs.Path context)
protected org.guvnor.common.services.project.model.Package getOrCreateJunitActivatorPackage(org.kie.workbench.common.services.shared.project.KieModule kieModule)
protected void removeOldActivatorIfExists(org.kie.workbench.common.services.shared.project.KieModule kieModule)
protected void ensureDependencies(org.kie.workbench.common.services.shared.project.KieModule module)
protected boolean editPomIfNecessary(org.guvnor.common.services.project.model.Dependencies dependencies,
org.guvnor.common.services.project.model.GAV gav)
protected org.uberfire.java.nio.file.Path getActivatorPath(org.guvnor.common.services.project.model.Package rootModulePackage)
protected org.uberfire.java.nio.file.Path getJunitActivatorPackagePath(org.guvnor.common.services.project.model.Package rootModulePackage)
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.