Exemplo n.º 1
0
        public static StoryInfoList StoryFetchInfoList(ISprint sprint)
        {
            ProjectUserRepository.AuthorizeProjectUser(sprint.ProjectId);

            return(StoryInfoList.FetchStoryInfoList(
                       new StoryDataCriteria
            {
                ProjectId = new[] { sprint.ProjectId },
                SprintId = sprint.SprintId
            }));
        }
Exemplo n.º 2
0
        public static StoryInfoList StoryFetchInfoList(IProject project, bool?isArchived)
        {
            ProjectUserRepository.AuthorizeProjectUser(project.ProjectId);

            return(StoryInfoList.FetchStoryInfoList(
                       new StoryDataCriteria
            {
                ProjectId = new[] { project.ProjectId },
                IsArchived = isArchived
            }));
        }
Exemplo n.º 3
0
        public static StoryInfoList StoryFetchInfoList(StoryDataCriteria criteria)
        {
            var projects = ProjectRepository.ProjectFetchInfoList()
                           .Select(row => row.ProjectId);

            if (criteria.ProjectId == null)
            {
                criteria.ProjectId = projects.ToArray();
            }

            return(StoryInfoList.FetchStoryInfoList(criteria));
        }
Exemplo n.º 4
0
        public static StoryInfoList StoryFetchInfoList(IProject[] projects, bool?isArchived)
        {
            var projectIds = projects.Select(row => row.ProjectId).ToArray();

            ProjectUserRepository.AuthorizeProjectUser(projectIds);

            return(StoryInfoList.FetchStoryInfoList(
                       new StoryDataCriteria
            {
                ProjectId = projectIds,
                IsArchived = isArchived
            }));
        }