Package ome.security.auth
Class OmeroModelContextMapper
- java.lang.Object
-
- ome.security.auth.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
-
-
Constructor Summary
Constructors Constructor Description OmeroModelContextMapper(LdapConfig cfg, java.lang.String base, java.lang.String attribute)
-
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>
AttributeSetgetAttributeSet(T modelObj)
<T extends ome.model.IObject>
java.lang.StringgetDn(T modelObj)
abstract java.lang.Object
mapFromContext(java.lang.Object obj)
-
-
-
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 interfaceorg.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)
-
-