@Override @Transactional public void multiTenantEnable() { countryLoader.loadCountries(); currencyLoader.loadCurrencies(); reportColumnWidthLoader.loadReportColumnWidths(); typeOfPalletLoader.loadTypeOfPallets(); defaultFaultTypesLoader.loadDefaultFaultTypes(); addressTypeLoader.loadAddressTypes(); colorLoader.loadColors(); exchangeRatesUpdateService.update(); }
public ErrorResponse(final String message) { super(); this.message = message; exception = new BasicException(message); }
public void calculateConversionIfUnitChanged(final DataDefinition productDD, final Entity product) { if (productService.hasUnitChangedOnUpdate(product)) { productService.conversionForProductUnit(product); } }
public Entity getParameter() { return parameterService.getParameter(); }
public boolean validatesWith(final DataDefinition orderDD, final Entity order) { boolean isValid = true; Entity parameter = parameterService.getParameter(); isValid = isValid && checkOrderDates(orderDD, order); isValid = isValid && checkOrderPlannedQuantity(orderDD, order); isValid = isValid && productService.checkIfProductIsNotRemoved(orderDD, order); isValid = isValid && checkReasonOfStartDateCorrection(parameter, order); isValid = isValid && checkReasonOfEndDateCorrection(parameter, order); isValid = isValid && checkEffectiveDeviation(parameter, order); return isValid; }
public static Builder activity(String type, String action) { return new Builder().withLogLevel(LogLevel.ACTIVITY).withType(type).withAction(action); }
public LocalTime[][] convertDayHoursToInt(final String string) { return shiftsService.convertDayHoursToInt(string); }
public List<ShiftsServiceImpl.ShiftHour> getHoursForAllShifts(final Date dateFrom, final Date dateTo) { return shiftsService.getHoursForAllShifts(dateFrom, dateTo); }
public boolean checkIfFaultTypeAppliesToWorkstation(final Entity faultType, final Entity workstation) { return checkIfFaultTypeAppliesToWorkstationOrSubassembly(faultType, workstation, FaultTypeFields.WORKSTATIONS); }
public void onDayCheckboxChange(final ViewDefinitionState viewDefinitionState, final ComponentState state, final String[] args) { updateDayFieldsState(viewDefinitionState); }
public boolean validateShiftHoursField(final DataDefinition dataDefinition, final Entity entity) { boolean valid = true; for (String day : WEEK_DAYS) { if (!validateHourField(day, dataDefinition, entity)) { valid = false; } } return valid; }
@Override public Optional<DateTime> getNearestWorkingDate(DateTime dateFrom, List<Entity> shiftsEntities) { return getNearestWorkingDate(dateFrom, null, shiftsEntities); }
public BasicException(final String message, final Entity entity) { super(createMessageForValidationErrors(message, entity)); }
public void calculateConversionOnCreate(final DataDefinition productDD, final Entity product) { productService.conversionForProductUnit(product); }
public static Builder error(String type, String action) { return new Builder().withLogLevel(LogLevel.ERROR).withType(type).withAction(action); }
public boolean checkIfFaultTypeAppliesToSubassembly(final Entity faultType, final Entity subassembly) { return checkIfFaultTypeAppliesToWorkstationOrSubassembly(faultType, subassembly, FaultTypeFields.SUBASSEMBLIES); }
public void setHourFieldsState(final ViewDefinitionState viewDefinitionState) { updateDayFieldsState(viewDefinitionState); }
public static Builder debug(String type, String action) { return new Builder().withLogLevel(LogLevel.DEBUG).withType(type).withAction(action); }
public static Builder info(String type, String action) { return new Builder().withLogLevel(LogLevel.INFO).withType(type).withAction(action); }
public static Builder newBuilder(LogLevel logLevel, String type, String action) { return new Builder().withLogLevel(logLevel).withType(type).withAction(action); }