public class LdapEnhancedMap extends java.lang.Object implements ILdapMapper, IExtendedPluginInfo
Modifier and Type | Field and Description |
---|---|
protected static int |
DEFAULT_ATTRNUM |
static java.lang.String |
DEFAULT_DNPATTERN |
protected java.lang.String[] |
mCertAttrs |
protected IConfigStore |
mConfig |
protected boolean |
mCreateEntry |
protected java.lang.String |
mDnPattern |
protected java.lang.String[] |
mLdapNames |
protected java.lang.String[] |
mLdapPatterns |
protected java.lang.String[] |
mLdapValues |
protected MapDNPattern |
mPattern |
protected com.netscape.cms.publish.mappers.AVAPattern[] |
mPatterns |
protected java.lang.String[] |
mReqAttrs |
protected static java.lang.String |
PROP_ATTR_NAME |
protected static java.lang.String |
PROP_ATTR_PATTERN |
protected static java.lang.String |
PROP_ATTRNUM |
protected static java.lang.String |
PROP_CREATE |
protected static java.lang.String |
PROP_DNPATTERN |
protected static java.lang.String |
PROP_OBJCLASS |
HELP_TEXT, HELP_TOKEN
Constructor and Description |
---|
LdapEnhancedMap()
Default constructor, initialization must follow.
|
Modifier and Type | Method and Description |
---|---|
IConfigStore |
getConfigStore()
implementation for extended
ILdapPlugin interface method
|
java.util.Vector |
getDefaultParams()
Returns the initial default parameters.
|
java.lang.String |
getDescription()
Returns the description of this mapper.
|
java.lang.String[] |
getExtendedPluginInfo(java.util.Locale locale)
This method returns an array of strings.
|
java.lang.String |
getImplName()
Returns implementation name.
|
java.util.Vector |
getInstanceParams()
Returns the current instance parameters.
|
void |
init(IConfigStore config)
for initializing from config store.
|
protected void |
init(java.lang.String dnPattern)
common initialization routine.
|
java.lang.String |
map(netscape.ldap.LDAPConnection conn,
IRequest req,
java.lang.Object obj)
Maps an X500 subject name to an LDAP entry.
|
java.lang.String |
map(netscape.ldap.LDAPConnection conn,
java.lang.Object obj)
Maps an X500 subject name to an LDAP entry.
|
protected MapDNPattern mPattern
protected java.lang.String[] mReqAttrs
protected java.lang.String[] mCertAttrs
protected java.lang.String[] mLdapValues
protected static final java.lang.String PROP_DNPATTERN
protected static final java.lang.String PROP_CREATE
protected static final java.lang.String PROP_OBJCLASS
protected static final java.lang.String PROP_ATTRNUM
protected static final java.lang.String PROP_ATTR_NAME
protected static final java.lang.String PROP_ATTR_PATTERN
protected java.lang.String mDnPattern
protected boolean mCreateEntry
protected java.lang.String[] mLdapNames
protected java.lang.String[] mLdapPatterns
public static final java.lang.String DEFAULT_DNPATTERN
protected static final int DEFAULT_ATTRNUM
protected IConfigStore mConfig
protected com.netscape.cms.publish.mappers.AVAPattern[] mPatterns
public LdapEnhancedMap()
protected void init(java.lang.String dnPattern) throws EBaseException
EBaseException
public void init(IConfigStore config) throws EBaseException
init
in interface ILdapPlugin
config
- the configuration store to initialize from.ELdapException
- initialization failed due to Ldap error.EBaseException
- initialization failed.public IConfigStore getConfigStore()
getConfigStore
in interface ILdapPlugin
public java.lang.String getImplName()
ILdapMapper
getImplName
in interface ILdapMapper
public java.lang.String getDescription()
ILdapMapper
getDescription
in interface ILdapMapper
public java.util.Vector getDefaultParams()
ILdapMapper
getDefaultParams
in interface ILdapMapper
public java.util.Vector getInstanceParams()
ILdapMapper
getInstanceParams
in interface ILdapMapper
public java.lang.String map(netscape.ldap.LDAPConnection conn, java.lang.Object obj) throws ELdapException
map
in interface ILdapMapper
conn
- the LDAP connection.obj
- the object to map.ELdapException
- if any LDAP exceptions occurred.public java.lang.String map(netscape.ldap.LDAPConnection conn, IRequest req, java.lang.Object obj) throws ELdapException
map
in interface ILdapMapper
conn
- the LDAP connection.req
- the request to map.obj
- the object to map.ELdapException
- if any LDAP exceptions occurred.public java.lang.String[] getExtendedPluginInfo(java.util.Locale locale)
IExtendedPluginInfo
getExtendedPluginInfo
in interface IExtendedPluginInfo