Search in sources :

Example 16 with ViewDefinitionState

use of com.qcadoo.view.api.ViewDefinitionState in project mes by qcadoo.

the class ResourcesListHooks method applyFilters.

public void applyFilters(ViewDefinitionState view) {
    boolean isShortFilter = ((CheckBoxComponent) view.getComponentByReference(ResourceDtoFields.IS_SHORT_FILTER)).isChecked();
    boolean isDeadlineFilter = ((CheckBoxComponent) view.getComponentByReference(ResourceDtoFields.IS_DEADLINE_FILTER)).isChecked();
    GridComponent resourcesGrid = (GridComponent) view.getComponentByReference(QcadooViewConstants.L_GRID);
    Integer shortExpiryDate = dataDefinitionService.get(MaterialFlowResourcesConstants.PLUGIN_IDENTIFIER, MaterialFlowResourcesConstants.MODEL_DOCUMENT_POSITION_PARAMETERS).find().setMaxResults(1).uniqueResult().getIntegerField(DocumentPositionParametersFields.SHORT_EXPIRY_DATE);
    if (isShortFilter) {
        if (shortExpiryDate == null) {
            resourcesGrid.addMessage("materialFlowResources.resource.missing.parameter.shortExpiryDate.error", ComponentState.MessageType.FAILURE);
        } else {
            resourcesGrid.setCustomRestriction(searchBuilder -> searchBuilder.add(SearchRestrictions.and(SearchRestrictions.ge(ResourceDtoFields.EXPIRATION_DATE, DateTime.now().withTimeAtStartOfDay().toDate()), SearchRestrictions.le(ResourceDtoFields.EXPIRATION_DATE, DateTime.now().withTimeAtStartOfDay().plusDays(shortExpiryDate).toDate()))));
        }
    } else if (isDeadlineFilter) {
        resourcesGrid.setCustomRestriction(searchBuilder -> searchBuilder.add(SearchRestrictions.lt(ResourceDtoFields.EXPIRATION_DATE, DateTime.now().withTimeAtStartOfDay().toDate())));
    }
}
Also used : DocumentPositionParametersFields(com.qcadoo.mes.materialFlowResources.constants.DocumentPositionParametersFields) DataDefinitionService(com.qcadoo.model.api.DataDefinitionService) SearchRestrictions(com.qcadoo.model.api.search.SearchRestrictions) DateTime(org.joda.time.DateTime) ComponentState(com.qcadoo.view.api.ComponentState) CheckBoxComponent(com.qcadoo.view.api.components.CheckBoxComponent) QcadooViewConstants(com.qcadoo.view.constants.QcadooViewConstants) Autowired(org.springframework.beans.factory.annotation.Autowired) GridComponent(com.qcadoo.view.api.components.GridComponent) MaterialFlowResourcesConstants(com.qcadoo.mes.materialFlowResources.constants.MaterialFlowResourcesConstants) ViewDefinitionState(com.qcadoo.view.api.ViewDefinitionState) Service(org.springframework.stereotype.Service) ResourceDtoFields(com.qcadoo.mes.materialFlowResources.constants.ResourceDtoFields) GridComponent(com.qcadoo.view.api.components.GridComponent) CheckBoxComponent(com.qcadoo.view.api.components.CheckBoxComponent)

Example 17 with ViewDefinitionState

use of com.qcadoo.view.api.ViewDefinitionState in project mes by qcadoo.

the class PalletStorageStateListHooks method applyFilters.

