Class SolrfacetsearchManager

All Implemented Interfaces:
ItemLifecycleListener, Serializable

public class SolrfacetsearchManager extends GeneratedSolrfacetsearchManager
This is the extension manager of the Solrfacetsearch extension.
See Also:
  • Constructor Details

    • SolrfacetsearchManager

      public SolrfacetsearchManager()
      Never call the constructor of any manager directly, call getInstance() You can place your business logic here - like registering a jalo session listener. Each manager is created once for each tenant.
  • Method Details

    • getInstance

      public static SolrfacetsearchManager getInstance()
      Get the valid instance of this manager.
      Returns:
      the current instance of this manager
    • init

      public void init()
      Use this method to do some basic work only ONCE in the lifetime of a tenant resp. "deployment". This method is called after manager creation (for example within startup of a tenant). Note that if you have more than one tenant you have a manager instance for each tenant.
      Overrides:
      init in class Manager
    • destroy

      public void destroy()
      Use this method as a callback when the manager instance is being destroyed (this happens before system initialization, at redeployment or if you shutdown your VM). Note that if you have more than one tenant you have a manager instance for each tenant.
      Overrides:
      destroy in class Manager
    • createEssentialData

      public void createEssentialData(Map<String,String> params, JspContext jspc)
      Implement this method to create initial objects. This method will be called by system creator during initialization and system update. Be sure that this method can be called repeatedly. An example usage of this method is to create required cronjobs or modifying the type system (setting e.g some default values)
      Overrides:
      createEssentialData in class Extension
      Parameters:
      params - the parameters provided by user for creation of objects for the extension
      jspc - the jsp context; you can use it to write progress information to the jsp page during creation
    • createProjectData

      public void createProjectData(Map<String,String> params, JspContext jspc)
      Implement this method to create data that is used in your project. This method will be called during the system initialization. An example use is to import initial data like currencies or languages for your project from an csv file.
      Overrides:
      createProjectData in class Extension
      Parameters:
      params - the parameters provided by user for creation of objects for the extension
      jspc - the jsp context; you can use it to write progress information to the jsp page during creation
    • getSolrFacetConfig

      public SolrFacetSearchConfig getSolrFacetConfig(String name)
    • createSolrIndexerCronJob

      public SolrIndexerCronJob createSolrIndexerCronJob(SolrFacetSearchConfig solrFacetSearchConfig, EnumerationValue solrIndexerOperation) throws JaloTypeException
      Throws:
      JaloTypeException
    • createSolrIndexerHotUpdateCronJob

      public SolrIndexerHotUpdateCronJob createSolrIndexerHotUpdateCronJob(SolrFacetSearchConfig solrFacetSearchConfig, EnumerationValue solrIndexerOperation, String indexedType, Collection<Item> items) throws JaloTypeException
      Throws:
      JaloTypeException
    • createSolrIndexerCronJob

      public SolrIndexerCronJob createSolrIndexerCronJob(String code, SolrFacetSearchConfig solrFacetSearchConfig, EnumerationValue solrIndexerOperation) throws JaloTypeException
      Throws:
      JaloTypeException
    • createSolrIndexerHotUpdateCronJob

      public SolrIndexerHotUpdateCronJob createSolrIndexerHotUpdateCronJob(String code, SolrFacetSearchConfig solrFacetSearchConfig, EnumerationValue solrIndexerOperation, String indexedType, Collection<Item> items) throws JaloTypeException
      Throws:
      JaloTypeException
    • getSolrIndexerJob

      public ServicelayerJob getSolrIndexerJob()
    • getSolrIndexerJob

      public ServicelayerJob getSolrIndexerJob(boolean hotUpdate)
      Parameters:
      hotUpdate - - set to true to obtain hot-update indexer job
      Returns:
      ServiceLayerJob