@Controller
@RequestMapping(value="/dictionary")
public class DataDictionaryController
extends com.centit.framework.core.controller.BaseController
| 构造器和说明 |
|---|
DataDictionaryController() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
catalogPrDeleteHandler(DataCatalog dataCatalog,
javax.servlet.http.HttpServletRequest request) |
void |
createCatalog(@Valid DataCatalog dataCatalog,
javax.servlet.http.HttpServletRequest request)
新增字典类别
|
com.centit.framework.common.ResponseData |
createDictionary(String catalogCode,
String dataCode,
@Valid DataDictionary dataDictionary,
javax.servlet.http.HttpServletRequest request)
新增数据字典
|
com.centit.framework.common.ResponseData |
deleteCatalog(String catalogCode,
javax.servlet.http.HttpServletRequest request)
删除字典目录
|
com.centit.framework.common.ResponseData |
deleteDictionary(String catalogCode,
String dataCode,
javax.servlet.http.HttpServletRequest request)
删除数据字典
|
protected void |
dictionaryPreDeleteHandler(DataCatalog dataCatalog,
DataDictionary dataDictionary,
javax.servlet.http.HttpServletRequest request)
数据字典的删除权限进行业务数据判断
|
protected void |
dictionaryPreHandler(DataCatalog dataCatalog,
DataDictionary dataDictionary)
数据字典公共验证
|
protected void |
dictionaryPreInsertHandler(DataCatalog dataCatalog,
DataDictionary dataDictionary,
javax.servlet.http.HttpServletRequest request)
数据字典的新增权限进行业务数据判断
|
protected void |
dictionaryPreUpdateHandler(DataCatalog dataCatalog,
DataDictionary dataDictionary,
javax.servlet.http.HttpServletRequest request)
数据字典的编辑权限进行业务数据判断
|
org.springframework.http.ResponseEntity<byte[]> |
downloadProperties()
将字典明细信息导入到Properties文件
|
com.centit.framework.common.ResponseData |
editDictionary(String catalogCode,
String dataCode,
@Valid DataDictionary dataDictionary,
javax.servlet.http.HttpServletRequest request)
更新数据字典
|
com.centit.framework.common.ResponseData |
getAllCatalog()
获取所以字典目录信息
|
DataCatalog |
getCatalog(String catalogCode)
查询单个字典目录
|
com.centit.framework.common.ResponseData |
getDataDictionary(String catalogCode)
获取字典的所有明细信息
|
com.centit.framework.common.ResponseData |
getDataDictionaryDetail(String catalogCode)
获取字典的详细信息
|
String |
getOptId() |
com.centit.framework.common.ResponseData |
getWholeDictionary(javax.servlet.http.HttpServletResponse response)
获取所以字典目录信息及对应的所以字典明细信息
|
int |
isExistsCatalogName(String catalogName)
catalogName是否已存在
|
boolean |
isNotExistsCatalogCode(String catalogCode)
catalogCode是否不存在
|
boolean |
isNotExistsDataCode(String catalogCode,
String dataCode)
dataCode是否已存在
|
com.centit.framework.core.dao.PageQueryResult<DataCatalog> |
list(String[] field,
com.centit.support.database.utils.PageDesc pageDesc,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
查询所有字典目录列表
|
com.centit.framework.common.ResponseData |
updateCatalog(String catalogCode,
@Valid DataCatalog dataCatalog)
更新字典类别
|
com.centit.framework.common.ResponseData |
updateDictionary(String catalogCode,
@Valid DataCatalog dataCatalog,
javax.servlet.http.HttpServletRequest request)
更新字典目录及明细
|
public String getOptId()
@RequestMapping(method=GET) @WrapUpResponseBody public com.centit.framework.core.dao.PageQueryResult<DataCatalog> list(String[] field, com.centit.support.database.utils.PageDesc pageDesc, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
field - 指需要的属性名pageDesc - 分页信息request - HttpServletRequestresponse - HttpServletResponse@RequestMapping(value="/{catalogCode}",
method=GET)
@WrapUpResponseBody
public DataCatalog getCatalog(@PathVariable
String catalogCode)
catalogCode - DataCatalog主键@RequestMapping(value="/notexists/{catalogCode}",
method=GET)
@WrapUpResponseBody(contentType=RAW)
public boolean isNotExistsCatalogCode(@PathVariable
String catalogCode)
catalogCode - catalogCode@RequestMapping(value="/existcatalogname/{catalogName}",
method=GET)
@WrapUpResponseBody(contentType=RAW)
public int isExistsCatalogName(@PathVariable
String catalogName)
catalogName - catalogName@RequestMapping(value="/notexists/dictionary/{catalogCode}/{dataCode}",
method=GET)
@WrapUpResponseBody(contentType=RAW)
public boolean isNotExistsDataCode(@PathVariable
String catalogCode,
@PathVariable
String dataCode)
catalogCode - catalogCodedataCode - dataCode@RequestMapping(method=POST)
@WrapUpResponseBody
public void createCatalog(@Valid
@Valid DataCatalog dataCatalog,
javax.servlet.http.HttpServletRequest request)
dataCatalog - DataCatalogrequest - HttpServletRequest@RequestMapping(value="/{catalogCode}",
method=PUT)
@WrapUpResponseBody
public com.centit.framework.common.ResponseData updateCatalog(@ParamName(value="catalogCode") @PathVariable
String catalogCode,
@Valid
@Valid DataCatalog dataCatalog)
catalogCode - DataCatalog主键dataCatalog - DataCatalog@RequestMapping(value="/update/{catalogCode}",
method=PUT)
@WrapUpResponseBody
public com.centit.framework.common.ResponseData updateDictionary(@ParamName(value="catalogCode") @PathVariable
String catalogCode,
@Valid
@Valid DataCatalog dataCatalog,
javax.servlet.http.HttpServletRequest request)
catalogCode - DataCatalog主键dataCatalog - DataCatalogrequest - HttpServletRequest@RequestMapping(value="/dictionary/{catalogCode}/{dataCode}",
method=PUT)
@WrapUpResponseBody
public com.centit.framework.common.ResponseData createDictionary(@ParamName(value="catalogCode") @PathVariable
String catalogCode,
@ParamName(value="dataCode") @PathVariable
String dataCode,
@Valid
@Valid DataDictionary dataDictionary,
javax.servlet.http.HttpServletRequest request)
catalogCode - DataCatalog主键dataCode - DataDictionary主键dataDictionary - DataDictionaryrequest - HttpServletRequest@RequestMapping(value="/dictionary/{catalogCode}/{dataCode}",
method=POST)
@WrapUpResponseBody
public com.centit.framework.common.ResponseData editDictionary(@ParamName(value="catalogCode") @PathVariable
String catalogCode,
@ParamName(value="dataCode") @PathVariable
String dataCode,
@Valid
@Valid DataDictionary dataDictionary,
javax.servlet.http.HttpServletRequest request)
catalogCode - DataCatalog主键dataCode - DataDictionary主键dataDictionary - DataDictionaryrequest - HttpServletRequestprotected void dictionaryPreHandler(DataCatalog dataCatalog, DataDictionary dataDictionary)
dataCatalog - DataCatalogdataDictionary - DataDictionaryprotected void dictionaryPreInsertHandler(DataCatalog dataCatalog, DataDictionary dataDictionary, javax.servlet.http.HttpServletRequest request)
dataCatalog - DataCatalogdataDictionary - DataDictionaryrequest - HttpServletRequestprotected void dictionaryPreDeleteHandler(DataCatalog dataCatalog, DataDictionary dataDictionary, javax.servlet.http.HttpServletRequest request)
request - HttpServletRequestdataCatalog - DataCatalogdataDictionary - DataDictionaryprotected void dictionaryPreUpdateHandler(DataCatalog dataCatalog, DataDictionary dataDictionary, javax.servlet.http.HttpServletRequest request)
dataCatalog - DataCatalogdataDictionary - DataDictionaryrequest - HttpServletRequestprotected void catalogPrDeleteHandler(DataCatalog dataCatalog, javax.servlet.http.HttpServletRequest request)
@RequestMapping(value="/{catalogCode}",
method=DELETE)
@WrapUpResponseBody
public com.centit.framework.common.ResponseData deleteCatalog(@ParamName(value="catalogCode") @PathVariable
String catalogCode,
javax.servlet.http.HttpServletRequest request)
catalogCode - DataCatalog主键request - HttpServletRequest@RequestMapping(value="/dictionary/{catalogCode}/{dataCode}",
method=DELETE)
@WrapUpResponseBody
public com.centit.framework.common.ResponseData deleteDictionary(@ParamName(value="catalogCode") @PathVariable
String catalogCode,
@ParamName(value="dataCode") @PathVariable
String dataCode,
javax.servlet.http.HttpServletRequest request)
catalogCode - DataCatalog主键dataCode - dataCoderequest - HttpServletRequest@RequestMapping(value="/dictionaryPiece/{catalogCode}",
method=GET)
@WrapUpResponseBody
public com.centit.framework.common.ResponseData getDataDictionary(@PathVariable
String catalogCode)
catalogCode - 数据字典的类别代码@RequestMapping(value="/editDictionary/{catalogCode}",
method=GET)
@WrapUpResponseBody
public com.centit.framework.common.ResponseData getDataDictionaryDetail(@PathVariable
String catalogCode)
catalogCode - 数据字典的类别代码@RequestMapping(value="/allCatalog",
method=GET)
@WrapUpResponseBody
public com.centit.framework.common.ResponseData getAllCatalog()
@RequestMapping(value="/wholeDictionary",
method=GET)
@WrapUpResponseBody
public com.centit.framework.common.ResponseData getWholeDictionary(javax.servlet.http.HttpServletResponse response)
response - HttpServletResponse@GetMapping(value="/dictionaryprop")
@ResponseBody
public org.springframework.http.ResponseEntity<byte[]> downloadProperties()
throws IOException
IOException - 异常Copyright © 2021 Centit Information Technical, co. Inc.. All rights reserved.