public void applyFilters(ViewDefinitionState view) {
    boolean isShiftFilter = ((CheckBoxComponent) view.getComponentByReference(PalletStorageStateDtoFields.IS_SHIFT_FILTER)).isChecked();
    boolean isFreeFilter = ((CheckBoxComponent) view.getComponentByReference(PalletStorageStateDtoFields.IS_FREE_FILTER)).isChecked();
    GridComponent palletGrid = (GridComponent) view.getComponentByReference(QcadooViewConstants.L_GRID);
    Integer palletToShift = dataDefinitionService.get(MaterialFlowResourcesConstants.PLUGIN_IDENTIFIER, MaterialFlowResourcesConstants.MODEL_DOCUMENT_POSITION_PARAMETERS).find().setMaxResults(1).uniqueResult().getIntegerField(DocumentPositionParametersItemValues.PALLET_TO_SHIFT);
    Integer palletWithFreePlace = dataDefinitionService.get(MaterialFlowResourcesConstants.PLUGIN_IDENTIFIER, MaterialFlowResourcesConstants.MODEL_DOCUMENT_POSITION_PARAMETERS).find().setMaxResults(1).uniqueResult().getIntegerField(DocumentPositionParametersItemValues.PALLET_WITH_FREE_PALECE);
    if (isShiftFilter) {
        if (palletToShift == null) {
            palletGrid.addMessage("materialFlowResources.pallet.missing.parameter.palletToShift.error", ComponentState.MessageType.FAILURE);
        } else {
            palletGrid.setCustomRestriction(searchBuilder -> searchBuilder.add(SearchRestrictions.lt(PalletStorageStateDtoFields.TOTAL_QUANTITY, BigDecimal.valueOf(palletToShift))));
        }
    } else if (isFreeFilter) {
        if (palletWithFreePlace == null) {
            palletGrid.addMessage("materialFlowResources.pallet.missing.parameter.palletWithFreeSpace.error", ComponentState.MessageType.FAILURE);
        } else {
            palletGrid.setCustomRestriction(searchBuilder -> searchBuilder.add(SearchRestrictions.lt(PalletStorageStateDtoFields.TOTAL_QUANTITY, BigDecimal.valueOf(palletWithFreePlace))));
        }
    }
}
Also used : DataDefinitionService(com.qcadoo.model.api.DataDefinitionService) SearchRestrictions(com.qcadoo.model.api.search.SearchRestrictions) ComponentState(com.qcadoo.view.api.ComponentState) CheckBoxComponent(com.qcadoo.view.api.components.CheckBoxComponent) QcadooViewConstants(com.qcadoo.view.constants.QcadooViewConstants) Autowired(org.springframework.beans.factory.annotation.Autowired) DocumentPositionParametersItemValues(com.qcadoo.mes.materialFlowResources.constants.DocumentPositionParametersItemValues) GridComponent(com.qcadoo.view.api.components.GridComponent) MaterialFlowResourcesConstants(com.qcadoo.mes.materialFlowResources.constants.MaterialFlowResourcesConstants) BigDecimal(java.math.BigDecimal) ViewDefinitionState(com.qcadoo.view.api.ViewDefinitionState) Service(org.springframework.stereotype.Service) PalletStorageStateDtoFields(com.qcadoo.mes.materialFlowResources.constants.PalletStorageStateDtoFields) GridComponent(com.qcadoo.view.api.components.GridComponent) CheckBoxComponent(com.qcadoo.view.api.components.CheckBoxComponent)

Example 18 with ViewDefinitionState

use of com.qcadoo.view.api.ViewDefinitionState in project mes by qcadoo.

the class GenerateMaterialRequirementCoverageListeners method createDelivery.

/**
 * createOffer event handler
 *
 * @param view
 * @param state
 * @param args
 */
