Class ModelRepositoryImpl

  • All Implemented Interfaces:
    org.activiti.cloud.modeling.repository.ModelRepository<ProjectEntity,​ModelEntity>

    public class ModelRepositoryImpl
    extends java.lang.Object
    implements org.activiti.cloud.modeling.repository.ModelRepository<ProjectEntity,​ModelEntity>
    • Constructor Detail

      • ModelRepositoryImpl

        @Autowired
        public ModelRepositoryImpl​(ModelJpaRepository modelJpaRepository)
    • Method Detail

      • getModels

        public org.springframework.data.domain.Page<ModelEntity> getModels​(ProjectEntity project,
                                                                           org.activiti.cloud.modeling.api.ModelType modelTypeFilter,
                                                                           org.springframework.data.domain.Pageable pageable)
        Specified by:
        getModels in interface org.activiti.cloud.modeling.repository.ModelRepository<ProjectEntity,​ModelEntity>
      • findModelById

        public java.util.Optional<ModelEntity> findModelById​(java.lang.String modelId)
        Specified by:
        findModelById in interface org.activiti.cloud.modeling.repository.ModelRepository<ProjectEntity,​ModelEntity>
      • getModelContent

        public byte[] getModelContent​(ModelEntity model)
        Specified by:
        getModelContent in interface org.activiti.cloud.modeling.repository.ModelRepository<ProjectEntity,​ModelEntity>
      • getModelExport

        public byte[] getModelExport​(ModelEntity model)
        Specified by:
        getModelExport in interface org.activiti.cloud.modeling.repository.ModelRepository<ProjectEntity,​ModelEntity>
      • updateModelContent

        public ModelEntity updateModelContent​(ModelEntity modelToBeUpdate,
                                              org.activiti.cloud.services.common.file.FileContent fileContent)
        Specified by:
        updateModelContent in interface org.activiti.cloud.modeling.repository.ModelRepository<ProjectEntity,​ModelEntity>
      • deleteModel

        public void deleteModel​(ModelEntity model)
        Specified by:
        deleteModel in interface org.activiti.cloud.modeling.repository.ModelRepository<ProjectEntity,​ModelEntity>
      • getModelType

        public java.lang.Class<ModelEntity> getModelType()
        Specified by:
        getModelType in interface org.activiti.cloud.modeling.repository.ModelRepository<ProjectEntity,​ModelEntity>