public class ParameterService
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
KEY_REQUIRE_BEFORE_FILL_PARAM_IDS |
Constructor and Description |
---|
ParameterService(ParamValueDAO paramValueDAO) |
Modifier and Type | Method and Description |
---|---|
void |
checkRequiredParams(int id,
Parameter parameter)
Проверка параметров, которые должны быть заполнены перед заполнением указанного параметра.
|
java.util.Map<java.lang.Integer,java.lang.String> |
getNotFilledParams(int id,
java.lang.String parameterIds)
Проверка на заполненность параметров объекта
|
java.util.List<java.lang.String> |
getNotFilledParamsMessage(int id,
java.lang.String parameterIds)
Проверка на заполненность параметров объекта
|
Parameter |
getParameterFromCache(int requireParamId) |
boolean |
isParameterFilled(int id,
int requireParamId) |
boolean |
isParameterFilled(int id,
Parameter requireParam) |
public static final java.lang.String KEY_REQUIRE_BEFORE_FILL_PARAM_IDS
public ParameterService(ParamValueDAO paramValueDAO)
public void checkRequiredParams(int id, Parameter parameter) throws BGException
id
- код объектаparameter
- параметрBGException
public java.util.List<java.lang.String> getNotFilledParamsMessage(int id, java.lang.String parameterIds) throws BGException
id
- код объектаparameterIds
- список параметров через запятуюBGException
public java.util.Map<java.lang.Integer,java.lang.String> getNotFilledParams(int id, java.lang.String parameterIds) throws BGException
id
- код объектаparameterIds
- список параметров через запятуюBGException
public boolean isParameterFilled(int id, int requireParamId) throws BGException
BGException
public boolean isParameterFilled(int id, Parameter requireParam) throws BGException
BGException
public Parameter getParameterFromCache(int requireParamId) throws BGMessageException
BGMessageException