Package ome.security.auth
Class PersonContextMapper
- java.lang.Object
-
- ome.security.auth.OmeroModelContextMapper
-
- ome.security.auth.PersonContextMapper
-
- All Implemented Interfaces:
org.springframework.ldap.core.ContextMapper
public class PersonContextMapper extends OmeroModelContextMapper
Specialized OME Experimenter context mapper.
-
-
Constructor Summary
Constructors Constructor Description PersonContextMapper(LdapConfig cfg, java.lang.String base)PersonContextMapper(LdapConfig cfg, java.lang.String base, java.lang.String attribute)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringget(java.lang.String attribute, org.springframework.ldap.core.DirContextAdapter context)javax.naming.directory.SearchControlsgetControls()java.lang.ObjectmapFromContext(java.lang.Object obj)-
Methods inherited from class ome.security.auth.OmeroModelContextMapper
getAttribute, getAttributeSet, getDn
-
-
-
-
Constructor Detail
-
PersonContextMapper
public PersonContextMapper(LdapConfig cfg, java.lang.String base)
-
PersonContextMapper
public PersonContextMapper(LdapConfig cfg, java.lang.String base, java.lang.String attribute)
-
-
Method Detail
-
get
public java.lang.String get(java.lang.String attribute, org.springframework.ldap.core.DirContextAdapter context)
-
mapFromContext
public java.lang.Object mapFromContext(java.lang.Object obj)
- Specified by:
mapFromContextin interfaceorg.springframework.ldap.core.ContextMapper- Specified by:
mapFromContextin classOmeroModelContextMapper
-
getControls
public javax.naming.directory.SearchControls getControls()
-
-