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.ContentStoreServicestatic final Stringstatic final Stringprotected StudioConfigurationstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionContextManagerImpl(StudioConfiguration studioConfiguration, org.craftercms.core.service.ContentStoreService contentStoreService) -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroyContext(String siteId) Destroys the context for the given siteorg.craftercms.core.service.ContextgetContext(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:ContextManagerReturns the context for the given site, creating it if needed- Specified by:
getContextin interfaceContextManager- Parameters:
siteId- the id of the site- Returns:
- the context
-
destroyContext
Description copied from interface:ContextManagerDestroys the context for the given site- Specified by:
destroyContextin interfaceContextManager- Parameters:
siteId- the id of the site
-