@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(IOService ioService,
SessionInfo sessionInfo,
PreferenceScopeTypes scopeTypes,
PreferenceScopeFactory scopeFactory,
ObjectStorage objectStorage,
SpacesAPI spaces,
javax.enterprise.event.Event<PreferenceUpdatedEvent> preferenceUpdatedEvent) |
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") IOService ioService, SessionInfo sessionInfo, PreferenceScopeTypes scopeTypes, PreferenceScopeFactory scopeFactory, ObjectStorage objectStorage, SpacesAPI spaces, javax.enterprise.event.Event<PreferenceUpdatedEvent> preferenceUpdatedEvent)
@PostConstruct public void init()
public boolean exists(PreferenceScope preferenceScope, String key)
exists
in interface PreferenceStorage
public boolean exists(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo, String key)
exists
in interface PreferenceStorage
public <T> T read(PreferenceScope preferenceScope, String key)
read
in interface PreferenceStorage
public <T> T read(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo, String key)
read
in interface PreferenceStorage
public <T> PreferenceScopedValue<T> readWithScope(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo, String key)
readWithScope
in interface PreferenceStorage
public void write(PreferenceScope preferenceScope, String key, Object value)
write
in interface PreferenceStorage
public void delete(PreferenceScope preferenceScope, String key)
delete
in interface PreferenceStorage
public Collection<String> allKeys(PreferenceScope scope)
allKeys
in interface PreferenceStorage
public Collection<String> allKeys(List<PreferenceScope> scopes)
allKeys
in interface PreferenceStorage
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.