Class AbstractContentStoreMapProvider

    • Constructor Detail

      • AbstractContentStoreMapProvider

        public AbstractContentStoreMapProvider()
    • Method Detail

      • setUpStoreMap

        protected abstract void setUpStoreMap()
      • onBootstrap

        protected void onBootstrap​(org.springframework.context.ApplicationEvent event)
        set up the map on startup. see setUpStoreMap().
        Specified by:
        onBootstrap in class org.springframework.extensions.surf.util.AbstractLifecycleBean
      • onShutdown

        protected void onShutdown​(org.springframework.context.ApplicationEvent event)
        Specified by:
        onShutdown in class org.springframework.extensions.surf.util.AbstractLifecycleBean
      • checkAndGetStore

        public ContentStore checkAndGetStore​(String storeName)
        Check that the given store name is in the list. Also check it's an instance of FileContentStore. If it's not, output a warning as non-file-based implementations have not been tested and may be unsupported.
        Specified by:
        checkAndGetStore in interface ContentStoreMapProvider
        Parameters:
        storeName - the store name to check
        Returns:
        the corresponding ContentStore
      • setContentStore

        public void setContentStore​(ContentStore contentStore)