ome.security.auth
Class PersonContextMapper

java.lang.Object
  extended by ome.security.auth.PersonContextMapper
All Implemented Interfaces:
org.springframework.ldap.core.ContextMapper

public class PersonContextMapper
extends Object
implements org.springframework.ldap.core.ContextMapper

Specialized OME Experimenter context mapper.


Constructor Summary
PersonContextMapper(LdapConfig cfg, String base)
           
PersonContextMapper(LdapConfig cfg, String base, String attribute)
           
 
Method Summary
 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)
           
 String getDn(ome.model.meta.Experimenter person)
           
 Object mapFromContext(Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersonContextMapper

public PersonContextMapper(LdapConfig cfg,
                           String base)

PersonContextMapper

public PersonContextMapper(LdapConfig cfg,
                           String base,
                           String attribute)
Method Detail

get

public String get(String attribute,
                  org.springframework.ldap.core.DirContextAdapter context)

mapFromContext

public Object mapFromContext(Object obj)
Specified by:
mapFromContext in interface org.springframework.ldap.core.ContextMapper

getDn

public String getDn(ome.model.meta.Experimenter person)

getAttribute

public Set<String> getAttribute(ome.model.meta.Experimenter person)

getAttributeSet

public AttributeSet getAttributeSet(ome.model.meta.Experimenter person)


OmeroJava Api

Version: 4.3.4-dbcbce5a-b4

Copyright © 2009 The University of Dundee. All Rights Reserved.