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 ome.model.IObject> |
getAttribute(T modelObj) |
<T extends ome.model.IObject> |
getAttributeSet(T modelObj) |
<T extends ome.model.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 ome.model.IObject> String getDn(T modelObj)
public <T extends ome.model.IObject> AttributeSet getAttributeSet(T modelObj)
Version: 5.1.2-ice35-b45
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.