Ejemplo n.º 1
0
        protected internal virtual CountResultDto getAuthorizationCount(AuthorizationQueryDto queryDto)
        {
            AuthorizationQuery query = queryDto.toQuery(ProcessEngine);
            long count = query.count();

            return(new CountResultDto(count));
        }
Ejemplo n.º 2
0
        public virtual IList <AuthorizationDto> queryAuthorizations(AuthorizationQueryDto queryDto, int?firstResult, int?maxResults)
        {
            queryDto.ObjectMapper = ObjectMapper;
            AuthorizationQuery query = queryDto.toQuery(ProcessEngine);

            IList <Authorization> resultList;

            if (firstResult != null || maxResults != null)
            {
                resultList = executePaginatedQuery(query, firstResult, maxResults);
            }
            else
            {
                resultList = query.list();
            }

            return(AuthorizationDto.fromAuthorizationList(resultList, processEngine.ProcessEngineConfiguration));
        }
Ejemplo n.º 3
0
        public virtual CountResultDto getAuthorizationCount(UriInfo uriInfo)
        {
            AuthorizationQueryDto queryDto = new AuthorizationQueryDto(ObjectMapper, uriInfo.QueryParameters);

            return(getAuthorizationCount(queryDto));
        }
Ejemplo n.º 4
0
        public virtual IList <AuthorizationDto> queryAuthorizations(UriInfo uriInfo, int?firstResult, int?maxResults)
        {
            AuthorizationQueryDto queryDto = new AuthorizationQueryDto(ObjectMapper, uriInfo.QueryParameters);

            return(queryAuthorizations(queryDto, firstResult, maxResults));
        }