public class PersonContextMapper extends Object implements org.springframework.ldap.core.ContextMapper
Constructor and Description |
---|
PersonContextMapper(LdapConfig cfg,
String base) |
PersonContextMapper(LdapConfig cfg,
String base,
String attribute) |
Modifier and Type | Method and Description |
---|---|
String |
get(String attribute,
org.springframework.ldap.core.DirContextAdapter context) |
Set<String> |
getAttribute(ome.model.meta.Experimenter person) |
AttributeSet |
getAttributeSet(ome.model.meta.Experimenter person) |
SearchControls |
getControls() |
String |
getDn(ome.model.meta.Experimenter person) |
Object |
mapFromContext(Object obj)
Map a single LDAP Context to an object.
|
public PersonContextMapper(LdapConfig cfg, String base)
public PersonContextMapper(LdapConfig cfg, String base, String attribute)
public Object mapFromContext(Object obj)
org.springframework.ldap.core.ContextMapper
ctx
is the object from a single SearchResult
,
Binding
, or a lookup operation.mapFromContext
in interface org.springframework.ldap.core.ContextMapper
obj
- the context to map to an object. Typically this will be a
DirContextAdapter
instance, unless a project specific
DirObjectFactory
has been specified on the
ContextSource
.public String getDn(ome.model.meta.Experimenter person)
public AttributeSet getAttributeSet(ome.model.meta.Experimenter person)
public SearchControls getControls()
Version: 4.4.12-ice34-b116
Copyright © 2014 The University of Dundee & Open Microscopy Environment. All Rights Reserved.