Class GlobalExperimentalFeaturesStorageImpl
- java.lang.Object
-
- org.uberfire.experimental.service.storage.scoped.impl.AbstractScopedExperimentalFeaturesStorage
-
- org.uberfire.experimental.service.storage.scoped.impl.GlobalExperimentalFeaturesStorageImpl
-
- All Implemented Interfaces:
ExperimentalFeaturesStorage,ScopedExperimentalFeaturesStorage
@Dependent public class GlobalExperimentalFeaturesStorageImpl extends AbstractScopedExperimentalFeaturesStorage
-
-
Field Summary
Fields Modifier and Type Field Description static StringGLOBAL_STORAGE_PATH-
Fields inherited from class org.uberfire.experimental.service.storage.scoped.impl.AbstractScopedExperimentalFeaturesStorage
defRegistry, fileSystem, ioService, sessionInfo
-
-
Constructor Summary
Constructors Constructor Description GlobalExperimentalFeaturesStorageImpl(org.uberfire.rpc.SessionInfo sessionInfo, org.uberfire.io.IOService ioService, org.uberfire.experimental.service.definition.ExperimentalFeatureDefRegistry defRegistry, javax.enterprise.event.Event<org.uberfire.experimental.service.events.PortableExperimentalFeatureModifiedEvent> event)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<org.uberfire.experimental.service.registry.impl.ExperimentalFeatureImpl>getFeatures()ExperimentalStorageScopegetScope()StringgetStoragePath()protected Collection<org.uberfire.experimental.service.definition.ExperimentalFeatureDefinition>getSupportedDefinitions()voidinit(org.uberfire.java.nio.file.FileSystem fileSystem)protected voidloadGlobalFeatures()protected org.slf4j.Loggerlog()protected voidmaybeNotifyFeatureUpdate(org.uberfire.experimental.service.registry.impl.ExperimentalFeatureImpl feature)-
Methods inherited from class org.uberfire.experimental.service.storage.scoped.impl.AbstractScopedExperimentalFeaturesStorage
doStoreFeatures, readFeatures, store, storeFeatures
-
-
-
-
Field Detail
-
GLOBAL_STORAGE_PATH
public static final String GLOBAL_STORAGE_PATH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GlobalExperimentalFeaturesStorageImpl
@Inject public GlobalExperimentalFeaturesStorageImpl(org.uberfire.rpc.SessionInfo sessionInfo, @Named("configIO") org.uberfire.io.IOService ioService, org.uberfire.experimental.service.definition.ExperimentalFeatureDefRegistry defRegistry, javax.enterprise.event.Event<org.uberfire.experimental.service.events.PortableExperimentalFeatureModifiedEvent> event)
-
-
Method Detail
-
init
public void init(org.uberfire.java.nio.file.FileSystem fileSystem)
- Specified by:
initin interfaceScopedExperimentalFeaturesStorage- Overrides:
initin classAbstractScopedExperimentalFeaturesStorage
-
loadGlobalFeatures
protected void loadGlobalFeatures()
-
getSupportedDefinitions
protected Collection<org.uberfire.experimental.service.definition.ExperimentalFeatureDefinition> getSupportedDefinitions()
- Specified by:
getSupportedDefinitionsin classAbstractScopedExperimentalFeaturesStorage
-
getFeatures
public Collection<org.uberfire.experimental.service.registry.impl.ExperimentalFeatureImpl> getFeatures()
-
getStoragePath
public String getStoragePath()
- Specified by:
getStoragePathin classAbstractScopedExperimentalFeaturesStorage
-
log
protected org.slf4j.Logger log()
- Specified by:
login classAbstractScopedExperimentalFeaturesStorage
-
maybeNotifyFeatureUpdate
protected void maybeNotifyFeatureUpdate(org.uberfire.experimental.service.registry.impl.ExperimentalFeatureImpl feature)
- Overrides:
maybeNotifyFeatureUpdatein classAbstractScopedExperimentalFeaturesStorage
-
getScope
public ExperimentalStorageScope getScope()
-
-