Interface ModelRestApi
- All Known Implementing Classes:
ModelController
@RestController
@RequestMapping(path="/v1",
produces={"application/hal+json","application/json"})
public interface ModelRestApi
Controller for process resources.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptionorg.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(jakarta.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> voidgetModelContent(jakarta.servlet.http.HttpServletResponse response, String modelId) voidgetModelDiagram(jakarta.servlet.http.HttpServletResponse response, String modelId) org.springframework.hateoas.PagedModel<org.springframework.hateoas.EntityModel<Model>> org.springframework.hateoas.PagedModel<org.springframework.hateoas.EntityModel<Model>> getModelsByName(String projectId, String name, 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 Details
-
MODELS
- See Also:
-
GET_MODELS_TYPE_PARAM_DESCR
- See Also:
-
GET_MODELS_NAME_PARAM_DESCR
- See Also:
-
GET_MODELS_PROJECT_ID_PARAM_DESCR
- See Also:
-
GET_MODEL_ID_PARAM_DESCR
- See Also:
-
CREATE_MODEL_PARAM_DESCR
- See Also:
-
CREATE_MODEL_PROJECT_ID_PARAM_DESCR
- See Also:
-
UPDATE_MODEL_ID_PARAM_DESCR
- See Also:
-
UPDATE_MODEL_PARAM_DESCR
- See Also:
-
UPDATE_MODEL_FILE_PARAM_DESCR
- See Also:
-
DELETE_MODEL_ID_PARAM_DESCR
- See Also:
-
GET_MODEL_CONTENT_ID_PARAM_DESCR
- See Also:
-
IMPORT_MODEL_TYPE_PARAM_DESCR
- See Also:
-
IMPORT_MODEL_FILE_PARAM_DESCR
- See Also:
-
EXPORT_MODEL_ID_PARAM_DESCR
- See Also:
-
VALIDATE_MODEL_ID_PARAM_DESCR
- See Also:
-
VALIDATE_MODEL_FILE_PARAM_DESCR
- See Also:
-
VALIDATE_EXTENSIONS_FILE_PARAM_DESCR
- See Also:
-
MODEL_TYPE_PARAM_NAME
- See Also:
-
MODEL_NAME_PARAM_NAME
- See Also:
-
VALIDATE_PROJECT_ID_PARAM_DESCR
- See Also:
-
PROJECT_ID_PARAM_NAME
- See Also:
-
MODEL_USED_PARAM_DESCR
- See Also:
-
MODEL_USED_PARAM_NAME
- See Also:
-
INCLUDE_ORPHANS_PARAM_DESCR
- See Also:
-
INCLUDE_ORPHANS_PARAM_NAME
- See Also:
-
RELATE_MODEL_PROJECT_PROJECT_ID_PARAM_DESCR
- See Also:
-
RELATE_MODEL_PROJECT_MODEL_ID_PARAM_DESCR
- See Also:
-
SCOPE_PARAM_DESCR
- See Also:
-
SCOPE_PARAM_NAME
- See Also:
-
FORCE_PARAM_DESCR
- See Also:
-
FORCE_PARAM_NAME
- See Also:
-
DELETE_RELATIONSHIP_MODEL_PROJECT_PROJECT_ID_PARAM_DESCR
- See Also:
-
DELETE_RELATIONSHIP_MODEL_PROJECT_MODEL_ID_PARAM_DESCR
- See Also:
-
-
Method Details
-
getModels
-
getModelsByName
-
getModel
-
createModel
-
updateModel
-
updateModelContent
@PutMapping(path="/models/{modelId}/content", consumes="multipart/form-data") @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(jakarta.servlet.http.HttpServletResponse response, @PathVariable String modelId) throws IOException - Throws:
IOException
-
getModelDiagram
@GetMapping(path="/models/{modelId}/content", produces="image/svg+xml") void getModelDiagram(jakarta.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(jakarta.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(path="/models/{modelId}/validate", consumes="multipart/form-data") @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(path="/models/{modelId}/validate/extensions", consumes="multipart/form-data") @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
-
createModelWithoutProject
-