use of eu.bcvsolutions.idm.core.api.rest.lookup.DtoLookupByExample in project CzechIdMng by bcvsolutions.
the class DefaultLookupService method getDtoLookupByExample.
@SuppressWarnings({ "unchecked", "rawtypes" })
private <I extends BaseDto> DtoLookupByExample<I> getDtoLookupByExample(Class<? extends Identifiable> identifiableType) {
ReadDtoService service = getDtoService(identifiableType);
if (service == null) {
LOG.debug("Service for identifiable type [{}] is not found, lookup not found.", identifiableType);
return null;
}
//
DtoLookupByExample<I> lookup = (DtoLookupByExample<I>) dtoLookupByExamples.getPluginFor(service.getDtoClass());
if (lookup == null) {
// TODO: default lookup by reflection and filter properties?
}
return lookup;
}
Aggregations