Package cronapi.rest
Class CronapiREST
- java.lang.Object
-
- cronapi.rest.CronapiREST
-
@RestController @RequestMapping("/api/cronapi") public class CronapiREST extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classCronapiREST.TranslationPath
-
Constructor Summary
Constructors Constructor Description CronapiREST()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcrudDelete(String entity)org.springframework.http.HttpEntity<Object>crudGet(String entity, org.springframework.data.domain.Pageable pageable)org.springframework.http.HttpEntity<Object>crudPost(String entity, Var data)org.springframework.http.HttpEntity<Object>crudPut(String entity, Var data)org.springframework.http.HttpEntity<EntityMetadata>dataOptions(String entity)VardeleteRest(String clazz)VardeleteRestLegacy(String clazz)voiddownloadFile(String entity, String field, Var data)voiddownloadFileGet(String entity, String field, String ids)voidfilePreview(String fileName)RestResultgetParam(String clazz)VargetRest(String clazz)VargetRestLegacy(String clazz)RestResultpostBody(RestBody body, String clazz)RestResultpostParams(Var[] vars, String clazz)VarpostRest(Var var, String clazz)VarpostRestBinary(String body, String clazz)VarpostRestFile(String clazz, javax.servlet.http.HttpServletRequest request)VarpostRestForm(Map<String,String> body, String clazz)VarpostRestLegacy(Var[] vars, String clazz)VarpostRestRaw(String body, String clazz)VarputRest(Var var, String clazz)VarputRestLegacy(Var[] vars, String clazz)ObjectqueryDelete(String id, boolean isFromDataSource)org.springframework.http.HttpEntity<?>queryGet(String id, org.springframework.data.domain.Pageable pageable)org.springframework.http.HttpEntity<Var>queryGetNew(String id)ObjectqueryPost(String id, Map<?,?> rawData, boolean isFromDataSource)ObjectqueryPut(String id, Map<?,?> rawData, boolean isFromDataSource)List<SecurityUtil.SecurityGroup>securityRoles()org.springframework.http.ResponseEntity<Object>uploadFile(org.springframework.web.multipart.MultipartFile[] uploadfiles)
-
-
-
Method Detail
-
dataOptions
@RequestMapping(method=GET, value="/metadata/{entity}/**") public org.springframework.http.HttpEntity<EntityMetadata> dataOptions(@PathVariable("entity") String entity) throws Exception- Throws:
Exception
-
crudGet
@RequestMapping(method=GET, value="/crud/{entity}/**") public org.springframework.http.HttpEntity<Object> crudGet(@PathVariable("entity") String entity, org.springframework.data.domain.Pageable pageable) throws Exception- Throws:
Exception
-
crudPut
@RequestMapping(method=PUT, value="/crud/{entity}/**") public org.springframework.http.HttpEntity<Object> crudPut(@PathVariable("entity") String entity, @RequestBody Var data) throws Exception- Throws:
Exception
-
crudPost
@RequestMapping(method=POST, value="/crud/{entity}/**") public org.springframework.http.HttpEntity<Object> crudPost(@PathVariable("entity") String entity, @RequestBody Var data) throws Exception- Throws:
Exception
-
crudDelete
@RequestMapping(method=DELETE, value="/crud/{entity}/**") public void crudDelete(@PathVariable("entity") String entity) throws Exception- Throws:
Exception
-
queryGetNew
@RequestMapping(method=GET, value="/query/{id}/__new__") public org.springframework.http.HttpEntity<Var> queryGetNew(@PathVariable("id") String id) throws Exception- Throws:
Exception
-
queryGet
@RequestMapping(method=GET, value="/query/{id}/**") public org.springframework.http.HttpEntity<?> queryGet(@PathVariable("id") String id, org.springframework.data.domain.Pageable pageable) throws Exception- Throws:
Exception
-
queryPost
@RequestMapping(method=POST, value="/query/{id}/**") public Object queryPost(@PathVariable("id") String id, @RequestBody Map<?,?> rawData, @RequestHeader(value="X-From-DataSource",defaultValue="false") boolean isFromDataSource) throws Exception- Throws:
Exception
-
queryPut
@RequestMapping(method=PUT, value="/query/{id}/**") public Object queryPut(@PathVariable("id") String id, @RequestBody Map<?,?> rawData, @RequestHeader(value="X-From-DataSource",defaultValue="false") boolean isFromDataSource) throws Exception- Throws:
Exception
-
queryDelete
@RequestMapping(method=DELETE, value="/query/{id}/**") public Object queryDelete(@PathVariable("id") String id, @RequestHeader(value="X-From-DataSource",defaultValue="false") boolean isFromDataSource) throws Exception- Throws:
Exception
-
postBody
@RequestMapping(method=POST, value="/call/body/{class}/**") public RestResult postBody(@RequestBody RestBody body, @PathVariable("class") String clazz) throws Exception- Throws:
Exception
-
getParam
@RequestMapping(method=GET, value="/call/{class}/**") public RestResult getParam(@PathVariable("class") String clazz) throws Exception- Throws:
Exception
-
postParams
@RequestMapping(method=POST, value="/call/{class}/**") public RestResult postParams(@RequestBody Var[] vars, @PathVariable("class") String clazz) throws Exception- Throws:
Exception
-
getRest
@RequestMapping(method=GET, value="/rest/{class}/**") public Var getRest(@PathVariable("class") String clazz) throws Exception- Throws:
Exception
-
postRestRaw
@RequestMapping(method=POST, value="/rest/raw/{class}/**") public Var postRestRaw(@RequestBody(required=false) String body, @PathVariable("class") String clazz) throws Exception- Throws:
Exception
-
postRestBinary
@RequestMapping(method=POST, value="/rest/{class}/**", consumes="text/plain") public Var postRestBinary(@RequestBody(required=false) String body, @PathVariable("class") String clazz) throws Exception- Throws:
Exception
-
postRestForm
@RequestMapping(method=POST, value="/rest/{class}/**", consumes="application/x-www-form-urlencoded") public Var postRestForm(@RequestParam Map<String,String> body, @PathVariable("class") String clazz) throws Exception- Throws:
Exception
-
postRestFile
@RequestMapping(method=POST, value="/rest/{class}/**", consumes="multipart/form-data") public Var postRestFile(@PathVariable("class") String clazz, javax.servlet.http.HttpServletRequest request) throws Exception- Throws:
Exception
-
postRest
@RequestMapping(method=POST, value="/rest/{class}/**", consumes={"application/json","application/atom+xml"}) public Var postRest(@RequestBody(required=false) Var var, @PathVariable("class") String clazz) throws Exception- Throws:
Exception
-
putRest
@RequestMapping(method=PUT, value="/rest/{class}/**") public Var putRest(@RequestBody(required=false) Var var, @PathVariable("class") String clazz) throws Exception- Throws:
Exception
-
deleteRest
@RequestMapping(method=DELETE, value="/rest/{class}/**") public Var deleteRest(@PathVariable("class") String clazz) throws Exception- Throws:
Exception
-
postRestLegacy
@RequestMapping(method=POST, value="/legacyrest/{class}/**") public Var postRestLegacy(@RequestBody(required=false) Var[] vars, @PathVariable("class") String clazz) throws Exception- Throws:
Exception
-
getRestLegacy
@RequestMapping(method=GET, value="/legacyrest/{class}/**") public Var getRestLegacy(@PathVariable("class") String clazz) throws Exception- Throws:
Exception
-
putRestLegacy
@RequestMapping(method=PUT, value="/legacyrest/{class}/**") public Var putRestLegacy(@RequestBody(required=false) Var[] vars, @PathVariable("class") String clazz) throws Exception- Throws:
Exception
-
deleteRestLegacy
@RequestMapping(method=DELETE, value="/legacyrest/{class}/**") public Var deleteRestLegacy(@PathVariable("class") String clazz) throws Exception- Throws:
Exception
-
securityRoles
@RequestMapping(method=GET, value="/security/roles") public List<SecurityUtil.SecurityGroup> securityRoles() throws Exception- Throws:
Exception
-
filePreview
@RequestMapping(method=GET, value="/filePreview/{fileName}/**") public void filePreview(@PathVariable("fileName") String fileName) throws Exception- Throws:
Exception
-
downloadFile
@RequestMapping(method=POST, value="/downloadFile/{entity}/{field}/**") public void downloadFile(@PathVariable("entity") String entity, @PathVariable("field") String field, @RequestBody Var data) throws Exception- Throws:
Exception
-
downloadFileGet
@RequestMapping(method=GET, value="/downloadFile/{entity}/{field}/{ids}/**") public void downloadFileGet(@PathVariable("entity") String entity, @PathVariable("field") String field, @PathVariable("ids") String ids) throws Exception- Throws:
Exception
-
-