Class PublisherProcessor

java.lang.Object
com.netscape.cmscore.ldap.PublisherProcessor
All Implemented Interfaces:
IXcertPublisherProcessor

public abstract class PublisherProcessor extends Object implements IXcertPublisherProcessor
Controls the publishing process from the top level. Maintains a collection of Publishers , Mappers, and Publish Rules.
  • Field Details

  • Constructor Details

    • PublisherProcessor

      public PublisherProcessor(String id)
  • Method Details

    • getId

      public String getId()
    • setId

      public void setId(String id)
    • getConfigStore

      public PublishingConfig getConfigStore()
    • getRequestListener

      public IRequestListener getRequestListener()
    • setRequestListener

      public void setRequestListener(IRequestListener requestListener)
    • init

      public void init(PublishingConfig config) throws EBaseException
      Throws:
      EBaseException
    • getLdapConnModule

      public ILdapConnModule getLdapConnModule()
      Returns LdapConnModule belonging to this Processor.
      Returns:
      LdapConnModule.
    • setLdapConnModule

      public void setLdapConnModule(ILdapConnModule m)
      Sets the LdapConnModule belonging to this Processor.
      Parameters:
      m - ILdapConnModule.
    • startup

      public void startup() throws EBaseException
      Throws:
      EBaseException
    • shutdown

      public void shutdown()
    • getRulePlugins

      public Hashtable<String,RulePlugin> getRulePlugins()
      Returns Hashtable of rule plugins.
    • getRuleInsts

      public Hashtable<String,LdapRule> getRuleInsts()
      Returns Hashtable of rule instances.
    • getMapperPlugins

      public Hashtable<String,MapperPlugin> getMapperPlugins()
      Returns Hashtable of mapper plugins.
    • getPublisherPlugins

      public Hashtable<String,PublisherPlugin> getPublisherPlugins()
      Returns Hashtable of publisher plugins.
    • getMapperInsts

      public Hashtable<String,MapperProxy> getMapperInsts()
      Returns Hashtable of rule mapper instances.
    • getPublisherInsts

      public Hashtable<String,PublisherProxy> getPublisherInsts()
      Returns Hashtable of rule publisher instances.
    • getRules

      public Enumeration<LdapRule> getRules(String publishingType)
      Returns list of rules based on publishing type. certType can be client,server,ca,crl,smime
      Parameters:
      publishingType - Type for which to retrieve rule list.
    • getRules

      public Enumeration<LdapRule> getRules(String publishingType, Request req)
      Returns list of rules based on publishing type and publishing request.
      Parameters:
      publishingType - Type for which to retrieve rule list.
      req - Corresponding publish request.
    • getMapperDefaultParams

      public Vector<String> getMapperDefaultParams(String implName) throws ELdapException
      Returns mapper initial default parameters.
      Parameters:
      implName - name of MapperPlugin.
      Throws:
      ELdapException
    • getMapperInstanceParams

      public Vector<String> getMapperInstanceParams(String insName) throws ELdapException
      Returns mapper current instance parameters.
      Parameters:
      insName - name of MapperProxy.
      Throws:
      ELdapException - failed due to Ldap error.
    • getPublisherDefaultParams

      public Vector<String> getPublisherDefaultParams(String implName) throws ELdapException
      Returns publisher initial default parameters.
      Parameters:
      implName - name of PublisherPlugin.
      Throws:
      ELdapException - failed due to Ldap error.
    • isMapperInstanceEnable

      public boolean isMapperInstanceEnable(String insName)
      Returns true if MapperInstance is enabled.
      Parameters:
      insName - name of MapperProxy.
      Returns:
      true if enabled. false if disabled.
    • getActiveMapperInstance

      public ILdapMapper getActiveMapperInstance(String insName)
      Returns ILdapMapper instance that is currently active.
      Parameters:
      insName - name of MapperProxy.
      Returns:
      instance of ILdapMapper.
    • getMapperInstance

      public ILdapMapper getMapperInstance(String insName)
      Returns ILdapMapper instance based on name of MapperProxy.
      Parameters:
      insName - name of MapperProxy.
      Returns:
      instance of ILdapMapper.
    • isPublisherInstanceEnable

      public boolean isPublisherInstanceEnable(String insName)
      Returns true publisher instance is currently enabled.
      Parameters:
      insName - name of PublisherProxy.
      Returns:
      true if enabled.
    • getActivePublisherInstance

      public ILdapPublisher getActivePublisherInstance(String insName)
      Returns ILdapPublisher instance that is currently active.
      Parameters:
      insName - name of PublisherProxy.
      Returns:
      instance of ILdapPublisher.
    • getPublisherInstance

      public ILdapPublisher getPublisherInstance(String insName)
      Returns ILdapPublisher instance.
      Parameters:
      insName - name of PublisherProxy.
      Returns:
      instance of ILdapPublisher.
    • getPublisherInstanceParams

      public Vector<String> getPublisherInstanceParams(String insName) throws ELdapException
      Returns Vector of PublisherIntance's current instance parameters.
      Parameters:
      insName - name of PublisherProxy.
      Returns:
      Vector of current instance parameters.
      Throws:
      ELdapException
    • getRuleDefaultParams

      public Vector<String> getRuleDefaultParams(String implName) throws ELdapException
      Returns Vector of RulePlugin's initial default parameters.
      Parameters:
      implName - name of RulePlugin.
      Returns:
      Vector of initial default parameters.
      Throws:
      ELdapException - failed due to Ldap error.
    • getRuleInstanceParams

      public Vector<String> getRuleInstanceParams(String implName) throws ELdapException
      Returns Vector of RulePlugin's current instance parameters.
      Parameters:
      implName - name of RulePlugin.
      Returns:
      Vector of current instance parameters.
      Throws:
      ELdapException - failed due to Ldap error.
    • ldapEnabled

      public boolean ldapEnabled()
      Return true if Ldap is enabled.
      Returns:
      true if Ldap is enabled,otherwise false.