Package org.xwiki.context.concurrent
Interface ContextStoreManager
-
@Role public interface ContextStoreManager
Entry point to manipulate allContextStore
s.- Since:
- 10.10RC1
- Version:
- $Id: 0ef8fd569d2838c3831ee627edb1868ed33c8b01 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<String>
getSupportedEntries()
void
restore(Map<String,Serializable> contextStore)
Inject in the current context data found in the passed map.Map<String,Serializable>
save(Collection<String> entries)
Save only the passed context entries in the map.
-
-
-
Method Detail
-
getSupportedEntries
Collection<String> getSupportedEntries() throws ComponentLookupException
- Returns:
- the names of the context entries supported by the various
ContextStore
components - Throws:
ComponentLookupException
- when failing to getContextStore
components
-
save
Map<String,Serializable> save(Collection<String> entries) throws ComponentLookupException
Save only the passed context entries in the map.- Parameters:
entries
- the list of context entries to take into account- Returns:
- the saved context entries
- Throws:
ComponentLookupException
- when failing to getContextStore
components
-
restore
void restore(Map<String,Serializable> contextStore) throws ComponentLookupException
Inject in the current context data found in the passed map.- Parameters:
contextStore
- the stored context data- Throws:
ComponentLookupException
- when failing to getContextStore
components
-
-