Class ModelRepositoryImpl
- java.lang.Object
-
- org.activiti.cloud.services.modeling.jpa.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 Summary
Constructors Constructor Description ModelRepositoryImpl(ModelJpaRepository modelJpaRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelEntitycreateModel(ModelEntity model)voiddeleteModel(ModelEntity model)java.util.Optional<ModelEntity>findModelById(java.lang.String modelId)byte[]getModelContent(ModelEntity model)byte[]getModelExport(ModelEntity model)org.springframework.data.domain.Page<ModelEntity>getModels(ProjectEntity project, org.activiti.cloud.modeling.api.ModelType modelTypeFilter, org.springframework.data.domain.Pageable pageable)java.lang.Class<ModelEntity>getModelType()ModelEntityupdateModel(ModelEntity modelToBeUpdated, ModelEntity newModel)ModelEntityupdateModelContent(ModelEntity modelToBeUpdate, org.activiti.cloud.services.common.file.FileContent fileContent)
-
-
-
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:
getModelsin interfaceorg.activiti.cloud.modeling.repository.ModelRepository<ProjectEntity,ModelEntity>
-
findModelById
public java.util.Optional<ModelEntity> findModelById(java.lang.String modelId)
- Specified by:
findModelByIdin interfaceorg.activiti.cloud.modeling.repository.ModelRepository<ProjectEntity,ModelEntity>
-
getModelContent
public byte[] getModelContent(ModelEntity model)
- Specified by:
getModelContentin interfaceorg.activiti.cloud.modeling.repository.ModelRepository<ProjectEntity,ModelEntity>
-
getModelExport
public byte[] getModelExport(ModelEntity model)
- Specified by:
getModelExportin interfaceorg.activiti.cloud.modeling.repository.ModelRepository<ProjectEntity,ModelEntity>
-
createModel
public ModelEntity createModel(ModelEntity model)
- Specified by:
createModelin interfaceorg.activiti.cloud.modeling.repository.ModelRepository<ProjectEntity,ModelEntity>
-
updateModel
public ModelEntity updateModel(ModelEntity modelToBeUpdated, ModelEntity newModel)
- Specified by:
updateModelin interfaceorg.activiti.cloud.modeling.repository.ModelRepository<ProjectEntity,ModelEntity>
-
updateModelContent
public ModelEntity updateModelContent(ModelEntity modelToBeUpdate, org.activiti.cloud.services.common.file.FileContent fileContent)
- Specified by:
updateModelContentin interfaceorg.activiti.cloud.modeling.repository.ModelRepository<ProjectEntity,ModelEntity>
-
deleteModel
public void deleteModel(ModelEntity model)
- Specified by:
deleteModelin interfaceorg.activiti.cloud.modeling.repository.ModelRepository<ProjectEntity,ModelEntity>
-
getModelType
public java.lang.Class<ModelEntity> getModelType()
- Specified by:
getModelTypein interfaceorg.activiti.cloud.modeling.repository.ModelRepository<ProjectEntity,ModelEntity>
-
-