Class PublisherProcessor
java.lang.Object
com.netscape.cmscore.ldap.PublisherProcessor
- All Implemented Interfaces:
IXcertPublisherProcessor
Controls the publishing process from the top level. Maintains
a collection of Publishers , Mappers, and Publish Rules.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic org.slf4j.Loggerprotected PublishingConfigprotected Stringprotected booleanprotected IConfigStoreprotected LdapConnModulestatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected IRequestListener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetActiveMapperInstance(String insName) Returns ILdapMapper instance that is currently active.getActivePublisherInstance(String insName) Returns ILdapPublisher instance that is currently active.getId()Returns LdapConnModule belonging to this Processor.getMapperDefaultParams(String implName) Returns mapper initial default parameters.getMapperInstance(String insName) Returns ILdapMapper instance based on name of MapperProxy.getMapperInstanceParams(String insName) Returns mapper current instance parameters.Returns Hashtable of rule mapper instances.Returns Hashtable of mapper plugins.getPublisherDefaultParams(String implName) Returns publisher initial default parameters.getPublisherInstance(String insName) Returns ILdapPublisher instance.getPublisherInstanceParams(String insName) Returns Vector of PublisherIntance's current instance parameters.Returns Hashtable of rule publisher instances.Returns Hashtable of publisher plugins.getRuleDefaultParams(String implName) Returns Vector of RulePlugin's initial default parameters.getRuleInstanceParams(String implName) Returns Vector of RulePlugin's current instance parameters.Returns Hashtable of rule instances.Returns Hashtable of rule plugins.Returns list of rules based on publishing type.Returns list of rules based on publishing type and publishing request.voidinit(PublishingConfig config) booleanisMapperInstanceEnable(String insName) Returns true if MapperInstance is enabled.booleanisPublisherInstanceEnable(String insName) Returns true publisher instance is currently enabled.booleanReturn true if Ldap is enabled.voidvoidSets the LdapConnModule belonging to this Processor.voidsetRequestListener(IRequestListener requestListener) voidshutdown()voidstartup()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.netscape.certsrv.publish.IXcertPublisherProcessor
publishXCertPair
-
Field Details
-
logger
public static org.slf4j.Logger logger -
PROP_LDAP_PUBLISH_SUBSTORE
- See Also:
-
PROP_QUEUE_PUBLISH_SUBSTORE
- See Also:
-
PROP_CLASS
- See Also:
-
PROP_IMPL
- See Also:
-
PROP_PLUGIN
- See Also:
-
PROP_INSTANCE
- See Also:
-
PROP_PREDICATE
- See Also:
-
PROP_ENABLE
- See Also:
-
PROP_LDAP
- See Also:
-
PROP_MAPPER
- See Also:
-
PROP_PUBLISHER
- See Also:
-
PROP_TYPE
- See Also:
-
mPublisherPlugins
-
mPublisherInsts
-
mMapperPlugins
-
mMapperInsts
-
mRulePlugins
-
mRuleInsts
-
mLdapConnModule
-
mConfig
-
mLdapConfig
-
mId
-
requestListener
-
mInited
protected boolean mInited
-
-
Constructor Details
-
PublisherProcessor
-
-
Method Details
-
getId
-
setId
-
getConfigStore
-
getRequestListener
-
setRequestListener
-
init
- Throws:
EBaseException
-
getLdapConnModule
Returns LdapConnModule belonging to this Processor.- Returns:
- LdapConnModule.
-
setLdapConnModule
Sets the LdapConnModule belonging to this Processor.- Parameters:
m- ILdapConnModule.
-
startup
- Throws:
EBaseException
-
shutdown
public void shutdown() -
getRulePlugins
Returns Hashtable of rule plugins. -
getRuleInsts
-
getMapperPlugins
Returns Hashtable of mapper plugins. -
getPublisherPlugins
Returns Hashtable of publisher plugins. -
getMapperInsts
Returns Hashtable of rule mapper instances. -
getPublisherInsts
Returns Hashtable of rule publisher instances. -
getRules
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
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
Returns mapper initial default parameters.- Parameters:
implName- name of MapperPlugin.- Throws:
ELdapException
-
getMapperInstanceParams
Returns mapper current instance parameters.- Parameters:
insName- name of MapperProxy.- Throws:
ELdapException- failed due to Ldap error.
-
getPublisherDefaultParams
Returns publisher initial default parameters.- Parameters:
implName- name of PublisherPlugin.- Throws:
ELdapException- failed due to Ldap error.
-
isMapperInstanceEnable
Returns true if MapperInstance is enabled.- Parameters:
insName- name of MapperProxy.- Returns:
- true if enabled. false if disabled.
-
getActiveMapperInstance
Returns ILdapMapper instance that is currently active.- Parameters:
insName- name of MapperProxy.- Returns:
- instance of ILdapMapper.
-
getMapperInstance
Returns ILdapMapper instance based on name of MapperProxy.- Parameters:
insName- name of MapperProxy.- Returns:
- instance of ILdapMapper.
-
isPublisherInstanceEnable
Returns true publisher instance is currently enabled.- Parameters:
insName- name of PublisherProxy.- Returns:
- true if enabled.
-
getActivePublisherInstance
Returns ILdapPublisher instance that is currently active.- Parameters:
insName- name of PublisherProxy.- Returns:
- instance of ILdapPublisher.
-
getPublisherInstance
Returns ILdapPublisher instance.- Parameters:
insName- name of PublisherProxy.- Returns:
- instance of ILdapPublisher.
-
getPublisherInstanceParams
Returns Vector of PublisherIntance's current instance parameters.- Parameters:
insName- name of PublisherProxy.- Returns:
- Vector of current instance parameters.
- Throws:
ELdapException
-
getRuleDefaultParams
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
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.
-