@Controller @RequestMapping(value="manager/coremodeldesign") public class CoreModelDesignController extends BaseController
限定符和类型 | 字段和说明 |
---|---|
(专用程序包) CoreUserService |
coreUserService |
(专用程序包) java.util.regex.Pattern |
varianPatten |
DOWNLOAD_ID_COOKIE_EXPIRY, DOWNLOAD_ID_NAME
构造器和说明 |
---|
CoreModelDesignController() |
限定符和类型 | 方法和说明 |
---|---|
RetVo |
add(CoreModelDesign coreModelDesign) |
RetVo |
checkFormula(java.lang.String formula,
java.util.Map<java.lang.String,java.lang.Object> params) |
RetVo |
checkSql(java.lang.String formula,
java.util.Map<java.lang.String,java.lang.Object> params) |
RetVo |
copy(CoreModelDesign coreModelDesign) |
java.lang.String |
design(javax.servlet.http.HttpServletRequest request,
java.lang.String modelId) |
void |
downLoad(java.lang.String id,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
下载
|
protected java.io.InputStream |
getfileInputStream(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.StringBuilder suffix)
得到上传的文件流
|
RetVo |
getlockuser(java.lang.String modelId)
得到锁定的用户
|
RetPageVo |
getLogs(java.util.Map<java.lang.String,java.lang.Object> params)
获取该模型的版本日志
|
RetVo |
getPageInfoBymenuId(java.lang.String menuId,
javax.servlet.http.HttpServletRequest request)
通过菜单id获取当表单id
|
java.lang.String |
getPageModleByMenuId(java.lang.String menuId)
通过菜单id获取关联的页面模型id
|
java.lang.String |
index(javax.servlet.http.HttpServletRequest request) |
RetVo |
lock(CoreModelDesign model)
锁定表单
|
RetVo |
modify(CoreModelDesign coreModelDesign) |
java.lang.String |
preview(javax.servlet.http.HttpServletRequest request,
java.lang.String strCoreModelDesign,
java.lang.String modelId) |
java.lang.String |
previewRest(javax.servlet.http.HttpServletRequest request,
java.lang.String strCoreModelDesign,
java.lang.String modelId) |
RetVo |
processModel(java.lang.String strModel)
处理模型的内的各种东,公式等等...
|
RetPageVo |
query(java.util.Map<java.lang.String,java.lang.Object> params) |
RetVo |
queryDetailPageIdByMenuCode(java.lang.String menuCode,
javax.servlet.http.HttpServletRequest request)
通过菜单Code获取当详情表单信息
|
RetVo |
queryDetailPageIdByMenuId(java.lang.String menuId,
javax.servlet.http.HttpServletRequest request)
通过菜单id获取当详情表单信息
|
RetVo |
queryFormula() |
RetVo |
queryFormulaEx() |
RetVo |
queryFormulaSqlHit() |
RetVo |
queryJson(java.lang.String modelId,
java.lang.Boolean designModel)
查詢json数据
|
RetVo |
queryJsonByCode(java.lang.String modelCode,
java.lang.Boolean designModel)
得到界面模型的
|
RetVo |
queryValue(java.util.Map<java.lang.String,java.lang.Object> params) |
RetVo |
refreshParents(java.lang.String tableName) |
RetVo |
remove(java.util.ArrayList<java.lang.String> list) |
RetVo |
removeAll(java.lang.String modelid)
清空表单所有的值
|
RetVo |
rollBack(java.lang.String modelId,
java.lang.String revisionId)
回滚到某版本
|
java.lang.String |
show(javax.servlet.http.HttpServletRequest request,
java.lang.String coreModelDesign,
java.lang.String modelId)
已过时。
|
java.lang.String |
showREST(javax.servlet.http.HttpServletRequest request,
java.lang.String coreModelDesign,
java.lang.String modelId) |
RetVo |
unLock(CoreModelDesign model)
解锁表单
|
RetVo |
upload(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
组件上传文件
|
RetVo |
upload(java.util.Map<java.lang.String,java.lang.Object> params,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
上传接口
|
RetVo |
uploadBase64Img(java.util.Map<java.lang.String,java.lang.Object> params)
组件上传单个base64编码的字符串的图片文件
只支持(png,gif,jepg,ico)格式图片
|
commonsDownloadEx, commonsUploadEx, getUploadNewFileName, setResponseContentType, setResponseContentTypeAndStatus, setResponseHttpStatus, writeJsonToResponse
java.util.regex.Pattern varianPatten
@Autowired CoreUserService coreUserService
@RequestMapping(value="/", method=GET) public java.lang.String index(javax.servlet.http.HttpServletRequest request)
@RequestMapping(value="design", method=POST) public java.lang.String design(javax.servlet.http.HttpServletRequest request, @RequestParam(value="modelId",required=true) java.lang.String modelId)
@RequestMapping(value="preview") public java.lang.String preview(javax.servlet.http.HttpServletRequest request, @RequestParam(value="model",required=false) java.lang.String strCoreModelDesign, @RequestParam(value="modelId",required=true) java.lang.String modelId) throws java.lang.Exception
java.lang.Exception
@RequestMapping(value="preview/{modelId}") public java.lang.String previewRest(javax.servlet.http.HttpServletRequest request, @RequestParam(value="model",required=false) java.lang.String strCoreModelDesign, @PathVariable(value="modelId",required=true) java.lang.String modelId) throws java.lang.Exception
java.lang.Exception
@Deprecated @RequestMapping(value="show") public java.lang.String show(javax.servlet.http.HttpServletRequest request, @RequestParam(value="model",required=false) java.lang.String coreModelDesign, @RequestParam(value="modelId",required=true) java.lang.String modelId)
@RequestMapping(value="show/{modelId}") public java.lang.String showREST(javax.servlet.http.HttpServletRequest request, @RequestParam(value="model",required=false) java.lang.String coreModelDesign, @PathVariable(value="modelId",required=true) java.lang.String modelId) throws java.lang.Exception
java.lang.Exception
@ResponseBody @RequestMapping(value="add", method=PUT) public RetVo add(@RequestBody CoreModelDesign coreModelDesign) throws java.lang.Exception
java.lang.Exception
@ResponseBody @RequestMapping(value="remove", method=DELETE) public RetVo remove(@RequestBody java.util.ArrayList<java.lang.String> list) throws java.lang.Exception
java.lang.Exception
@ResponseBody @RequestMapping(value="query", method=POST) public RetPageVo query(@RequestParam java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
java.lang.Exception
@ResponseBody @RequestMapping(value="modify", method=POST) public RetVo modify(@RequestBody CoreModelDesign coreModelDesign) throws java.lang.Exception
java.lang.Exception
@ResponseBody @RequestMapping(value="queryValue", method=POST) public RetVo queryValue(@RequestBody java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
java.lang.Exception
@ResponseBody @RequestMapping(value="queryFormulaDesc", method=POST) public RetVo queryFormula() throws java.lang.Exception
java.lang.Exception
@ResponseBody @RequestMapping(value="queryFormulaDescEx", method=POST) public RetVo queryFormulaEx() throws java.lang.Exception
java.lang.Exception
@ResponseBody @RequestMapping(value="queryFormulaSqlHit", method=POST) public RetVo queryFormulaSqlHit() throws java.lang.Exception
java.lang.Exception
@ResponseBody @RequestMapping(value="cleanAll", method=DELETE) public RetVo removeAll(@RequestParam(value="modelid",required=true) java.lang.String modelid) throws java.lang.Exception
modelid
- 表单模型idjava.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="checkFormula", method=POST) public RetVo checkFormula(@RequestParam(value="formula",required=true) java.lang.String formula, @RequestParam java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
java.lang.Exception
@ResponseBody @RequestMapping(value="checkSql", method=POST) public RetVo checkSql(@RequestParam(value="formula",required=true) java.lang.String formula, @RequestParam java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
java.lang.Exception
@ResponseBody @RequestMapping(value="processModel", method=POST) public RetVo processModel(@RequestParam(value="model",required=true) java.lang.String strModel) throws java.lang.Exception
strModel
- 表单模型的字符串java.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="download", method=GET) public void downLoad(@RequestParam java.lang.String id, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
id
- 下载idrequest
- 请求对象response
- 相应对象java.io.IOException
- 出错抛出异常java.lang.Exception
protected java.io.InputStream getfileInputStream(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.StringBuilder suffix) throws java.io.IOException
request
- 请求对象response
- 相应对象suffix
- java.io.IOException
- 出错抛出异常@ResponseBody @RequestMapping(value="upload", method=POST) public RetVo upload(@RequestParam java.util.Map<java.lang.String,java.lang.Object> params, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
params
- 参数集合 catlog 存放文件的目录request
- 请求对象response
- 相应对象java.lang.Exception
- 出错会抛出异常@RequestMapping(value="refreshParents") public RetVo refreshParents(@RequestParam java.lang.String tableName)
@ResponseBody @RequestMapping(value="/copy", method=POST) public RetVo copy(@RequestBody CoreModelDesign coreModelDesign) throws java.lang.Exception
java.lang.Exception
@ResponseBody @RequestMapping(value="fileupload", method=POST) public RetVo upload(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
request
- 请求对象response
- 相应对象java.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="fileupload/base64img", method=POST) public RetVo uploadBase64Img(@RequestBody java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
params
- 请求对象java.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="queryJson", method=GET) public RetVo queryJson(@RequestParam(value="modelId") java.lang.String modelId, @RequestParam(value="designModel") java.lang.Boolean designModel) throws java.lang.Exception
modelId
- 模型iddesignModel
- 是否设计模式java.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="queryJsonbycode", method=GET) public RetVo queryJsonByCode(@RequestParam(value="modelCode") java.lang.String modelCode, @RequestParam(value="designModel") java.lang.Boolean designModel) throws java.lang.Exception
modelCode
- 模型的编号designModel
- 是否设计模式java.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="version/rolback") public RetVo rollBack(@RequestParam(value="modelId") java.lang.String modelId, @RequestParam(value="revisionId") java.lang.String revisionId) throws java.lang.Exception
modelId
- 表单模型IDrevisionId
- 版本的idjava.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="version/getlogs", method=POST) public RetPageVo getLogs(@RequestBody java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
params
- 参数mapjava.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="lock", method=POST) public RetVo lock(@RequestBody CoreModelDesign model) throws java.lang.Exception
model
- 表单模型java.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="getlockuser") public RetVo getlockuser(@RequestParam(value="modelId") java.lang.String modelId) throws java.lang.Exception
modelId
- 模型的IDjava.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="unlock", method=POST) public RetVo unLock(@RequestBody CoreModelDesign model) throws java.lang.Exception
model
- 表单模型java.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="/queryDetailPageIdByMenuId") public RetVo queryDetailPageIdByMenuId(java.lang.String menuId, javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
menuId
- 菜单idrequest
- 请求对象java.lang.Exception
@ResponseBody @RequestMapping(value="/queryDetailPageIdByMenuCode") public RetVo queryDetailPageIdByMenuCode(java.lang.String menuCode, javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
menuId
- 菜单idrequest
- 请求对象java.lang.Exception
@ResponseBody @RequestMapping(value="/getPageInfoBymenuId") public RetVo getPageInfoBymenuId(java.lang.String menuId, javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
menuId
- 菜单idrequest
- 请求对象java.lang.Exception
public java.lang.String getPageModleByMenuId(java.lang.String menuId) throws java.lang.Exception
menuId
- 菜单idjava.lang.Exception