Search in sources :

Example 1 with DtoLookupByExample

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;
}
Also used : DtoLookupByExample(eu.bcvsolutions.idm.core.api.rest.lookup.DtoLookupByExample) ReadDtoService(eu.bcvsolutions.idm.core.api.service.ReadDtoService)

Aggregations

DtoLookupByExample (eu.bcvsolutions.idm.core.api.rest.lookup.DtoLookupByExample)1 ReadDtoService (eu.bcvsolutions.idm.core.api.service.ReadDtoService)1