Ejemplo n.º 1
0
        public virtual IList <GroupDto> queryGroups(GroupQueryDto queryDto, int?firstResult, int?maxResults)
        {
            queryDto.ObjectMapper = ObjectMapper;
            GroupQuery query = queryDto.toQuery(ProcessEngine);

            IList <Group> resultList;

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

            return(GroupDto.fromGroupList(resultList));
        }