Class ContextManagerImpl
java.lang.Object
org.craftercms.studio.impl.v2.core.ContextManagerImpl
- All Implemented Interfaces:
ContextManager
Default implementation of
ContextManager
- Since:
- 4.0.0
- Author:
- joseross
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.craftercms.core.service.ContentStoreService
static final String
static final String
protected StudioConfiguration
static final String
-
Constructor Summary
ConstructorsConstructorDescriptionContextManagerImpl
(StudioConfiguration studioConfiguration, org.craftercms.core.service.ContentStoreService contentStoreService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroyContext
(String siteId) Destroys the context for the given siteorg.craftercms.core.service.Context
getContext
(String siteId) Returns the context for the given site, creating it if needed
-
Field Details
-
SITE_NAME_CONFIG_VARIABLE
- See Also:
-
SITE_ID_CONFIG_VARIABLE
- See Also:
-
TAG
-
studioConfiguration
-
contentStoreService
protected org.craftercms.core.service.ContentStoreService contentStoreService -
contexts
-
-
Constructor Details
-
ContextManagerImpl
@ConstructorProperties({"studioConfiguration","contentStoreService"}) public ContextManagerImpl(StudioConfiguration studioConfiguration, org.craftercms.core.service.ContentStoreService contentStoreService)
-
-
Method Details
-
getContext
Description copied from interface:ContextManager
Returns the context for the given site, creating it if needed- Specified by:
getContext
in interfaceContextManager
- Parameters:
siteId
- the id of the site- Returns:
- the context
-
destroyContext
Description copied from interface:ContextManager
Destroys the context for the given site- Specified by:
destroyContext
in interfaceContextManager
- Parameters:
siteId
- the id of the site
-