@RestController
@RequestMapping(value="${hsweb.web.mappings.script:script}")
@Authorize(permission="script",
description="\u52a8\u6001\u811a\u672c\u7ba1\u7406")
public class ScriptController
extends Object
implements SimpleGenericEntityController<ScriptEntity,String,org.hswebframework.web.commons.entity.param.QueryParamEntity>
| 构造器和说明 |
|---|
ScriptController() |
| 限定符和类型 | 方法和说明 |
|---|---|
ResponseMessage<Object> |
executeForGet(String id,
Map<String,Object> parameters) |
ResponseMessage<Object> |
executeFotPostAndPut(String id,
Map<String,Object> parameters) |
ScriptService |
getService() |
void |
setScriptExecutorService(ScriptExecutorService scriptExecutorService) |
void |
setScriptService(ScriptService scriptService) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmodelToEntityassertNotNull, count, getByPrimaryKey, getByPrimaryKey, list, listNoPagingsaveOrUpdate, updateByPrimaryKeyadddeleteByPrimaryKey@Autowired public void setScriptService(ScriptService scriptService)
@Autowired public void setScriptExecutorService(ScriptExecutorService scriptExecutorService)
public ScriptService getService()
getService 在接口中 CreateController<ScriptEntity,String,ScriptEntity>getService 在接口中 DeleteController<ScriptEntity,String>getService 在接口中 QueryController<ScriptEntity,String,org.hswebframework.web.commons.entity.param.QueryParamEntity>getService 在接口中 SimpleCrudController<ScriptEntity,String,org.hswebframework.web.commons.entity.param.QueryParamEntity>getService 在接口中 SimpleGenericEntityController<ScriptEntity,String,org.hswebframework.web.commons.entity.param.QueryParamEntity>getService 在接口中 UpdateController<ScriptEntity,String,ScriptEntity>@GetMapping(value="/{id}/execute")
@Authorize(action="execute",
description="\u6267\u884c\u811a\u672c")
public ResponseMessage<Object> executeForGet(@PathVariable
String id,
@RequestParam(required=false)
Map<String,Object> parameters)
throws Exception
Exception@RequestMapping(value="/{id}/execute",
method={POST,PUT})
@Authorize(action="execute",
description="\u6267\u884c\u811a\u672c")
public ResponseMessage<Object> executeFotPostAndPut(@PathVariable
String id,
@RequestBody(required=false)
Map<String,Object> parameters)
throws Exception
ExceptionCopyright © 2018. All rights reserved.