public class MappingHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.springframework.ldap.filter.AndFilter |
generateAndFilter(Object odm)
Build an And filter with all fields that are not empty in the object
- Use the annotation @Attribute and the name of the field if not setted
- Ignore @Transiant attribute
- check if an attribute is a collection and generate a logicial test for each value
|
static org.springframework.ldap.filter.OrFilter |
generateOrFilter(Object odm)
Build an Or filter with all fields that are not empty in the object
- Use the annotation @Attribute and the name of the field if not setted
- Ignore @Transiant attribute
- check if an attribute is a collection and generate a logicial test for each value
|
static org.springframework.ldap.filter.AndFilter |
getBasicFilter(Object odm)
Read the first objectclass of an entity and generate a filter
|
static String |
getLdapFieldName(Object odm,
String attribute)
Read the LDAP field name of an attribute (defined in the mapping)
|
public static org.springframework.ldap.filter.AndFilter getBasicFilter(Object odm)
odm - object entitypublic static String getLdapFieldName(Object odm, String attribute)
odm - object entityattribute - the class attributepublic static org.springframework.ldap.filter.OrFilter generateOrFilter(Object odm)
odm - object entitypublic static org.springframework.ldap.filter.AndFilter generateAndFilter(Object odm)
odm - object entityCopyright © 2022. All rights reserved.