java.lang.Object
org.activiti.cloud.services.modeling.rest.controller.ModelController
All Implemented Interfaces:
ModelRestApi

@RestController @ControllerAdvice @Transactional public class ModelController extends Object implements ModelRestApi
Controller for Model resources
  • Constructor Details

  • Method Details

    • getModels

      public org.springframework.hateoas.PagedModel<org.springframework.hateoas.EntityModel<Model>> getModels(@PathVariable String projectId, @RequestParam("type") String type, org.springframework.data.domain.Pageable pageable)
      Specified by:
      getModels in interface ModelRestApi
    • getModelsByName

      public org.springframework.hateoas.PagedModel<org.springframework.hateoas.EntityModel<Model>> getModelsByName(@PathVariable String projectId, @RequestParam("name") String name, org.springframework.data.domain.Pageable pageable)
      Specified by:
      getModelsByName in interface ModelRestApi
    • getModel

      public org.springframework.hateoas.EntityModel<Model> getModel(@PathVariable String modelId)
      Specified by:
      getModel in interface ModelRestApi
    • createModel

      public org.springframework.hateoas.EntityModel<Model> createModel(@PathVariable String projectId, @Valid @RequestBody @Valid Model model)
      Specified by:
      createModel in interface ModelRestApi
    • updateModel

      public org.springframework.hateoas.EntityModel<Model> updateModel(@PathVariable String modelId, @Valid @RequestBody @Valid Model model)
      Specified by:
      updateModel in interface ModelRestApi
    • updateModelContent

      public void updateModelContent(@PathVariable String modelId, @RequestPart("file") org.springframework.web.multipart.MultipartFile file) throws IOException
      Specified by:
      updateModelContent in interface ModelRestApi
      Throws:
      IOException
    • deleteModel

      public void deleteModel(@PathVariable String modelId)
      Specified by:
      deleteModel in interface ModelRestApi
    • getModelContent

      public void getModelContent(jakarta.servlet.http.HttpServletResponse response, @PathVariable String modelId) throws IOException
      Specified by:
      getModelContent in interface ModelRestApi
      Throws:
      IOException
    • getModelDiagram

      public void getModelDiagram(jakarta.servlet.http.HttpServletResponse response, @PathVariable String modelId) throws IOException
      Specified by:
      getModelDiagram in interface ModelRestApi
      Throws:
      IOException
    • importModel

      public org.springframework.hateoas.EntityModel<Model> importModel(@PathVariable String projectId, @RequestParam("type") String type, @RequestPart("file") org.springframework.web.multipart.MultipartFile file) throws IOException
      Specified by:
      importModel in interface ModelRestApi
      Throws:
      IOException
    • exportModel

      public void exportModel(jakarta.servlet.http.HttpServletResponse response, @PathVariable String modelId, @RequestParam(name="attachment",required=false,defaultValue="true") boolean attachment) throws IOException
      Specified by:
      exportModel in interface ModelRestApi
      Throws:
      IOException
    • getModelTypes

      public org.springframework.hateoas.PagedModel<org.springframework.hateoas.EntityModel<ModelType>> getModelTypes(org.springframework.data.domain.Pageable pageable)
      Specified by:
      getModelTypes in interface ModelRestApi
    • validateModel

      public void validateModel(@PathVariable String modelId, @RequestParam("file") org.springframework.web.multipart.MultipartFile file, @RequestParam(value="projectId",required=false) String projectId, @RequestParam(value="validateUsage",required=false) boolean validateUsage) throws IOException
      Specified by:
      validateModel in interface ModelRestApi
      Throws:
      IOException
    • validateModelExtensions

      public void validateModelExtensions(@PathVariable String modelId, @RequestPart("file") org.springframework.web.multipart.MultipartFile file, @RequestParam(value="projectId",required=false) String projectId) throws IOException
      Specified by:
      validateModelExtensions in interface ModelRestApi
      Throws:
      IOException
    • getGlobalModels

      public 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)
      Specified by:
      getGlobalModels in interface ModelRestApi
    • putProjectModelRelationship

      public 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)
      Specified by:
      putProjectModelRelationship in interface ModelRestApi
    • deleteProjectModelRelationship

      public org.springframework.hateoas.EntityModel<Model> deleteProjectModelRelationship(@PathVariable String projectId, @PathVariable String modelId)
      Specified by:
      deleteProjectModelRelationship in interface ModelRestApi
    • createModelWithoutProject

      public org.springframework.hateoas.EntityModel<Model> createModelWithoutProject(Model model)
      Specified by:
      createModelWithoutProject in interface ModelRestApi
    • findModelById

      public Model findModelById(String modelId)
    • findModelType

      public ModelType findModelType(String type)