Class MigrationConfigurationServiceImpl

  • All Implemented Interfaces:
    org.guvnor.structure.backend.config.watch.AsyncWatchServiceCallback, org.guvnor.structure.server.config.ConfigurationService

    @ApplicationScoped
    public class MigrationConfigurationServiceImpl
    extends org.guvnor.structure.backend.config.ConfigurationServiceImpl
    implements org.guvnor.structure.server.config.ConfigurationService, org.guvnor.structure.backend.config.watch.AsyncWatchServiceCallback
    • Field Summary

      • Fields inherited from class org.guvnor.structure.backend.config.ConfigurationServiceImpl

        changedEvent, configGroupsByTypeWithNamespace, configGroupsByTypeWithoutNamespace, configUpdates, executor, executorService, fs, identity, INVALID_FILENAME_CHARS, ioService, jobs, localLastModifiedValue, marshaller, MONITOR_DISABLED, repoChangedEvent, spaceChangedEvent, systemRepository, watchService
      • Fields inherited from interface org.guvnor.structure.server.config.ConfigurationService

        LAST_MODIFIED_MARKER_FILE
    • Constructor Summary

      Constructors 
      Constructor Description
      MigrationConfigurationServiceImpl()  
      MigrationConfigurationServiceImpl​(org.guvnor.structure.repositories.Repository systemRepository, org.guvnor.structure.backend.config.ConfigGroupMarshaller marshaller, org.jboss.errai.security.shared.api.identity.User identity, org.uberfire.io.IOService ioService, javax.enterprise.event.Event<org.guvnor.structure.config.SystemRepositoryChangedEvent> repoChangedEvent, javax.enterprise.event.Event<org.guvnor.structure.config.SystemRepositoryChangedEvent> orgUnitChangedEvent, javax.enterprise.event.Event<org.guvnor.structure.config.SystemRepositoryChangedEvent> changedEvent, org.uberfire.java.nio.file.FileSystem fs)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean addConfiguration​(org.guvnor.structure.server.config.ConfigGroup configGroup)  
      List<org.guvnor.structure.server.config.ConfigGroup> getConfiguration​(org.guvnor.structure.server.config.ConfigType configType)  
      List<org.guvnor.structure.server.config.ConfigGroup> getConfiguration​(org.guvnor.structure.server.config.ConfigType type, String namespace)  
      Map<String,​List<org.guvnor.structure.server.config.ConfigGroup>> getConfigurationByNamespace​(org.guvnor.structure.server.config.ConfigType type)  
      boolean removeConfiguration​(org.guvnor.structure.server.config.ConfigGroup configGroup)  
      boolean updateConfiguration​(org.guvnor.structure.server.config.ConfigGroup configGroup)  
      • Methods inherited from class org.guvnor.structure.backend.config.ConfigurationServiceImpl

        callback, cleanUpSystemRepository, endBatch, getIdentityName, getLastModified, getWatchServiceExecutor, setup, shutdown, startBatch, updateLastModified
      • Methods inherited from interface org.guvnor.structure.backend.config.watch.AsyncWatchServiceCallback

        callback
      • Methods inherited from interface org.guvnor.structure.server.config.ConfigurationService

        cleanUpSystemRepository, endBatch, startBatch
    • Constructor Detail

      • MigrationConfigurationServiceImpl

        public MigrationConfigurationServiceImpl()
      • MigrationConfigurationServiceImpl

        @Inject
        public MigrationConfigurationServiceImpl​(@Named("system")
                                                 org.guvnor.structure.repositories.Repository systemRepository,
                                                 org.guvnor.structure.backend.config.ConfigGroupMarshaller marshaller,
                                                 org.jboss.errai.security.shared.api.identity.User identity,
                                                 @Named("configIO")
                                                 org.uberfire.io.IOService ioService,
                                                 javax.enterprise.event.Event<org.guvnor.structure.config.SystemRepositoryChangedEvent> repoChangedEvent,
                                                 javax.enterprise.event.Event<org.guvnor.structure.config.SystemRepositoryChangedEvent> orgUnitChangedEvent,
                                                 javax.enterprise.event.Event<org.guvnor.structure.config.SystemRepositoryChangedEvent> changedEvent,
                                                 @Named("systemFS")
                                                 org.uberfire.java.nio.file.FileSystem fs)
    • Method Detail

      • getConfiguration

        public List<org.guvnor.structure.server.config.ConfigGroup> getConfiguration​(org.guvnor.structure.server.config.ConfigType configType)
        Specified by:
        getConfiguration in interface org.guvnor.structure.server.config.ConfigurationService
        Overrides:
        getConfiguration in class org.guvnor.structure.backend.config.ConfigurationServiceImpl
      • getConfiguration

        public List<org.guvnor.structure.server.config.ConfigGroup> getConfiguration​(org.guvnor.structure.server.config.ConfigType type,
                                                                                     String namespace)
        Specified by:
        getConfiguration in interface org.guvnor.structure.server.config.ConfigurationService
        Overrides:
        getConfiguration in class org.guvnor.structure.backend.config.ConfigurationServiceImpl
      • getConfigurationByNamespace

        public Map<String,​List<org.guvnor.structure.server.config.ConfigGroup>> getConfigurationByNamespace​(org.guvnor.structure.server.config.ConfigType type)
        Specified by:
        getConfigurationByNamespace in interface org.guvnor.structure.server.config.ConfigurationService
        Overrides:
        getConfigurationByNamespace in class org.guvnor.structure.backend.config.ConfigurationServiceImpl
      • addConfiguration

        public boolean addConfiguration​(org.guvnor.structure.server.config.ConfigGroup configGroup)
        Specified by:
        addConfiguration in interface org.guvnor.structure.server.config.ConfigurationService
        Overrides:
        addConfiguration in class org.guvnor.structure.backend.config.ConfigurationServiceImpl
      • updateConfiguration

        public boolean updateConfiguration​(org.guvnor.structure.server.config.ConfigGroup configGroup)
        Specified by:
        updateConfiguration in interface org.guvnor.structure.server.config.ConfigurationService
        Overrides:
        updateConfiguration in class org.guvnor.structure.backend.config.ConfigurationServiceImpl
      • removeConfiguration

        public boolean removeConfiguration​(org.guvnor.structure.server.config.ConfigGroup configGroup)
        Specified by:
        removeConfiguration in interface org.guvnor.structure.server.config.ConfigurationService
        Overrides:
        removeConfiguration in class org.guvnor.structure.backend.config.ConfigurationServiceImpl