Search in sources :

Example 1 with AlphanumericPolyStringNormalizer

use of com.evolveum.midpoint.prism.impl.polystring.AlphanumericPolyStringNormalizer in project midpoint by Evolveum.

the class ObjectQueryUtil method createNormNameQuery.

public static ObjectQuery createNormNameQuery(PolyString name, PrismContext prismContext) {
    PolyStringNormalizer normalizer = new AlphanumericPolyStringNormalizer();
    name.recompute(normalizer);
    return prismContext.queryFor(ObjectType.class).item(ObjectType.F_NAME).eq(name).matchingNorm().build();
}
Also used : AlphanumericPolyStringNormalizer(com.evolveum.midpoint.prism.impl.polystring.AlphanumericPolyStringNormalizer) AlphanumericPolyStringNormalizer(com.evolveum.midpoint.prism.impl.polystring.AlphanumericPolyStringNormalizer) PolyStringNormalizer(com.evolveum.midpoint.prism.polystring.PolyStringNormalizer)

Aggregations

AlphanumericPolyStringNormalizer (com.evolveum.midpoint.prism.impl.polystring.AlphanumericPolyStringNormalizer)1 PolyStringNormalizer (com.evolveum.midpoint.prism.polystring.PolyStringNormalizer)1