public abstract class AbstractSimpleJndiService extends Object implements Closeable
Constructor and Description |
---|
AbstractSimpleJndiService(LdapServiceType ldapService)
The default initializer.
|
AbstractSimpleJndiService(Properties serviceProps)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
SearchResult |
get(String id,
LscDatasets pivotAttrs,
boolean fromSource,
String searchString)
Get the ldap search result according the specified identifier.
|
List<String> |
getAttrs()
Default attributes getter.
|
List<String> |
getAttrsId()
Default attrId getter.
|
String |
getBaseDn()
Default base distinguish name getter.
|
IBean |
getBeanFromSR(SearchResult sr,
IBean beanToFill)
Map the ldap search result into a AbstractBean inherited object.
|
String |
getFilterAll()
Default filter getter, for all corresponding entries.
|
String |
getFilterId()
Default filter getter, for one corresponding entry.
|
JndiServices |
getJndiServices()
LDAP Services getter to fit to the context - source or destination.
|
@Deprecated public AbstractSimpleJndiService(Properties serviceProps) throws LscServiceConfigurationException
serviceProps
- The default simple JNDI propertiesLscServiceConfigurationException
public AbstractSimpleJndiService(LdapServiceType ldapService) throws LscServiceConfigurationException
ldapService
- The Ldap settings objectLscServiceConfigurationException
public final IBean getBeanFromSR(SearchResult sr, IBean beanToFill) throws NamingException
sr
- the ldap search resultbeanToFill
- the bean to fillNamingException
- thrown if a directory exception is encountered while
switching to the Java POJOpublic SearchResult get(String id, LscDatasets pivotAttrs, boolean fromSource, String searchString) throws NamingException
id
- The object identifiers - used in the directory filter as {0} or any attributes nameNamingException
- thrown if an directory exception is encountered while getting
the identified objectpublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public final JndiServices getJndiServices()
public final String getBaseDn()
public final String getFilterAll()
public final String getFilterId()
Copyright © 2005-2024 LSC project. All Rights Reserved.