Class ContextManagerImpl

java.lang.Object
org.craftercms.studio.impl.v2.core.ContextManagerImpl
All Implemented Interfaces:
ContextManager

public class ContextManagerImpl extends Object implements ContextManager
Default implementation of ContextManager
Since:
4.0.0
Author:
joseross
  • Field Details

    • SITE_NAME_CONFIG_VARIABLE

      public static final String SITE_NAME_CONFIG_VARIABLE
      See Also:
    • SITE_ID_CONFIG_VARIABLE

      public static final String SITE_ID_CONFIG_VARIABLE
      See Also:
    • TAG

      public static final String TAG
    • studioConfiguration

      protected StudioConfiguration studioConfiguration
    • contentStoreService

      protected org.craftercms.core.service.ContentStoreService contentStoreService
    • contexts

      protected Map<String,org.craftercms.core.service.Context> contexts
  • Constructor Details

    • ContextManagerImpl

      @ConstructorProperties({"studioConfiguration","contentStoreService"}) public ContextManagerImpl(StudioConfiguration studioConfiguration, org.craftercms.core.service.ContentStoreService contentStoreService)
  • Method Details

    • getContext

      public org.craftercms.core.service.Context getContext(String siteId)
      Description copied from interface: ContextManager
      Returns the context for the given site, creating it if needed
      Specified by:
      getContext in interface ContextManager
      Parameters:
      siteId - the id of the site
      Returns:
      the context
    • destroyContext

      public void destroyContext(String siteId)
      Description copied from interface: ContextManager
      Destroys the context for the given site
      Specified by:
      destroyContext in interface ContextManager
      Parameters:
      siteId - the id of the site