Class GuidedRuleEditorServiceImpl
- java.lang.Object
-
- org.kie.workbench.common.services.backend.service.KieService<org.drools.workbench.screens.guided.rule.model.GuidedEditorContent>
-
- org.drools.workbench.screens.guided.rule.backend.server.GuidedRuleEditorServiceImpl
-
- All Implemented Interfaces:
org.drools.workbench.screens.guided.rule.service.GuidedRuleEditorService,org.guvnor.common.services.shared.validation.ValidationService<org.drools.workbench.models.datamodel.rule.RuleModel>,org.kie.workbench.common.services.shared.source.ViewSourceService<org.drools.workbench.models.datamodel.rule.RuleModel>,org.uberfire.ext.editor.commons.service.support.SupportsCopy,org.uberfire.ext.editor.commons.service.support.SupportsCreate<org.drools.workbench.models.datamodel.rule.RuleModel>,org.uberfire.ext.editor.commons.service.support.SupportsDelete,org.uberfire.ext.editor.commons.service.support.SupportsRead<org.drools.workbench.models.datamodel.rule.RuleModel>,org.uberfire.ext.editor.commons.service.support.SupportsRename,org.uberfire.ext.editor.commons.service.support.SupportsSaveAndRename<org.drools.workbench.models.datamodel.rule.RuleModel,org.guvnor.common.services.shared.metadata.model.Metadata>,org.uberfire.ext.editor.commons.service.support.SupportsUpdate<org.drools.workbench.models.datamodel.rule.RuleModel,org.guvnor.common.services.shared.metadata.model.Metadata>
@ApplicationScoped public class GuidedRuleEditorServiceImpl extends org.kie.workbench.common.services.backend.service.KieService<org.drools.workbench.screens.guided.rule.model.GuidedEditorContent> implements org.drools.workbench.screens.guided.rule.service.GuidedRuleEditorService
-
-
Constructor Summary
Constructors Constructor Description GuidedRuleEditorServiceImpl()GuidedRuleEditorServiceImpl(org.uberfire.rpc.SessionInfo sessionInfo, javax.enterprise.inject.Instance<org.drools.workbench.models.commons.backend.rule.RuleModelIActionPersistenceExtension> persistenceExtensionInstance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.drools.workbench.screens.guided.rule.model.GuidedEditorContentconstructContent(org.uberfire.backend.vfs.Path path, org.guvnor.common.services.shared.metadata.model.Overview overview)org.uberfire.backend.vfs.Pathcopy(org.uberfire.backend.vfs.Path path, String newName, String comment)org.uberfire.backend.vfs.Pathcopy(org.uberfire.backend.vfs.Path path, String newName, org.uberfire.backend.vfs.Path targetDirectory, String comment)org.uberfire.backend.vfs.Pathcreate(org.uberfire.backend.vfs.Path context, String fileName, org.drools.workbench.models.datamodel.rule.RuleModel model, String comment)voiddelete(org.uberfire.backend.vfs.Path path, String comment)voidinit()org.drools.workbench.models.datamodel.rule.RuleModelload(org.uberfire.backend.vfs.Path path)org.drools.workbench.screens.guided.rule.model.GuidedEditorContentloadContent(org.uberfire.backend.vfs.Path path)org.uberfire.backend.vfs.Pathrename(org.uberfire.backend.vfs.Path path, String newName, String comment)org.uberfire.backend.vfs.Pathsave(org.uberfire.backend.vfs.Path resource, org.drools.workbench.models.datamodel.rule.RuleModel model, org.guvnor.common.services.shared.metadata.model.Metadata metadata, String comment)org.uberfire.backend.vfs.PathsaveAndRename(org.uberfire.backend.vfs.Path path, String newFileName, org.guvnor.common.services.shared.metadata.model.Metadata metadata, org.drools.workbench.models.datamodel.rule.RuleModel content, String comment)StringtoSource(org.uberfire.backend.vfs.Path path, org.drools.workbench.models.datamodel.rule.RuleModel model)List<org.guvnor.common.services.shared.validation.model.ValidationMessage>validate(org.uberfire.backend.vfs.Path path, org.drools.workbench.models.datamodel.rule.RuleModel content)
-
-
-
Constructor Detail
-
GuidedRuleEditorServiceImpl
public GuidedRuleEditorServiceImpl()
-
GuidedRuleEditorServiceImpl
@Inject public GuidedRuleEditorServiceImpl(org.uberfire.rpc.SessionInfo sessionInfo, javax.enterprise.inject.Instance<org.drools.workbench.models.commons.backend.rule.RuleModelIActionPersistenceExtension> persistenceExtensionInstance)
-
-
Method Detail
-
init
@PostConstruct public void init()
-
create
public org.uberfire.backend.vfs.Path create(org.uberfire.backend.vfs.Path context, String fileName, org.drools.workbench.models.datamodel.rule.RuleModel model, String comment)- Specified by:
createin interfaceorg.uberfire.ext.editor.commons.service.support.SupportsCreate<org.drools.workbench.models.datamodel.rule.RuleModel>
-
load
public org.drools.workbench.models.datamodel.rule.RuleModel load(org.uberfire.backend.vfs.Path path)
- Specified by:
loadin interfaceorg.uberfire.ext.editor.commons.service.support.SupportsRead<org.drools.workbench.models.datamodel.rule.RuleModel>
-
loadContent
public org.drools.workbench.screens.guided.rule.model.GuidedEditorContent loadContent(org.uberfire.backend.vfs.Path path)
- Specified by:
loadContentin interfaceorg.drools.workbench.screens.guided.rule.service.GuidedRuleEditorService- Overrides:
loadContentin classorg.kie.workbench.common.services.backend.service.KieService<org.drools.workbench.screens.guided.rule.model.GuidedEditorContent>
-
constructContent
protected org.drools.workbench.screens.guided.rule.model.GuidedEditorContent constructContent(org.uberfire.backend.vfs.Path path, org.guvnor.common.services.shared.metadata.model.Overview overview)- Specified by:
constructContentin classorg.kie.workbench.common.services.backend.service.KieService<org.drools.workbench.screens.guided.rule.model.GuidedEditorContent>
-
save
public org.uberfire.backend.vfs.Path save(org.uberfire.backend.vfs.Path resource, org.drools.workbench.models.datamodel.rule.RuleModel model, org.guvnor.common.services.shared.metadata.model.Metadata metadata, String comment)- Specified by:
savein interfaceorg.uberfire.ext.editor.commons.service.support.SupportsUpdate<org.drools.workbench.models.datamodel.rule.RuleModel,org.guvnor.common.services.shared.metadata.model.Metadata>
-
delete
public void delete(org.uberfire.backend.vfs.Path path, String comment)- Specified by:
deletein interfaceorg.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:
renamein interfaceorg.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:
copyin interfaceorg.uberfire.ext.editor.commons.service.support.SupportsCopy
-
copy
public org.uberfire.backend.vfs.Path copy(org.uberfire.backend.vfs.Path path, String newName, org.uberfire.backend.vfs.Path targetDirectory, String comment)- Specified by:
copyin interfaceorg.uberfire.ext.editor.commons.service.support.SupportsCopy
-
toSource
public String toSource(org.uberfire.backend.vfs.Path path, org.drools.workbench.models.datamodel.rule.RuleModel model)
- Specified by:
toSourcein interfaceorg.kie.workbench.common.services.shared.source.ViewSourceService<org.drools.workbench.models.datamodel.rule.RuleModel>
-
validate
public List<org.guvnor.common.services.shared.validation.model.ValidationMessage> validate(org.uberfire.backend.vfs.Path path, org.drools.workbench.models.datamodel.rule.RuleModel content)
- Specified by:
validatein interfaceorg.guvnor.common.services.shared.validation.ValidationService<org.drools.workbench.models.datamodel.rule.RuleModel>
-
saveAndRename
public org.uberfire.backend.vfs.Path saveAndRename(org.uberfire.backend.vfs.Path path, String newFileName, org.guvnor.common.services.shared.metadata.model.Metadata metadata, org.drools.workbench.models.datamodel.rule.RuleModel content, String comment)- Specified by:
saveAndRenamein interfaceorg.uberfire.ext.editor.commons.service.support.SupportsSaveAndRename<org.drools.workbench.models.datamodel.rule.RuleModel,org.guvnor.common.services.shared.metadata.model.Metadata>
-
-