Class PublisherProcessor

    • Field Detail

      • logger

        public static org.slf4j.Logger logger
      • mPublisherPlugins

        public java.util.Hashtable<java.lang.String,​PublisherPlugin> mPublisherPlugins
      • mPublisherInsts

        public java.util.Hashtable<java.lang.String,​PublisherProxy> mPublisherInsts
      • mMapperPlugins

        public java.util.Hashtable<java.lang.String,​MapperPlugin> mMapperPlugins
      • mMapperInsts

        public java.util.Hashtable<java.lang.String,​MapperProxy> mMapperInsts
      • mRulePlugins

        public java.util.Hashtable<java.lang.String,​RulePlugin> mRulePlugins
      • mRuleInsts

        public java.util.Hashtable<java.lang.String,​ILdapRule> mRuleInsts
      • mLdapConnModule

        protected LdapConnModule mLdapConnModule
        protected PublishRuleSet mRuleSet = null;
    • Constructor Detail

      • PublisherProcessor

        public PublisherProcessor​(java.lang.String id)
    • Method Detail

      • getId

        public java.lang.String getId()
      • setId

        public void setId​(java.lang.String id)
      • shutdown

        public void shutdown()
      • getRules

        public java.util.Enumeration<ILdapRule> getRules​(java.lang.String publishingType)
        Description copied from interface: IPublisherProcessor
        Returns list of rules based on publishing type.
        Specified by:
        getRules in interface IPublisherProcessor
        Parameters:
        publishingType - Type for which to retrieve rule list.
      • getRules

        public java.util.Enumeration<ILdapRule> getRules​(java.lang.String publishingType,
                                                         IRequest req)
        Description copied from interface: IPublisherProcessor
        Returns list of rules based on publishing type and publishing request.
        Specified by:
        getRules in interface IPublisherProcessor
        Parameters:
        publishingType - Type for which to retrieve rule list.
        req - Corresponding publish request.
      • getMapperDefaultParams

        public java.util.Vector<java.lang.String> getMapperDefaultParams​(java.lang.String implName)
                                                                  throws ELdapException
        public PublishRuleSet getPublishRuleSet() { return mRuleSet; }
        Specified by:
        getMapperDefaultParams in interface IPublisherProcessor
        Parameters:
        implName - name of MapperPlugin.
        Throws:
        ELdapException
      • isMapperInstanceEnable

        public boolean isMapperInstanceEnable​(java.lang.String insName)
        Description copied from interface: IPublisherProcessor
        Returns true if MapperInstance is enabled.
        Specified by:
        isMapperInstanceEnable in interface IPublisherProcessor
        Parameters:
        insName - name of MapperProxy.
        Returns:
        true if enabled. false if disabled.
      • getActiveMapperInstance

        public ILdapMapper getActiveMapperInstance​(java.lang.String insName)
        Description copied from interface: IPublisherProcessor
        Returns ILdapMapper instance that is currently active.
        Specified by:
        getActiveMapperInstance in interface IPublisherProcessor
        Parameters:
        insName - name of MapperProxy.
        Returns:
        instance of ILdapMapper.
      • getMapperInstance

        public ILdapMapper getMapperInstance​(java.lang.String insName)
        Description copied from interface: IPublisherProcessor
        Returns ILdapMapper instance based on name of MapperProxy.
        Specified by:
        getMapperInstance in interface IPublisherProcessor
        Parameters:
        insName - name of MapperProxy.
        Returns:
        instance of ILdapMapper.
      • isPublisherInstanceEnable

        public boolean isPublisherInstanceEnable​(java.lang.String insName)
        Description copied from interface: IPublisherProcessor
        Returns true publisher instance is currently enabled.
        Specified by:
        isPublisherInstanceEnable in interface IPublisherProcessor
        Parameters:
        insName - name of PublisherProxy.
        Returns:
        true if enabled.
      • getPublisherInstanceParams

        public java.util.Vector<java.lang.String> getPublisherInstanceParams​(java.lang.String insName)
                                                                      throws ELdapException
        Description copied from interface: IPublisherProcessor
        Returns Vector of PublisherIntance's current instance parameters.
        Specified by:
        getPublisherInstanceParams in interface IPublisherProcessor
        Parameters:
        insName - name of PublisherProxy.
        Returns:
        Vector of current instance parameters.
        Throws:
        ELdapException
      • getRuleDefaultParams

        public java.util.Vector<java.lang.String> getRuleDefaultParams​(java.lang.String implName)
                                                                throws ELdapException
        Description copied from interface: IPublisherProcessor
        Returns Vector of RulePlugin's initial default parameters.
        Specified by:
        getRuleDefaultParams in interface IPublisherProcessor
        Parameters:
        implName - name of RulePlugin.
        Returns:
        Vector of initial default parameters.
        Throws:
        ELdapException - failed due to Ldap error.
      • getRuleInstanceParams

        public java.util.Vector<java.lang.String> getRuleInstanceParams​(java.lang.String implName)
                                                                 throws ELdapException
        Description copied from interface: IPublisherProcessor
        Returns Vector of RulePlugin's current instance parameters.
        Specified by:
        getRuleInstanceParams in interface IPublisherProcessor
        Parameters:
        implName - name of RulePlugin.
        Returns:
        Vector of current instance parameters.
        Throws:
        ELdapException - failed due to Ldap error.
      • setPublishedFlag

        public void setPublishedFlag​(java.math.BigInteger serialNo,
                                     boolean published)
        set published flag - true when published, false when unpublished. not exist means not published.
        Specified by:
        setPublishedFlag in interface IPublisherProcessor
        Parameters:
        serialNo - serial number of publishable object.
        published - true for published, false for not.
      • publishCACert

        public void publishCACert​(java.security.cert.X509Certificate cert)
                           throws ELdapException
        Publish ca cert, UpdateDir.java, jobs, request listeners
        Specified by:
        publishCACert in interface IPublisherProcessor
        Parameters:
        cert - X509 certificate to be published.
        Throws:
        ELdapException - publish failed due to Ldap error.
      • publishCert

        public void publishCert​(java.security.cert.X509Certificate cert,
                                IRequest req)
                         throws ELdapException
        Publishs regular user certificate based on the criteria set in the request.
        Specified by:
        publishCert in interface IPublisherProcessor
        Parameters:
        cert - X509 certificate to be published.
        req - request which provides the criteria
        Throws:
        ELdapException - publish failed due to Ldap error.
      • unpublishCert

        public void unpublishCert​(java.security.cert.X509Certificate cert,
                                  IRequest req)
                           throws ELdapException
        Unpublish user certificate. This is used by UnpublishExpiredJob.
        Specified by:
        unpublishCert in interface IPublisherProcessor
        Parameters:
        cert - X509 certificate to be unpublished.
        req - request which provides the criteria
        Throws:
        ELdapException - unpublish failed due to Ldap error.
      • publishCRL

        public void publishCRL​(org.mozilla.jss.netscape.security.x509.X509CRLImpl crl,
                               java.lang.String crlIssuingPointId)
                        throws ELdapException
        publishes a crl by mapping the issuer name in the crl to an entry and publishing it there. entry must be a certificate authority. Note that this is used by cmsgateway/cert/UpdateDir.java
        Specified by:
        publishCRL in interface IPublisherProcessor
        Parameters:
        crl - Certificate Revocation List
        crlIssuingPointId - name of the issuing point.
        Throws:
        ELdapException
      • publishCRL

        public void publishCRL​(java.lang.String dn,
                               java.security.cert.X509CRL crl)
                        throws ELdapException
        publishes a crl by mapping the issuer name in the crl to an entry and publishing it there. entry must be a certificate authority.
        Specified by:
        publishCRL in interface IPublisherProcessor
        Parameters:
        dn - Distinguished name to publish.
        crl - Certificate Revocation List
        Throws:
        ELdapException - publish failed due to Ldap error.
      • isClone

        public boolean isClone()