Class ModelRepositoryImpl
- java.lang.Object
-
- org.activiti.cloud.services.modeling.jpa.ModelRepositoryImpl
-
- All Implemented Interfaces:
ModelRepository<ProjectEntity,ModelEntity>
public class ModelRepositoryImpl extends Object implements ModelRepository<ProjectEntity,ModelEntity>
-
-
Constructor Summary
Constructors Constructor Description ModelRepositoryImpl(ModelJpaRepository modelJpaRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelEntitycopyModel(ModelEntity model, ProjectEntity project)ModelEntitycreateModel(ModelEntity model)voiddeleteModel(ModelEntity model)Optional<ModelEntity>findGlobalModelByNameAndType(String modelName, String modelTypeFilter)Optional<ModelEntity>findModelById(String modelId)Optional<ModelEntity>findModelByNameInProject(ProjectEntity project, String modelName, String modelTypeFilter)org.springframework.data.domain.Page<ModelEntity>getGlobalModels(ModelType modelTypeFilter, boolean includeOrphans, org.springframework.data.domain.Pageable pageable)byte[]getModelContent(ModelEntity model)byte[]getModelExport(ModelEntity model)org.springframework.data.domain.Page<ModelEntity>getModels(ProjectEntity project, ModelType modelTypeFilter, org.springframework.data.domain.Pageable pageable)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, ModelType modelTypeFilter, org.springframework.data.domain.Pageable pageable)
- Specified by:
getModelsin interfaceModelRepository<ProjectEntity,ModelEntity>
-
findModelByNameInProject
public Optional<ModelEntity> findModelByNameInProject(ProjectEntity project, String modelName, String modelTypeFilter)
- Specified by:
findModelByNameInProjectin interfaceModelRepository<ProjectEntity,ModelEntity>
-
findGlobalModelByNameAndType
public Optional<ModelEntity> findGlobalModelByNameAndType(String modelName, String modelTypeFilter)
- Specified by:
findGlobalModelByNameAndTypein interfaceModelRepository<ProjectEntity,ModelEntity>
-
findModelById
public Optional<ModelEntity> findModelById(String modelId)
- Specified by:
findModelByIdin interfaceModelRepository<ProjectEntity,ModelEntity>
-
getModelContent
public byte[] getModelContent(ModelEntity model)
- Specified by:
getModelContentin interfaceModelRepository<ProjectEntity,ModelEntity>
-
getModelExport
public byte[] getModelExport(ModelEntity model)
- Specified by:
getModelExportin interfaceModelRepository<ProjectEntity,ModelEntity>
-
createModel
public ModelEntity createModel(ModelEntity model)
- Specified by:
createModelin interfaceModelRepository<ProjectEntity,ModelEntity>
-
updateModel
public ModelEntity updateModel(ModelEntity modelToBeUpdated, ModelEntity newModel)
- Specified by:
updateModelin interfaceModelRepository<ProjectEntity,ModelEntity>
-
copyModel
public ModelEntity copyModel(ModelEntity model, ProjectEntity project)
- Specified by:
copyModelin interfaceModelRepository<ProjectEntity,ModelEntity>
-
updateModelContent
public ModelEntity updateModelContent(ModelEntity modelToBeUpdate, org.activiti.cloud.services.common.file.FileContent fileContent)
- Specified by:
updateModelContentin interfaceModelRepository<ProjectEntity,ModelEntity>
-
deleteModel
public void deleteModel(ModelEntity model)
- Specified by:
deleteModelin interfaceModelRepository<ProjectEntity,ModelEntity>
-
getGlobalModels
public org.springframework.data.domain.Page<ModelEntity> getGlobalModels(ModelType modelTypeFilter, boolean includeOrphans, org.springframework.data.domain.Pageable pageable)
- Specified by:
getGlobalModelsin interfaceModelRepository<ProjectEntity,ModelEntity>
-
getModelType
public Class<ModelEntity> getModelType()
- Specified by:
getModelTypein interfaceModelRepository<ProjectEntity,ModelEntity>
-
-