Package org.nxplanner.domain.repository

Examples of org.nxplanner.domain.repository.UserStoryRepository


        expectedStories[3] = newUserStory(secondWritableIteration);

        commitCloseAndOpenSession();

        Authorizer authorizer = new AuthorizerImpl();
        UserStoryRepository dao = new UserStoryRepository(session, authorizer, person.getId());
        List list = dao.fetchEditableStories();

        ArrayAssert.assertEquals("stories returned", expectedStories, list.toArray());
    }
View Full Code Here


import java.util.List;

public class StoryOptionsTag extends OptionsTag
{
    protected UserStoryRepository getUserStoryRepository() {
        return new UserStoryRepository(getSession(), getAuthorizer(), getLoggedInUserId());
    }
View Full Code Here

    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;
    }
View Full Code Here

TOP

Related Classes of org.nxplanner.domain.repository.UserStoryRepository

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.