Class AbstractScopedExperimentalFeaturesStorage
- java.lang.Object
-
- org.uberfire.experimental.service.storage.scoped.impl.AbstractScopedExperimentalFeaturesStorage
-
- All Implemented Interfaces:
ExperimentalFeaturesStorage,ScopedExperimentalFeaturesStorage
- Direct Known Subclasses:
GlobalExperimentalFeaturesStorageImpl,UserExperimentalFeaturesStorageImpl
public abstract class AbstractScopedExperimentalFeaturesStorage extends Object implements ScopedExperimentalFeaturesStorage
-
-
Field Summary
Fields Modifier and Type Field Description protected org.uberfire.experimental.service.definition.ExperimentalFeatureDefRegistrydefRegistryprotected org.uberfire.java.nio.file.FileSystemfileSystemprotected org.uberfire.io.IOServiceioServiceprotected org.uberfire.rpc.SessionInfosessionInfo
-
Constructor Summary
Constructors Constructor Description AbstractScopedExperimentalFeaturesStorage(org.uberfire.rpc.SessionInfo sessionInfo, org.uberfire.io.IOService ioService, org.uberfire.experimental.service.definition.ExperimentalFeatureDefRegistry defRegistry)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddoStoreFeatures(Collection<org.uberfire.experimental.service.registry.impl.ExperimentalFeatureImpl> features, Runnable callback)abstract StringgetStoragePath()protected abstract Collection<org.uberfire.experimental.service.definition.ExperimentalFeatureDefinition>getSupportedDefinitions()voidinit(org.uberfire.java.nio.file.FileSystem fileSystem)protected abstract org.slf4j.Loggerlog()protected voidmaybeNotifyFeatureUpdate(org.uberfire.experimental.service.registry.impl.ExperimentalFeatureImpl feature)protected List<org.uberfire.experimental.service.registry.impl.ExperimentalFeatureImpl>readFeatures()voidstore(org.uberfire.experimental.service.registry.impl.ExperimentalFeatureImpl feature)voidstoreFeatures(Collection<org.uberfire.experimental.service.registry.impl.ExperimentalFeatureImpl> features)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.uberfire.experimental.service.storage.ExperimentalFeaturesStorage
getFeatures
-
Methods inherited from interface org.uberfire.experimental.service.storage.scoped.ScopedExperimentalFeaturesStorage
getScope
-
-
-
-
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
-
-
Method Detail
-
init
public void init(org.uberfire.java.nio.file.FileSystem fileSystem)
- Specified by:
initin interfaceScopedExperimentalFeaturesStorage
-
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:
storein interfaceExperimentalFeaturesStorage
-
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)
-
-