Class ParameterService

java.lang.Object
ru.bgcrm.service.ParameterService

@Deprecated public class ParameterService extends Object
Deprecated.
  • Field Details

    • KEY_REQUIRE_BEFORE_FILL_PARAM_IDS

      public static final String KEY_REQUIRE_BEFORE_FILL_PARAM_IDS
      Deprecated.
      See Also:
  • Constructor Details

    • ParameterService

      public ParameterService(ParamValueDAO paramValueDAO)
      Deprecated.
  • Method Details

    • checkRequiredParams

      public void checkRequiredParams(int id, Parameter parameter) throws BGException
      Deprecated.
      Проверка параметров, которые должны быть заполнены перед заполнением указанного параметра. Бросает исключение, если что-то не заполнено
      Parameters:
      id - код объекта
      parameter - параметр
      Throws:
      BGException
    • getNotFilledParamsMessage

      public List<String> getNotFilledParamsMessage(int id, String parameterIds) throws BGException
      Deprecated.
      Проверка на заполненность параметров объекта
      Parameters:
      id - код объекта
      parameterIds - список параметров через запятую
      Returns:
      список ошибок
      Throws:
      BGException
    • getNotFilledParams

      public Map<Integer,String> getNotFilledParams(int id, String parameterIds) throws BGException
      Deprecated.
      Проверка на заполненность параметров объекта
      Parameters:
      id - код объекта
      parameterIds - список параметров через запятую
      Returns:
      id и название параметров, которые не заполнены
      Throws:
      BGException
    • isParameterFilled

      public boolean isParameterFilled(int id, int requireParamId) throws BGException
      Deprecated.
      Throws:
      BGException
    • isParameterFilled

      public boolean isParameterFilled(int id, Parameter requireParam) throws BGException
      Deprecated.
      Throws:
      BGException
    • getParameterFromCache

      public Parameter getParameterFromCache(int requireParamId) throws BGMessageException
      Deprecated.
      Throws:
      BGMessageException