protected UserStoryRepository getUserStoryRepository() {
return new UserStoryRepository(getSession(), getAuthorizer(), getLoggedInUserId());
}
protected List getOptions() throws HibernateException, AuthenticationException {
UserStoryRepository userStoryRepository = getUserStoryRepository();
List stories = userStoryRepository.fetchEditableStories();
List options = new ArrayList();
for (int i = 0; i < stories.size(); i++) {
UserStory s = (UserStory) stories.get(i);
options.add(new StoryModel(new IterationModel(userStoryRepository.getIteration(s)), s));
}
return options;
}