Class OmeroModelContextMapper

  • All Implemented Interfaces:
    org.springframework.ldap.core.ContextMapper
    Direct Known Subclasses:
    GroupContextMapper, PersonContextMapper

    public abstract class OmeroModelContextMapper
    extends java.lang.Object
    implements org.springframework.ldap.core.ContextMapper
    Parent class for any OMERO model-to-LDAP mappers. Contains common logic.
    Since:
    OMERO-5.1
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      <T extends ome.model.IObject>
      java.util.Set<java.lang.String>
      getAttribute​(T modelObj)  
      <T extends ome.model.IObject>
      AttributeSet
      getAttributeSet​(T modelObj)  
      <T extends ome.model.IObject>
      java.lang.String
      getDn​(T modelObj)  
      abstract java.lang.Object mapFromContext​(java.lang.Object obj)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OmeroModelContextMapper

        public OmeroModelContextMapper​(LdapConfig cfg,
                                       java.lang.String base,
                                       java.lang.String attribute)
    • Method Detail

      • mapFromContext

        public abstract java.lang.Object mapFromContext​(java.lang.Object obj)
        Specified by:
        mapFromContext in interface org.springframework.ldap.core.ContextMapper
      • getDn

        public <T extends ome.model.IObject> java.lang.String getDn​(T modelObj)
      • getAttribute

        public <T extends ome.model.IObject> java.util.Set<java.lang.String> getAttribute​(T modelObj)
      • getAttributeSet

        public <T extends ome.model.IObject> AttributeSet getAttributeSet​(T modelObj)