Class MigrationConfigurationServiceImpl
- java.lang.Object
-
- org.guvnor.structure.backend.config.ConfigurationServiceImpl
-
- org.kie.workbench.common.project.config.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
-
-
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 booleanaddConfiguration(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)booleanremoveConfiguration(org.guvnor.structure.server.config.ConfigGroup configGroup)booleanupdateConfiguration(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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
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:
getConfigurationin interfaceorg.guvnor.structure.server.config.ConfigurationService- Overrides:
getConfigurationin classorg.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:
getConfigurationin interfaceorg.guvnor.structure.server.config.ConfigurationService- Overrides:
getConfigurationin classorg.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:
getConfigurationByNamespacein interfaceorg.guvnor.structure.server.config.ConfigurationService- Overrides:
getConfigurationByNamespacein classorg.guvnor.structure.backend.config.ConfigurationServiceImpl
-
addConfiguration
public boolean addConfiguration(org.guvnor.structure.server.config.ConfigGroup configGroup)
- Specified by:
addConfigurationin interfaceorg.guvnor.structure.server.config.ConfigurationService- Overrides:
addConfigurationin classorg.guvnor.structure.backend.config.ConfigurationServiceImpl
-
updateConfiguration
public boolean updateConfiguration(org.guvnor.structure.server.config.ConfigGroup configGroup)
- Specified by:
updateConfigurationin interfaceorg.guvnor.structure.server.config.ConfigurationService- Overrides:
updateConfigurationin classorg.guvnor.structure.backend.config.ConfigurationServiceImpl
-
removeConfiguration
public boolean removeConfiguration(org.guvnor.structure.server.config.ConfigGroup configGroup)
- Specified by:
removeConfigurationin interfaceorg.guvnor.structure.server.config.ConfigurationService- Overrides:
removeConfigurationin classorg.guvnor.structure.backend.config.ConfigurationServiceImpl
-
-