Class AbstractScopedExperimentalFeaturesStorage

    • Field Detail

      • sessionInfo

        protected final org.uberfire.rpc.SessionInfo sessionInfo
      • defRegistry

        protected final org.uberfire.experimental.service.definition.ExperimentalFeatureDefRegistry defRegistry
      • ioService

        protected final org.uberfire.io.IOService ioService
      • fileSystem

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

      • AbstractScopedExperimentalFeaturesStorage

        public AbstractScopedExperimentalFeaturesStorage​(org.uberfire.rpc.SessionInfo sessionInfo,
                                                         org.uberfire.io.IOService ioService,
                                                         org.uberfire.experimental.service.definition.ExperimentalFeatureDefRegistry defRegistry)
    • Method Detail

      • getStoragePath

        public abstract String getStoragePath()
      • getSupportedDefinitions

        protected abstract Collection<org.uberfire.experimental.service.definition.ExperimentalFeatureDefinition> getSupportedDefinitions()
      • log

        protected abstract org.slf4j.Logger log()
      • readFeatures

        protected List<org.uberfire.experimental.service.registry.impl.ExperimentalFeatureImpl> readFeatures()
      • storeFeatures

        public void storeFeatures​(Collection<org.uberfire.experimental.service.registry.impl.ExperimentalFeatureImpl> features)
      • store

        public void store​(org.uberfire.experimental.service.registry.impl.ExperimentalFeatureImpl feature)
        Specified by:
        store in interface ExperimentalFeaturesStorage
      • doStoreFeatures

        public void doStoreFeatures​(Collection<org.uberfire.experimental.service.registry.impl.ExperimentalFeatureImpl> features,
                                    Runnable callback)
      • maybeNotifyFeatureUpdate

        protected void maybeNotifyFeatureUpdate​(org.uberfire.experimental.service.registry.impl.ExperimentalFeatureImpl feature)