|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lsc.jndi.AbstractSimpleJndiService
org.lsc.jndi.SimpleJndiSrcService
public class SimpleJndiSrcService
This class is a 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). TODO implements JUnit test
| Constructor Summary | |
|---|---|
SimpleJndiSrcService(Properties props)
Constructor adapted to the context properties and the bean class name to instantiate. |
|
| Method Summary | |
|---|---|
IBean |
getBean(IBean bean,
Map.Entry<String,LscAttributes> ids)
The simple object getter according to its identifier. |
JndiServices |
getJndiServices()
Source LDAP Services getter. |
Map<String,LscAttributes> |
getListPivots()
Get the identifiers list. |
| Methods inherited from class org.lsc.jndi.AbstractSimpleJndiService |
|---|
get, getAttrs, getAttrsId, getBaseDn, getBeanFromSR, getFilterAll, getFilterId, getObjectFromSR |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleJndiSrcService(Properties props)
props - the properties used to identify the directory parameters
and context| Method Detail |
|---|
public final IBean getBean(IBean bean,
Map.Entry<String,LscAttributes> ids)
throws NamingException
getBean in interface ISrcServicebean - IBean object to fillids - the data identifier in the directory - must identify a unique
directory entry
NamingException - thrown if an directory exception is encountered
while getting the identified beanpublic final JndiServices getJndiServices()
getJndiServices in class AbstractSimpleJndiService
public Map<String,LscAttributes> getListPivots()
throws NamingException
getListPivots in interface ISrcServiceNamingException - thrown if an directory exception is encountered while
getting the identifiers list
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||