private ConfigModelRepository configModelRepository;\r
private ConfigModelContentRepository configModelContentRepository;\r
private ConfigModelCreateService configModelCreateService;\r
+ private static final String CONFIG_MODEL_ID_FAILURE_MSG= "failed to get config model id(%d) from repo";\r
\r
/**\r
* This is a ConfigModelService constructor.\r
if (dbConfigModel.isPresent()) {\r
configModel = dbConfigModel.get();\r
} else {\r
- throw new BluePrintException(String.format("failed to get config model id(%d) from repo", id));\r
+ throw new BluePrintException(String.format(CONFIG_MODEL_ID_FAILURE_MSG, id));\r
}\r
\r
return configModel;\r
}\r
}\r
} else {\r
- throw new BluePrintException(String.format("failed to get config model id(%d) from repo", id));\r
+ throw new BluePrintException(String.format(CONFIG_MODEL_ID_FAILURE_MSG, id));\r
}\r
\r
return cloneConfigModel;\r
configModelContentRepository.deleteByConfigModel(dbConfigModel.get());\r
configModelRepository.delete(dbConfigModel.get());\r
} else {\r
- throw new BluePrintException(String.format("failed to get config model id(%d) from repo", id));\r
+ throw new BluePrintException(String.format(CONFIG_MODEL_ID_FAILURE_MSG, id));\r
}\r
}\r
\r