public void createDelivery(final ViewDefinitionState view, final ComponentState state, final String[] args) {
    init();
    GridComponent grid = (GridComponent) view.getComponentByReference(L_GRID);
    Entity parameter = parameterService.getParameter();
    Entity systemCurrency = parameter.getBelongsToField(ParameterFields.CURRENCY);
    DataDefinition companyDataDefinition = dataDefinitionService.get(BasicConstants.PLUGIN_IDENTIFIER, BasicConstants.MODEL_COMPANY);
    Map<Optional<Integer>, List<Entity>> groupedCoverageProducts = grid.getSelectedEntities().stream().collect(Collectors.groupingBy(e -> Optional.ofNullable(e.getIntegerField("companyId"))));
    StringBuilder deliveryNumbers = new StringBuilder();
    for (Map.Entry<Optional<Integer>, List<Entity>> entry : groupedCoverageProducts.entrySet()) {
        String number = numberGeneratorService.generateNumber(DeliveriesConstants.PLUGIN_IDENTIFIER, DeliveriesConstants.MODEL_DELIVERY);
        Entity delivery = deliveriesService.getDeliveryDD().create();
        delivery.setField(NUMBER, number);
        Entity currency = null;
        if (entry.getKey().isPresent()) {
            Entity supplier = companyDataDefinition.get(entry.getKey().get().longValue());
            delivery.setField(SUPPLIER, supplier);
            currency = supplier.getBelongsToField(CompanyFieldsD.CURRENCY);
        }
        if (currency == null) {
            currency = systemCurrency;
        }
        delivery.setField(CURRENCY, currency);
        delivery.setField(EXTERNAL_SYNCHRONIZED, true);
        Entity saved = deliveriesService.getDeliveryDD().save(delivery);
        if (saved.isValid()) {
            deliveryNumbers.append("<br/>").append(number);
            entry.getValue().forEach(coverageProduct -> {
                Integer product = coverageProduct.getIntegerField("productId");
                BigDecimal reserveMissingQuantity = coverageProduct.getDecimalField(CoverageProductFields.RESERVE_MISSING_QUANTITY);
                BigDecimal orderedQuantity = reserveMissingQuantity.min(BigDecimal.ZERO).abs();
                BigDecimal conversion = getConversion(product);
                Entity orderedProduct = orderedProductDataDefinition.create();
                orderedProduct.setField("delivery", saved);
                orderedProduct.setField("product", product.longValue());
                orderedProduct.setField("orderedQuantity", reserveMissingQuantity.min(BigDecimal.ZERO).abs());
                orderedProduct.setField(OrderedProductFields.CONVERSION, conversion);
                orderedProduct.setField(OrderedProductFields.ADDITIONAL_QUANTITY, orderedQuantity.multiply(conversion, numberService.getMathContext()));
                orderedProductDataDefinition.save(orderedProduct);
            });
        }
        if (parameter.getBooleanField(L_REQUIRE_SUPPLIER_IDENTIFICATION) && Objects.isNull(delivery.getBelongsToField(SUPPLIER))) {
            state.addMessage("orderSupplies.materialRequirementCoverage.deliveries.requireSupplierIdentification", MessageType.INFO, false);
        }
    }
    if (StringUtils.isNoneEmpty(deliveryNumbers.toString())) {
        state.addMessage("orderSupplies.materialRequirementCoverage.deliveries.created", MessageType.SUCCESS, false, deliveryNumbers.toString());
    } else {
        state.addMessage("orderSupplies.materialRequirementCoverage.deliveries.notCreated", MessageType.INFO, false);
    }
}
Also used : LocaleContextHolder(org.springframework.context.i18n.LocaleContextHolder) Date(java.util.Date) Autowired(org.springframework.beans.factory.annotation.Autowired) UnitConversionService(com.qcadoo.model.api.units.UnitConversionService) MaterialRequirementCoverageFields(com.qcadoo.mes.orderSupplies.constants.MaterialRequirementCoverageFields) StringUtils(org.apache.commons.lang3.StringUtils) ParameterFields(com.qcadoo.mes.basic.constants.ParameterFields) FileService(com.qcadoo.model.api.file.FileService) BigDecimal(java.math.BigDecimal) ReportService(com.qcadoo.report.api.ReportService) JSONException(org.json.JSONException) OrderSuppliesConstants(com.qcadoo.mes.orderSupplies.constants.OrderSuppliesConstants) JSONObject(org.json.JSONObject) Locale(java.util.Locale) BasicConstants(com.qcadoo.mes.basic.constants.BasicConstants) Map(java.util.Map) CoverageProductSelectedFields(com.qcadoo.mes.orderSupplies.constants.CoverageProductSelectedFields) SearchRestrictions(com.qcadoo.model.api.search.SearchRestrictions) DeliveriesConstants(com.qcadoo.mes.deliveries.constants.DeliveriesConstants) Collectors(java.util.stream.Collectors) DataDefinition(com.qcadoo.model.api.DataDefinition) Objects(java.util.Objects) List(java.util.List) Entity(com.qcadoo.model.api.Entity) CoverageAnalysisForOrderService(com.qcadoo.mes.orderSupplies.coverage.coverageAnalysis.CoverageAnalysisForOrderService) ParameterService(com.qcadoo.mes.basic.ParameterService) EXTERNAL_SYNCHRONIZED(com.qcadoo.mes.deliveries.constants.DeliveryFields.EXTERNAL_SYNCHRONIZED) CompanyFieldsD(com.qcadoo.mes.deliveries.constants.CompanyFieldsD) Optional(java.util.Optional) MessageType(com.qcadoo.view.api.ComponentState.MessageType) DataDefinitionService(com.qcadoo.model.api.DataDefinitionService) ComponentState(com.qcadoo.view.api.ComponentState) QcadooViewConstants(com.qcadoo.view.constants.QcadooViewConstants) SimpleDateFormat(java.text.SimpleDateFormat) NUMBER(com.qcadoo.mes.deliveries.constants.DeliveryFields.NUMBER) DateUtils(com.qcadoo.localization.api.utils.DateUtils) CURRENCY(com.qcadoo.mes.deliveries.constants.DeliveryFields.CURRENCY) DeliveriesService(com.qcadoo.mes.deliveries.DeliveriesService) ViewDefinitionState(com.qcadoo.view.api.ViewDefinitionState) Lists(com.google.common.collect.Lists) PossibleUnitConversions(com.qcadoo.model.api.units.PossibleUnitConversions) NumberGeneratorService(com.qcadoo.view.api.utils.NumberGeneratorService) OrderSuppliesService(com.qcadoo.mes.orderSupplies.OrderSuppliesService) Service(org.springframework.stereotype.Service) FormComponent(com.qcadoo.view.api.components.FormComponent) SecurityService(com.qcadoo.security.api.SecurityService) CoverageProductFields(com.qcadoo.mes.orderSupplies.constants.CoverageProductFields) MaterialRequirementCoverageReportPdfService(com.qcadoo.mes.orderSupplies.print.MaterialRequirementCoverageReportPdfService) IOException(java.io.IOException) UnitConversionItemFieldsB(com.qcadoo.mes.basic.constants.UnitConversionItemFieldsB) DocumentException(com.lowagie.text.DocumentException) OrderedProductFields(com.qcadoo.mes.deliveries.constants.OrderedProductFields) GridComponent(com.qcadoo.view.api.components.GridComponent) CoverageLocationFields(com.qcadoo.mes.orderSupplies.constants.CoverageLocationFields) MaterialRequirementCoverageService(com.qcadoo.mes.orderSupplies.coverage.MaterialRequirementCoverageService) NumberService(com.qcadoo.model.api.NumberService) SUPPLIER(com.qcadoo.mes.deliveries.constants.DeliveryFields.SUPPLIER) ProductFields(com.qcadoo.mes.basic.constants.ProductFields) PageSize(com.lowagie.text.PageSize) CoverageProductGeneratedFields(com.qcadoo.mes.orderSupplies.constants.CoverageProductGeneratedFields) Transactional(org.springframework.transaction.annotation.Transactional) Entity(com.qcadoo.model.api.Entity) Optional(java.util.Optional) GridComponent(com.qcadoo.view.api.components.GridComponent) DataDefinition(com.qcadoo.model.api.DataDefinition) BigDecimal(java.math.BigDecimal) List(java.util.List) Map(java.util.Map)

