public abstract class OmeroModelContextMapper extends Object implements org.springframework.ldap.core.ContextMapper
Constructor and Description |
---|
OmeroModelContextMapper(LdapConfig cfg,
String base,
String attribute) |
Modifier and Type | Method and Description |
---|---|
<T extends IObject> |
getAttribute(T modelObj) |
<T extends IObject> |
getAttributeSet(T modelObj) |
<T extends IObject> |
getDn(T modelObj) |
abstract Object |
mapFromContext(Object obj)
Map a single LDAP Context to an object.
|
public OmeroModelContextMapper(LdapConfig cfg, String base, String attribute)
public abstract 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 <T extends IObject> AttributeSet getAttributeSet(T modelObj)
Version: 5.1.4-ice35-b55
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.