public class PersonContextMapper extends OmeroModelContextMapper
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) |
SearchControls |
getControls() |
Object |
mapFromContext(Object obj)
Map a single LDAP Context to an object.
|
getAttribute, getAttributeSet, getDn
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
mapFromContext
in class OmeroModelContextMapper
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 SearchControls getControls()
Version: 5.1.3-ice35-b52
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.