Search in sources :

Example 6 with ReadDtoService

use of eu.bcvsolutions.idm.core.api.service.ReadDtoService 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

ReadDtoService (eu.bcvsolutions.idm.core.api.service.ReadDtoService)6 OperationResultDto (eu.bcvsolutions.idm.core.api.dto.OperationResultDto)2 ResultCodeException (eu.bcvsolutions.idm.core.api.exception.ResultCodeException)2 OperationState (eu.bcvsolutions.idm.core.api.domain.OperationState)1 AbstractDto (eu.bcvsolutions.idm.core.api.dto.AbstractDto)1 DefaultResultModel (eu.bcvsolutions.idm.core.api.dto.DefaultResultModel)1 FilterBuilderDto (eu.bcvsolutions.idm.core.api.dto.FilterBuilderDto)1 ResultModel (eu.bcvsolutions.idm.core.api.dto.ResultModel)1 BaseFilter (eu.bcvsolutions.idm.core.api.dto.filter.BaseFilter)1 DataFilter (eu.bcvsolutions.idm.core.api.dto.filter.DataFilter)1 ModifiedFromFilter (eu.bcvsolutions.idm.core.api.dto.filter.ModifiedFromFilter)1 AbstractEntity_ (eu.bcvsolutions.idm.core.api.entity.AbstractEntity_)1 CodeableDtoLookup (eu.bcvsolutions.idm.core.api.rest.lookup.CodeableDtoLookup)1 DefaultDtoLookup (eu.bcvsolutions.idm.core.api.rest.lookup.DefaultDtoLookup)1 DtoLookup (eu.bcvsolutions.idm.core.api.rest.lookup.DtoLookup)1 DtoLookupByExample (eu.bcvsolutions.idm.core.api.rest.lookup.DtoLookupByExample)1 CodeableService (eu.bcvsolutions.idm.core.api.service.CodeableService)1 ConfigurationService (eu.bcvsolutions.idm.core.api.service.ConfigurationService)1 AbstractFormValueService (eu.bcvsolutions.idm.core.eav.service.impl.AbstractFormValueService)1 ModelMapperServiceInitException (eu.bcvsolutions.idm.core.exception.ModelMapperServiceInitException)1