Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
        /// <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);
        }
Exemplo n.º 3
0
        /* QUERIES */

        // deployment query ////////////////////////////////////////

        public virtual void configureDeploymentQuery(DeploymentQueryImpl query)
        {
            configureQuery(query, DEPLOYMENT);
        }
Exemplo n.º 4
0
 protected internal virtual void configureQuery(DeploymentQueryImpl query)
 {
     AuthorizationManager.configureDeploymentQuery(query);
     TenantManager.configureQuery(query);
 }
Exemplo n.º 5
0
//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));
        }
Exemplo n.º 6
0
 public virtual long findDeploymentCountByQueryCriteria(DeploymentQueryImpl deploymentQuery)
 {
     configureQuery(deploymentQuery);
     return((long?)DbEntityManager.selectOne("selectDeploymentCountByQueryCriteria", deploymentQuery).Value);
 }