Example 19 with ViewDefinitionState

use of com.qcadoo.view.api.ViewDefinitionState in project mes by qcadoo.

the class GenerateMaterialRequirementCoverageListeners method showReplacementsAvailability.

public void showReplacementsAvailability(final ViewDefinitionState view, final ComponentState state, final String[] args) {
    FormComponent materialRequirementCoverageForm = (FormComponent) view.getComponentByReference(QcadooViewConstants.L_FORM);
    Long materialRequirementCoverageId = materialRequirementCoverageForm.getEntityId();
    Entity materialRequirement = dataDefinitionService.get(OrderSuppliesConstants.PLUGIN_IDENTIFIER, OrderSuppliesConstants.MODEL_MATERIAL_REQUIREMENT_COVERAGE).get(materialRequirementCoverageId);
    GridComponent grid = (GridComponent) view.getComponentByReference("coverageProducts");
    Long cpId = grid.getSelectedEntitiesIds().stream().findFirst().get();
    Entity cp = dataDefinitionService.get(OrderSuppliesConstants.PLUGIN_IDENTIFIER, OrderSuppliesConstants.MODEL_COVERAGE_PRODUCT).get(cpId);
    Entity product = cp.getBelongsToField(CoverageProductFields.PRODUCT);
    JSONObject json = new JSONObject();
    try {
        json.put("product.id", product.getId());
        json.put("locationsIds", Lists.newArrayList(materialRequirement.getHasManyField(MaterialRequirementCoverageFields.COVERAGE_LOCATIONS).stream().map(cl -> cl.getBelongsToField(CoverageLocationFields.LOCATION).getId()).collect(Collectors.toList())));
    } catch (JSONException e) {
        throw new IllegalStateException(e);
    }
    String url = "/page/productFlowThruDivision/materialReplacementsAvailabilityList.html?context=" + json.toString();
    view.redirectTo(url, false, true);
}
Also used : LocaleContextHolder(org.springframework.context.i18n.LocaleContextHolder) Date(java.util.Date) Autowired(org.springframework.beans.factory.annotation.Autowired) UnitConversionService(com.qcadoo.model.api.units.UnitConversionService) MaterialRequirementCoverageFields(com.qcadoo.mes.orderSupplies.constants.MaterialRequirementCoverageFields) StringUtils(org.apache.commons.lang3.StringUtils) ParameterFields(com.qcadoo.mes.basic.constants.ParameterFields) FileService(com.qcadoo.model.api.file.FileService) BigDecimal(java.math.BigDecimal) ReportService(com.qcadoo.report.api.ReportService) JSONException(org.json.JSONException) OrderSuppliesConstants(com.qcadoo.mes.orderSupplies.constants.OrderSuppliesConstants) JSONObject(org.json.JSONObject) Locale(java.util.Locale) BasicConstants(com.qcadoo.mes.basic.constants.BasicConstants) Map(java.util.Map) CoverageProductSelectedFields(com.qcadoo.mes.orderSupplies.constants.CoverageProductSelectedFields) SearchRestrictions(com.qcadoo.model.api.search.SearchRestrictions) DeliveriesConstants(com.qcadoo.mes.deliveries.constants.DeliveriesConstants) Collectors(java.util.stream.Collectors) DataDefinition(com.qcadoo.model.api.DataDefinition) Objects(java.util.Objects) List(java.util.List) Entity(com.qcadoo.model.api.Entity) CoverageAnalysisForOrderService(com.qcadoo.mes.orderSupplies.coverage.coverageAnalysis.CoverageAnalysisForOrderService) ParameterService(com.qcadoo.mes.basic.ParameterService) EXTERNAL_SYNCHRONIZED(com.qcadoo.mes.deliveries.constants.DeliveryFields.EXTERNAL_SYNCHRONIZED) CompanyFieldsD(com.qcadoo.mes.deliveries.constants.CompanyFieldsD) Optional(java.util.Optional) MessageType(com.qcadoo.view.api.ComponentState.MessageType) DataDefinitionService(com.qcadoo.model.api.DataDefinitionService) ComponentState(com.qcadoo.view.api.ComponentState) QcadooViewConstants(com.qcadoo.view.constants.QcadooViewConstants) SimpleDateFormat(java.text.SimpleDateFormat) NUMBER(com.qcadoo.mes.deliveries.constants.DeliveryFields.NUMBER) DateUtils(com.qcadoo.localization.api.utils.DateUtils) CURRENCY(com.qcadoo.mes.deliveries.constants.DeliveryFields.CURRENCY) DeliveriesService(com.qcadoo.mes.deliveries.DeliveriesService) ViewDefinitionState(com.qcadoo.view.api.ViewDefinitionState) Lists(com.google.common.collect.Lists) PossibleUnitConversions(com.qcadoo.model.api.units.PossibleUnitConversions) NumberGeneratorService(com.qcadoo.view.api.utils.NumberGeneratorService) OrderSuppliesService(com.qcadoo.mes.orderSupplies.OrderSuppliesService) Service(org.springframework.stereotype.Service) FormComponent(com.qcadoo.view.api.components.FormComponent) SecurityService(com.qcadoo.security.api.SecurityService) CoverageProductFields(com.qcadoo.mes.orderSupplies.constants.CoverageProductFields) MaterialRequirementCoverageReportPdfService(com.qcadoo.mes.orderSupplies.print.MaterialRequirementCoverageReportPdfService) IOException(java.io.IOException) UnitConversionItemFieldsB(com.qcadoo.mes.basic.constants.UnitConversionItemFieldsB) DocumentException(com.lowagie.text.DocumentException) OrderedProductFields(com.qcadoo.mes.deliveries.constants.OrderedProductFields) GridComponent(com.qcadoo.view.api.components.GridComponent) CoverageLocationFields(com.qcadoo.mes.orderSupplies.constants.CoverageLocationFields) MaterialRequirementCoverageService(com.qcadoo.mes.orderSupplies.coverage.MaterialRequirementCoverageService) NumberService(com.qcadoo.model.api.NumberService) SUPPLIER(com.qcadoo.mes.deliveries.constants.DeliveryFields.SUPPLIER) ProductFields(com.qcadoo.mes.basic.constants.ProductFields) PageSize(com.lowagie.text.PageSize) CoverageProductGeneratedFields(com.qcadoo.mes.orderSupplies.constants.CoverageProductGeneratedFields) Transactional(org.springframework.transaction.annotation.Transactional) FormComponent(com.qcadoo.view.api.components.FormComponent) Entity(com.qcadoo.model.api.Entity) JSONObject(org.json.JSONObject) GridComponent(com.qcadoo.view.api.components.GridComponent) JSONException(org.json.JSONException)

