/// <inheritdoc /> public ProcessDefinitionDeployerController(IProcessEngine engine, DeploymentConverter deploymentConverter, PageableDeploymentRespositoryService pageableRepositoryService, SecurityPoliciesApplicationService securityPoliciesApplicationService, ILoggerFactory loggerFactory) { this.repositoryService = engine.RepositoryService; this.deploymentConverter = deploymentConverter; this.pageableRepositoryService = pageableRepositoryService; this.securityPoliciesApplicationService = securityPoliciesApplicationService; logger = loggerFactory.CreateLogger <ProcessDefinitionDeployerController>(); }
/// <summary> /// 读取分页记录 /// </summary> /// <param name="repositoryService">仓储服务</param> /// <param name="pageableRepositoryService">分页仓储服务</param> /// <param name="qo">查询对象</param> /// <returns></returns> public IPage <Deployment> LoadPage(IRepositoryService repositoryService, PageableDeploymentRespositoryService pageableRepositoryService, DeploymentQuery qo) { DeploymentQueryImpl query = repositoryService.CreateDeploymentQuery() as DeploymentQueryImpl; FastCopy.Copy <DeploymentQuery, DeploymentQueryImpl>(qo, query); pageableRepositoryService.SortApplier.ApplySort(query, qo.Pageable); IPage <Deployment> defs = pageableRepositoryService.PageRetriever.LoadPage(query, qo.Pageable, pageableRepositoryService.DeploymentConverter); return(defs); }