Class DecisionTableXLSServiceImpl

  • All Implemented Interfaces:
    ExtendedDecisionTableXLSService, org.drools.workbench.screens.dtablexls.service.DecisionTableXLSService, org.guvnor.common.services.shared.validation.ValidationService<org.uberfire.backend.vfs.Path>, org.uberfire.ext.editor.commons.service.support.SupportsCopy, org.uberfire.ext.editor.commons.service.support.SupportsDelete, org.uberfire.ext.editor.commons.service.support.SupportsRename

    @ApplicationScoped
    public class DecisionTableXLSServiceImpl
    extends org.kie.workbench.common.services.backend.service.KieService<org.drools.workbench.screens.dtablexls.service.DecisionTableXLSContent>
    implements org.drools.workbench.screens.dtablexls.service.DecisionTableXLSService, ExtendedDecisionTableXLSService
    • Field Summary

      • Fields inherited from class org.kie.workbench.common.services.backend.service.KieService

        ioService, logger, metadataService, moduleService, overviewLoader, pathResolver, projectService, sourceServices
    • Constructor Summary

      Constructors 
      Constructor Description
      DecisionTableXLSServiceImpl()  
      DecisionTableXLSServiceImpl​(org.uberfire.io.IOService ioService, org.uberfire.ext.editor.commons.service.CopyService copyService, org.uberfire.ext.editor.commons.service.DeleteService deleteService, org.uberfire.ext.editor.commons.service.RenameService renameService, javax.enterprise.event.Event<org.uberfire.workbench.events.ResourceOpenedEvent> resourceOpenedEvent, org.drools.workbench.screens.dtablexls.service.DecisionTableXLSConversionService conversionService, org.guvnor.common.services.backend.validation.GenericValidator genericValidator, org.guvnor.common.services.backend.util.CommentedOptionFactory commentedOptionFactory, org.jboss.errai.security.shared.service.AuthenticationService authenticationService)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.drools.workbench.screens.dtablexls.service.DecisionTableXLSContent constructContent​(org.uberfire.backend.vfs.Path path, org.guvnor.common.services.shared.metadata.model.Overview overview)  
      org.drools.workbench.models.guided.dtable.shared.conversion.ConversionResult convert​(org.uberfire.backend.vfs.Path path)  
      org.uberfire.backend.vfs.Path copy​(org.uberfire.backend.vfs.Path path, String newName, String comment)  
      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 create​(org.uberfire.backend.vfs.Path resource, InputStream content, String sessionId, String comment)  
      void delete​(org.uberfire.backend.vfs.Path path, String comment)  
      String getSource​(org.uberfire.backend.vfs.Path path)  
      InputStream load​(org.uberfire.backend.vfs.Path path, String sessionId)  
      org.uberfire.backend.vfs.Path rename​(org.uberfire.backend.vfs.Path path, String newName, String comment)  
      org.uberfire.backend.vfs.Path save​(org.uberfire.backend.vfs.Path resource, InputStream content, String sessionId, String comment)  
      List<org.guvnor.common.services.shared.validation.model.ValidationMessage> validate​(org.uberfire.backend.vfs.Path path, org.uberfire.backend.vfs.Path resource)  
      • Methods inherited from class org.kie.workbench.common.services.backend.service.KieService

        loadContent
      • Methods inherited from interface org.drools.workbench.screens.dtablexls.service.DecisionTableXLSService

        loadContent
    • Constructor Detail

      • DecisionTableXLSServiceImpl

        public DecisionTableXLSServiceImpl()
      • DecisionTableXLSServiceImpl

        @Inject
        public DecisionTableXLSServiceImpl​(@Named("ioStrategy")
                                           org.uberfire.io.IOService ioService,
                                           org.uberfire.ext.editor.commons.service.CopyService copyService,
                                           org.uberfire.ext.editor.commons.service.DeleteService deleteService,
                                           org.uberfire.ext.editor.commons.service.RenameService renameService,
                                           javax.enterprise.event.Event<org.uberfire.workbench.events.ResourceOpenedEvent> resourceOpenedEvent,
                                           org.drools.workbench.screens.dtablexls.service.DecisionTableXLSConversionService conversionService,
                                           org.guvnor.common.services.backend.validation.GenericValidator genericValidator,
                                           org.guvnor.common.services.backend.util.CommentedOptionFactory commentedOptionFactory,
                                           org.jboss.errai.security.shared.service.AuthenticationService authenticationService)
    • Method Detail

      • constructContent

        protected org.drools.workbench.screens.dtablexls.service.DecisionTableXLSContent constructContent​(org.uberfire.backend.vfs.Path path,
                                                                                                          org.guvnor.common.services.shared.metadata.model.Overview overview)
        Specified by:
        constructContent in class org.kie.workbench.common.services.backend.service.KieService<org.drools.workbench.screens.dtablexls.service.DecisionTableXLSContent>
      • create

        public org.uberfire.backend.vfs.Path create​(org.uberfire.backend.vfs.Path resource,
                                                    InputStream content,
                                                    String sessionId,
                                                    String comment)
        Specified by:
        create in interface org.drools.workbench.screens.dtablexls.service.DecisionTableXLSService
      • getSource

        public String getSource​(org.uberfire.backend.vfs.Path path)
        Specified by:
        getSource in interface org.drools.workbench.screens.dtablexls.service.DecisionTableXLSService
        Overrides:
        getSource in class org.kie.workbench.common.services.backend.service.KieService<org.drools.workbench.screens.dtablexls.service.DecisionTableXLSContent>
      • 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
      • 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:
        copy in interface org.uberfire.ext.editor.commons.service.support.SupportsCopy
      • convert

        public org.drools.workbench.models.guided.dtable.shared.conversion.ConversionResult convert​(org.uberfire.backend.vfs.Path path)
        Specified by:
        convert in interface org.drools.workbench.screens.dtablexls.service.DecisionTableXLSService
      • validate

        public List<org.guvnor.common.services.shared.validation.model.ValidationMessage> validate​(org.uberfire.backend.vfs.Path path,
                                                                                                   org.uberfire.backend.vfs.Path resource)
        Specified by:
        validate in interface org.guvnor.common.services.shared.validation.ValidationService<org.uberfire.backend.vfs.Path>