Example 20 with ViewDefinitionState

use of com.qcadoo.view.api.ViewDefinitionState in project mes by qcadoo.

the class OrderPacksSingleOrderListListeners method printLabels.

public void printLabels(final ViewDefinitionState view, final ComponentState state, final String[] args) {
    GridComponent grid = (GridComponent) view.getComponentByReference(QcadooViewConstants.L_GRID);
    Set<Long> packsIds = grid.getSelectedEntitiesIds();
    if (packsIds.isEmpty()) {
        view.addMessage("orders.packs.notSelected", ComponentState.MessageType.INFO);
    } else {
        view.redirectTo("/orders/packsLabels.pdf?" + packsIds.stream().map(id -> "ids=" + id.toString()).collect(Collectors.joining("&")), true, false);
    }
}
Also used : DataDefinitionService(com.qcadoo.model.api.DataDefinitionService) ComponentState(com.qcadoo.view.api.ComponentState) QcadooViewConstants(com.qcadoo.view.constants.QcadooViewConstants) OrderFields(com.qcadoo.mes.orders.constants.OrderFields) Set(java.util.Set) Autowired(org.springframework.beans.factory.annotation.Autowired) OrdersConstants(com.qcadoo.mes.orders.constants.OrdersConstants) Maps(com.google.common.collect.Maps) Collectors(java.util.stream.Collectors) GridComponent(com.qcadoo.view.api.components.GridComponent) Objects(java.util.Objects) Entity(com.qcadoo.model.api.Entity) ViewDefinitionState(com.qcadoo.view.api.ViewDefinitionState) ParameterService(com.qcadoo.mes.basic.ParameterService) OrderPackFields(com.qcadoo.mes.orders.constants.OrderPackFields) ParameterFieldsO(com.qcadoo.mes.orders.constants.ParameterFieldsO) Service(org.springframework.stereotype.Service) FormComponent(com.qcadoo.view.api.components.FormComponent) Map(java.util.Map) StateExecutorService(com.qcadoo.mes.newstates.StateExecutorService) OrderPackServiceMarker(com.qcadoo.mes.orders.states.OrderPackServiceMarker) OrderPackService(com.qcadoo.mes.orders.OrderPackService) GridComponent(com.qcadoo.view.api.components.GridComponent)

Aggregations

ViewDefinitionState (com.qcadoo.view.api.ViewDefinitionState)50 Autowired (org.springframework.beans.factory.annotation.Autowired)35 QcadooViewConstants (com.qcadoo.view.constants.QcadooViewConstants)32 Service (org.springframework.stereotype.Service)31 ComponentState (com.qcadoo.view.api.ComponentState)29 Collectors (java.util.stream.Collectors)28 Entity (com.qcadoo.model.api.Entity)27 Lists (com.google.common.collect.Lists)25 GridComponent (com.qcadoo.view.api.components.GridComponent)25 DataDefinitionService (com.qcadoo.model.api.DataDefinitionService)24 FormComponent (com.qcadoo.view.api.components.FormComponent)23 BigDecimal (java.math.BigDecimal)21 List (java.util.List)21 Maps (com.google.common.collect.Maps)18 Map (java.util.Map)18 DataDefinition (com.qcadoo.model.api.DataDefinition)16 ProductFields (com.qcadoo.mes.basic.constants.ProductFields)15 SearchRestrictions (com.qcadoo.model.api.search.SearchRestrictions)13 FieldComponent (com.qcadoo.view.api.components.FieldComponent)11 Objects (java.util.Objects)11