@ApplicationScoped public class PreferenceStorageImpl extends Object implements PreferenceStorage
| Modifier and Type | Field and Description |
|---|---|
static String |
FILE_FORMAT |
static int |
FILE_FORMAT_SIZE |
| Modifier | Constructor and Description |
|---|---|
protected |
PreferenceStorageImpl() |
|
PreferenceStorageImpl(org.uberfire.io.IOService ioService,
SessionInfo sessionInfo,
PreferenceScopeTypes scopeTypes,
PreferenceScopeFactory scopeFactory,
ObjectStorage objectStorage) |
| Modifier and Type | Method and Description |
|---|---|
Collection<String> |
allKeys(List<PreferenceScope> scopes) |
Collection<String> |
allKeys(PreferenceScope scope) |
void |
delete(PreferenceScope preferenceScope,
String key) |
boolean |
exists(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo,
String key) |
boolean |
exists(PreferenceScope preferenceScope,
String key) |
void |
init() |
<T> T |
read(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo,
String key) |
<T> T |
read(PreferenceScope preferenceScope,
String key) |
<T> PreferenceScopedValue<T> |
readWithScope(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo,
String key) |
void |
write(PreferenceScope preferenceScope,
String key,
Object value) |
public static final String FILE_FORMAT
public static final int FILE_FORMAT_SIZE
protected PreferenceStorageImpl()
@Inject
public PreferenceStorageImpl(@Named(value="ioStrategy")
org.uberfire.io.IOService ioService,
SessionInfo sessionInfo,
PreferenceScopeTypes scopeTypes,
PreferenceScopeFactory scopeFactory,
ObjectStorage objectStorage)
@PostConstruct public void init()
public boolean exists(PreferenceScope preferenceScope, String key)
exists in interface PreferenceStoragepublic boolean exists(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo, String key)
exists in interface PreferenceStoragepublic <T> T read(PreferenceScope preferenceScope, String key)
read in interface PreferenceStoragepublic <T> T read(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo, String key)
read in interface PreferenceStoragepublic <T> PreferenceScopedValue<T> readWithScope(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo, String key)
readWithScope in interface PreferenceStoragepublic void write(PreferenceScope preferenceScope, String key, Object value)
write in interface PreferenceStoragepublic void delete(PreferenceScope preferenceScope, String key)
delete in interface PreferenceStoragepublic Collection<String> allKeys(PreferenceScope scope)
allKeys in interface PreferenceStoragepublic Collection<String> allKeys(List<PreferenceScope> scopes)
allKeys in interface PreferenceStorageCopyright © 2012–2017 JBoss by Red Hat. All rights reserved.