@Controller
@RequestMapping(value="/dictionary")
public class DataDictionaryController
extends com.centit.framework.core.controller.BaseController
| 构造器和说明 |
|---|
DataDictionaryController() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
catalogPrDeleteHandler(com.centit.framework.system.po.DataCatalog dataCatalog,
javax.servlet.http.HttpServletRequest request) |
void |
createCatalog(@Valid com.centit.framework.system.po.DataCatalog dataCatalog,
javax.servlet.http.HttpServletRequest request)
新增字典类别
|
com.centit.framework.common.ResponseData |
createDictionary(String catalogCode,
String dataCode,
@Valid com.centit.framework.system.po.DataDictionary dataDictionary,
javax.servlet.http.HttpServletRequest request)
新增数据字典
|
com.centit.framework.common.ResponseData |
deleteCatalog(String catalogCode,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
删除字典目录
|
com.centit.framework.common.ResponseData |
deleteDictionary(String catalogCode,
String dataCode,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
删除数据字典
|
protected void |
dictionaryPreDeleteHandler(com.centit.framework.system.po.DataCatalog dataCatalog,
com.centit.framework.system.po.DataDictionary dataDictionary,
javax.servlet.http.HttpServletRequest request)
数据字典的删除权限进行业务数据判断
|
protected void |
dictionaryPreHandler(com.centit.framework.system.po.DataCatalog dataCatalog,
com.centit.framework.system.po.DataDictionary dataDictionary)
数据字典公共验证
|
protected void |
dictionaryPreInsertHandler(com.centit.framework.system.po.DataCatalog dataCatalog,
com.centit.framework.system.po.DataDictionary dataDictionary,
javax.servlet.http.HttpServletRequest request)
数据字典的新增权限进行业务数据判断
|
protected void |
dictionaryPreUpdateHandler(com.centit.framework.system.po.DataCatalog dataCatalog,
com.centit.framework.system.po.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 com.centit.framework.system.po.DataDictionary dataDictionary,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
更新数据字典
|
com.centit.framework.common.ResponseData |
getAllCatalog()
获取所以字典目录信息
|
com.centit.framework.common.ResponseData |
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.common.ResponseData |
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 com.centit.framework.system.po.DataCatalog dataCatalog)
更新字典类别
|
com.centit.framework.common.ResponseData |
updateDictionary(String catalogCode,
@Valid com.centit.framework.system.po.DataCatalog dataCatalog,
javax.servlet.http.HttpServletRequest request)
更新字典目录及明细
|
public String getOptId()
@RequestMapping(method=GET) @WrapUpResponseBody public com.centit.framework.common.ResponseData 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 com.centit.framework.common.ResponseData 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 com.centit.framework.system.po.DataCatalog dataCatalog,
javax.servlet.http.HttpServletRequest request)
dataCatalog - DataCatalogrequest - HttpServletRequest@RequestMapping(value="/{catalogCode}",
method=PUT)
@WrapUpResponseBody
public com.centit.framework.common.ResponseData updateCatalog(@PathVariable
String catalogCode,
@Valid
@Valid com.centit.framework.system.po.DataCatalog dataCatalog)
catalogCode - DataCatalog主键dataCatalog - DataCatalog@RequestMapping(value="/update/{catalogCode}",
method=PUT)
@WrapUpResponseBody
public com.centit.framework.common.ResponseData updateDictionary(@PathVariable
String catalogCode,
@Valid
@Valid com.centit.framework.system.po.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(@PathVariable
String catalogCode,
@PathVariable
String dataCode,
@Valid
@Valid com.centit.framework.system.po.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(@PathVariable
String catalogCode,
@PathVariable
String dataCode,
@Valid
@Valid com.centit.framework.system.po.DataDictionary dataDictionary,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
catalogCode - DataCatalog主键dataCode - DataDictionary主键dataDictionary - DataDictionaryrequest - HttpServletRequestresponse - HttpServletResponseprotected void dictionaryPreHandler(com.centit.framework.system.po.DataCatalog dataCatalog,
com.centit.framework.system.po.DataDictionary dataDictionary)
dataCatalog - DataCatalogdataDictionary - DataDictionaryprotected void dictionaryPreInsertHandler(com.centit.framework.system.po.DataCatalog dataCatalog,
com.centit.framework.system.po.DataDictionary dataDictionary,
javax.servlet.http.HttpServletRequest request)
dataCatalog - DataCatalogdataDictionary - DataDictionaryrequest - HttpServletRequestprotected void dictionaryPreDeleteHandler(com.centit.framework.system.po.DataCatalog dataCatalog,
com.centit.framework.system.po.DataDictionary dataDictionary,
javax.servlet.http.HttpServletRequest request)
request - HttpServletRequestdataCatalog - DataCatalogdataDictionary - DataDictionaryprotected void dictionaryPreUpdateHandler(com.centit.framework.system.po.DataCatalog dataCatalog,
com.centit.framework.system.po.DataDictionary dataDictionary,
javax.servlet.http.HttpServletRequest request)
dataCatalog - DataCatalogdataDictionary - DataDictionaryrequest - HttpServletRequestprotected void catalogPrDeleteHandler(com.centit.framework.system.po.DataCatalog dataCatalog,
javax.servlet.http.HttpServletRequest request)
@RequestMapping(value="/{catalogCode}",
method=DELETE)
@WrapUpResponseBody
public com.centit.framework.common.ResponseData deleteCatalog(@PathVariable
String catalogCode,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
catalogCode - DataCatalog主键request - HttpServletRequestresponse - HttpServletResponse@RequestMapping(value="/dictionary/{catalogCode}/{dataCode}",
method=DELETE)
@WrapUpResponseBody
public com.centit.framework.common.ResponseData deleteDictionary(@PathVariable
String catalogCode,
@PathVariable
String dataCode,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
catalogCode - DataCatalog主键dataCode - dataCoderequest - HttpServletRequestresponse - HttpServletResponse@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")
public org.springframework.http.ResponseEntity<byte[]> downloadProperties()
throws IOException
IOExceptionCopyright © 2019 Centit Information Technical, co. Inc.. All rights reserved.