|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lsc.jndi.AbstractSimpleJndiService
public abstract class AbstractSimpleJndiService
This class is an abstract generic but configurable implementation to get data from the directory. You can specify where (baseDn) and what (filterId & attr) information will be read on which type of entries (filterAll and attrId).
| Constructor Summary | |
|---|---|
AbstractSimpleJndiService(Properties serviceProps)
The default initializer. |
|
| Method Summary | |
|---|---|
SearchResult |
get(Map.Entry<String,LscAttributes> entry)
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. |
abstract JndiServices |
getJndiServices()
LDAP Services getter to fit to the context - source or destination. |
LscObject |
getObjectFromSR(SearchResult sr,
LscObject objToFill)
Deprecated. This class was used in LSC 1.1 projects, and is no longer necessary, but kept for reverse compatibility. It will be removed in LSC 1.3. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractSimpleJndiService(Properties serviceProps)
serviceProps - The default simple JNDI properties| Method Detail |
|---|
public final LscObject getObjectFromSR(SearchResult sr,
LscObject objToFill)
throws NamingException
sr - the ldap search resultobjToFill - the original object to fill
NamingException - thrown if a directory exception is encountered while
switching to the Java POJO
public final IBean getBeanFromSR(SearchResult sr,
IBean beanToFill)
throws NamingException
sr - the ldap search resultbeanToFill - the bean to fill
NamingException - thrown if a directory exception is encountered while
switching to the Java POJO
public final SearchResult get(Map.Entry<String,LscAttributes> entry)
throws NamingException
entry - The object identifiers - used in the directory filter as {0} or any attributes name
NamingException - thrown if an directory exception is encountered while getting
the identified objectpublic abstract JndiServices getJndiServices()
public final List<String> getAttrsId()
public final List<String> getAttrs()
public final String getBaseDn()
public final String getFilterAll()
public final String getFilterId()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||