Class ContextManagerImpl

    • Field Detail

      • TAG

        public static final String TAG
      • contentStoreService

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

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

      • ContextManagerImpl

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

      • 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