Interface ModelRestApi
-
- All Known Implementing Classes:
ModelController
@RestController @RequestMapping(path="/v1", produces={"application/hal+json","application/json"}) public interface ModelRestApiController for process resources.
-
-
Field Summary
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.springframework.hateoas.EntityModel<Model>createModel(String projectId, Model model)org.springframework.hateoas.EntityModel<Model>createModelWithoutProject(Model model)voiddeleteModel(String modelId)org.springframework.hateoas.EntityModel<Model>deleteProjectModelRelationship(String projectId, String modelId)voidexportModel(javax.servlet.http.HttpServletResponse response, String modelId, boolean attachment)org.springframework.hateoas.PagedModel<org.springframework.hateoas.EntityModel<Model>>getGlobalModels(String type, boolean includeOrphans, org.springframework.data.domain.Pageable pageable)org.springframework.hateoas.EntityModel<Model>getModel(String modelId)voidgetModelContent(javax.servlet.http.HttpServletResponse response, String modelId)voidgetModelDiagram(javax.servlet.http.HttpServletResponse response, String modelId)org.springframework.hateoas.PagedModel<org.springframework.hateoas.EntityModel<Model>>getModels(String projectId, String type, org.springframework.data.domain.Pageable pageable)org.springframework.hateoas.PagedModel<org.springframework.hateoas.EntityModel<ModelType>>getModelTypes(org.springframework.data.domain.Pageable pageable)org.springframework.hateoas.EntityModel<Model>importModel(String projectId, String type, org.springframework.web.multipart.MultipartFile file)org.springframework.hateoas.EntityModel<Model>putProjectModelRelationship(String projectId, String modelId, String scope, boolean force)org.springframework.hateoas.EntityModel<Model>updateModel(String modelId, Model model)voidupdateModelContent(String modelId, org.springframework.web.multipart.MultipartFile file)voidvalidateModel(String modelId, org.springframework.web.multipart.MultipartFile file, String projectId, boolean isUsed)voidvalidateModelExtensions(String modelId, org.springframework.web.multipart.MultipartFile file, String projectId)
-
-
-
Field Detail
-
MODELS
static final String MODELS
- See Also:
- Constant Field Values
-
GET_MODELS_TYPE_PARAM_DESCR
static final String GET_MODELS_TYPE_PARAM_DESCR
- See Also:
- Constant Field Values
-
GET_MODELS_PROJECT_ID_PARAM_DESCR
static final String GET_MODELS_PROJECT_ID_PARAM_DESCR
- See Also:
- Constant Field Values
-
GET_MODEL_ID_PARAM_DESCR
static final String GET_MODEL_ID_PARAM_DESCR
- See Also:
- Constant Field Values
-
CREATE_MODEL_PARAM_DESCR
static final String CREATE_MODEL_PARAM_DESCR
- See Also:
- Constant Field Values
-
CREATE_MODEL_PROJECT_ID_PARAM_DESCR
static final String CREATE_MODEL_PROJECT_ID_PARAM_DESCR
- See Also:
- Constant Field Values
-
UPDATE_MODEL_ID_PARAM_DESCR
static final String UPDATE_MODEL_ID_PARAM_DESCR
- See Also:
- Constant Field Values
-
UPDATE_MODEL_PARAM_DESCR
static final String UPDATE_MODEL_PARAM_DESCR
- See Also:
- Constant Field Values
-
UPDATE_MODEL_FILE_PARAM_DESCR
static final String UPDATE_MODEL_FILE_PARAM_DESCR
- See Also:
- Constant Field Values
-
DELETE_MODEL_ID_PARAM_DESCR
static final String DELETE_MODEL_ID_PARAM_DESCR
- See Also:
- Constant Field Values
-
GET_MODEL_CONTENT_ID_PARAM_DESCR
static final String GET_MODEL_CONTENT_ID_PARAM_DESCR
- See Also:
- Constant Field Values
-
IMPORT_MODEL_TYPE_PARAM_DESCR
static final String IMPORT_MODEL_TYPE_PARAM_DESCR
- See Also:
- Constant Field Values
-
IMPORT_MODEL_FILE_PARAM_DESCR
static final String IMPORT_MODEL_FILE_PARAM_DESCR
- See Also:
- Constant Field Values
-
EXPORT_MODEL_ID_PARAM_DESCR
static final String EXPORT_MODEL_ID_PARAM_DESCR
- See Also:
- Constant Field Values
-
VALIDATE_MODEL_ID_PARAM_DESCR
static final String VALIDATE_MODEL_ID_PARAM_DESCR
- See Also:
- Constant Field Values
-
VALIDATE_MODEL_FILE_PARAM_DESCR
static final String VALIDATE_MODEL_FILE_PARAM_DESCR
- See Also:
- Constant Field Values
-
VALIDATE_EXTENSIONS_FILE_PARAM_DESCR
static final String VALIDATE_EXTENSIONS_FILE_PARAM_DESCR
- See Also:
- Constant Field Values
-
MODEL_TYPE_PARAM_NAME
static final String MODEL_TYPE_PARAM_NAME
- See Also:
- Constant Field Values
-
VALIDATE_PROJECT_ID_PARAM_DESCR
static final String VALIDATE_PROJECT_ID_PARAM_DESCR
- See Also:
- Constant Field Values
-
PROJECT_ID_PARAM_NAME
static final String PROJECT_ID_PARAM_NAME
- See Also:
- Constant Field Values
-
MODEL_USED_PARAM_DESCR
static final String MODEL_USED_PARAM_DESCR
- See Also:
- Constant Field Values
-
MODEL_USED_PARAM_NAME
static final String MODEL_USED_PARAM_NAME
- See Also:
- Constant Field Values
-
INCLUDE_ORPHANS_PARAM_DESCR
static final String INCLUDE_ORPHANS_PARAM_DESCR
- See Also:
- Constant Field Values
-
INCLUDE_ORPHANS_PARAM_NAME
static final String INCLUDE_ORPHANS_PARAM_NAME
- See Also:
- Constant Field Values
-
RELATE_MODEL_PROJECT_PROJECT_ID_PARAM_DESCR
static final String RELATE_MODEL_PROJECT_PROJECT_ID_PARAM_DESCR
- See Also:
- Constant Field Values
-
RELATE_MODEL_PROJECT_MODEL_ID_PARAM_DESCR
static final String RELATE_MODEL_PROJECT_MODEL_ID_PARAM_DESCR
- See Also:
- Constant Field Values
-
SCOPE_PARAM_DESCR
static final String SCOPE_PARAM_DESCR
- See Also:
- Constant Field Values
-
SCOPE_PARAM_NAME
static final String SCOPE_PARAM_NAME
- See Also:
- Constant Field Values
-
FORCE_PARAM_DESCR
static final String FORCE_PARAM_DESCR
- See Also:
- Constant Field Values
-
FORCE_PARAM_NAME
static final String FORCE_PARAM_NAME
- See Also:
- Constant Field Values
-
DELETE_RELATIONSHIP_MODEL_PROJECT_PROJECT_ID_PARAM_DESCR
static final String DELETE_RELATIONSHIP_MODEL_PROJECT_PROJECT_ID_PARAM_DESCR
- See Also:
- Constant Field Values
-
DELETE_RELATIONSHIP_MODEL_PROJECT_MODEL_ID_PARAM_DESCR
static final String DELETE_RELATIONSHIP_MODEL_PROJECT_MODEL_ID_PARAM_DESCR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getModels
@GetMapping(path="/projects/{projectId}/models") org.springframework.hateoas.PagedModel<org.springframework.hateoas.EntityModel<Model>> getModels(@PathVariable String projectId, @RequestParam("type") String type, org.springframework.data.domain.Pageable pageable)
-
getModel
@GetMapping(path="/models/{modelId}") org.springframework.hateoas.EntityModel<Model> getModel(@PathVariable String modelId)
-
createModel
@PostMapping(path="/projects/{projectId}/models") @ResponseStatus(CREATED) org.springframework.hateoas.EntityModel<Model> createModel(@PathVariable String projectId, @RequestBody Model model)
-
updateModel
@PutMapping(path="/models/{modelId}") org.springframework.hateoas.EntityModel<Model> updateModel(@PathVariable String modelId, @RequestBody Model model)
-
updateModelContent
@PutMapping(path="/models/{modelId}/content") @ResponseStatus(NO_CONTENT) void updateModelContent(@PathVariable String modelId, @RequestPart("file") org.springframework.web.multipart.MultipartFile file) throws IOException- Throws:
IOException
-
deleteModel
@DeleteMapping(path="/models/{modelId}") @ResponseStatus(NO_CONTENT) void deleteModel(@PathVariable String modelId)
-
getModelContent
@GetMapping(path="/models/{modelId}/content") void getModelContent(javax.servlet.http.HttpServletResponse response, @PathVariable String modelId) throws IOException- Throws:
IOException
-
getModelDiagram
@GetMapping(path="/models/{modelId}/content", produces="image/svg+xml") void getModelDiagram(javax.servlet.http.HttpServletResponse response, @PathVariable String modelId) throws IOException- Throws:
IOException
-
importModel
@PostMapping(path="/projects/{projectId}/models/import", consumes="multipart/form-data") @ResponseStatus(CREATED) org.springframework.hateoas.EntityModel<Model> importModel(@PathVariable String projectId, @RequestParam("type") String type, @RequestPart("file") org.springframework.web.multipart.MultipartFile file) throws IOException- Throws:
IOException
-
exportModel
@GetMapping(path="/models/{modelId}/export") void exportModel(javax.servlet.http.HttpServletResponse response, @PathVariable String modelId, @RequestParam(name="attachment",required=false,defaultValue="true") boolean attachment) throws IOException- Throws:
IOException
-
getModelTypes
@GetMapping(path="/model-types") org.springframework.hateoas.PagedModel<org.springframework.hateoas.EntityModel<ModelType>> getModelTypes(org.springframework.data.domain.Pageable pageable)
-
validateModel
@PostMapping("/models/{modelId}/validate") @ResponseStatus(NO_CONTENT) void validateModel(@PathVariable String modelId, @RequestPart("file") org.springframework.web.multipart.MultipartFile file, @RequestParam(value="projectId",required=false) String projectId, @RequestParam(value="The model is going to be validated and checked used in other model",required=false) boolean isUsed) throws IOException- Throws:
IOException
-
validateModelExtensions
@PostMapping("/models/{modelId}/validate/extensions") @ResponseStatus(NO_CONTENT) void validateModelExtensions(@PathVariable String modelId, @RequestPart("file") org.springframework.web.multipart.MultipartFile file, @RequestParam(value="projectId",required=false) String projectId) throws IOException- Throws:
IOException
-
getGlobalModels
@GetMapping(path="/models") org.springframework.hateoas.PagedModel<org.springframework.hateoas.EntityModel<Model>> getGlobalModels(@RequestParam("type") String type, @RequestParam(value="includeOrphans",required=false,defaultValue="false") boolean includeOrphans, org.springframework.data.domain.Pageable pageable)
-
putProjectModelRelationship
@PutMapping(path="/projects/{projectId}/models/{modelId}") org.springframework.hateoas.EntityModel<Model> putProjectModelRelationship(@PathVariable String projectId, @PathVariable String modelId, @RequestParam(value="scope",required=false) String scope, @RequestParam(value="force",required=false,defaultValue="false") boolean force)
-
deleteProjectModelRelationship
@DeleteMapping(path="/projects/{projectId}/models/{modelId}") org.springframework.hateoas.EntityModel<Model> deleteProjectModelRelationship(@PathVariable String projectId, @PathVariable String modelId)
-
-