public virtual void RemoveDrafts(string tenantId, string name) { IDeploymentQuery query = new DeploymentQueryImpl(); query.SetDeploymentTenantId(tenantId).SetDeploymentName(name); IList <IDeployment> drafts = this.deploymentDataManager.FindDeploymentDrafts(query); foreach (var draft in drafts) { this.DeleteDeployment(draft.Id, true); } }
/// <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); }
/* QUERIES */ // deployment query //////////////////////////////////////// public virtual void configureDeploymentQuery(DeploymentQueryImpl query) { configureQuery(query, DEPLOYMENT); }
protected internal virtual void configureQuery(DeploymentQueryImpl query) { AuthorizationManager.configureDeploymentQuery(query); TenantManager.configureQuery(query); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @SuppressWarnings("unchecked") public java.util.List<org.camunda.bpm.engine.repository.Deployment> findDeploymentsByQueryCriteria(org.camunda.bpm.engine.impl.DeploymentQueryImpl deploymentQuery, org.camunda.bpm.engine.impl.Page page) public virtual IList <Deployment> findDeploymentsByQueryCriteria(DeploymentQueryImpl deploymentQuery, Page page) { configureQuery(deploymentQuery); return(DbEntityManager.selectList("selectDeploymentsByQueryCriteria", deploymentQuery, page)); }
public virtual long findDeploymentCountByQueryCriteria(DeploymentQueryImpl deploymentQuery) { configureQuery(deploymentQuery); return((long?)DbEntityManager.selectOne("selectDeploymentCountByQueryCriteria", deploymentQuery).Value); }