Class ConfigurationServiceImpl

    • Field Detail

      • systemRepository

        protected org.guvnor.structure.repositories.Repository systemRepository
      • identity

        protected org.jboss.errai.security.shared.api.identity.User identity
      • configGroupsByTypeWithoutNamespace

        protected final Map<org.guvnor.structure.server.config.ConfigType,​List<org.guvnor.structure.server.config.ConfigGroup>> configGroupsByTypeWithoutNamespace
      • configGroupsByTypeWithNamespace

        protected final Map<org.guvnor.structure.server.config.ConfigType,​Map<String,​List<org.guvnor.structure.server.config.ConfigGroup>>> configGroupsByTypeWithNamespace
      • localLastModifiedValue

        protected AtomicLong localLastModifiedValue
      • ioService

        protected org.uberfire.io.IOService ioService
      • repoChangedEvent

        protected javax.enterprise.event.Event<org.guvnor.structure.config.SystemRepositoryChangedEvent> repoChangedEvent
      • spaceChangedEvent

        protected javax.enterprise.event.Event<org.guvnor.structure.config.SystemRepositoryChangedEvent> spaceChangedEvent
      • changedEvent

        protected javax.enterprise.event.Event<org.guvnor.structure.config.SystemRepositoryChangedEvent> changedEvent
      • configUpdates

        protected org.guvnor.structure.backend.config.ConfigurationServiceImpl.CheckConfigurationUpdates configUpdates
      • watchService

        protected org.uberfire.java.nio.file.WatchService watchService
      • fs

        protected org.uberfire.java.nio.file.FileSystem fs
    • Constructor Detail

      • ConfigurationServiceImpl

        public ConfigurationServiceImpl()
      • ConfigurationServiceImpl

        @Inject
        public ConfigurationServiceImpl​(@Named("system")
                                        org.guvnor.structure.repositories.Repository systemRepository,
                                        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> spaceChangedEvent,
                                        javax.enterprise.event.Event<org.guvnor.structure.config.SystemRepositoryChangedEvent> changedEvent,
                                        @Named("systemFS")
                                        org.uberfire.java.nio.file.FileSystem fs)
    • Method Detail

      • startBatch

        public void startBatch()
        Specified by:
        startBatch in interface org.guvnor.structure.server.config.ConfigurationService
      • endBatch

        public void endBatch()
        Specified by:
        endBatch in interface org.guvnor.structure.server.config.ConfigurationService
      • getConfiguration

        public List<org.guvnor.structure.server.config.ConfigGroup> getConfiguration​(org.guvnor.structure.server.config.ConfigType type)
        Specified by:
        getConfiguration in interface org.guvnor.structure.server.config.ConfigurationService
      • 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
      • 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
      • addConfiguration

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

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

        public boolean removeConfiguration​(org.guvnor.structure.server.config.ConfigGroup configGroup)
        Specified by:
        removeConfiguration in interface org.guvnor.structure.server.config.ConfigurationService
      • getIdentityName

        protected String getIdentityName()
      • getLastModified

        protected long getLastModified()
      • updateLastModified

        protected void updateLastModified()
      • cleanUpSystemRepository

        public boolean cleanUpSystemRepository()
        Specified by:
        cleanUpSystemRepository in interface org.guvnor.structure.server.config.ConfigurationService