Package net.sf.pmr.agilePlanning.service

Examples of net.sf.pmr.agilePlanning.service.IterationService


        request.setAttribute("basicProject.numberOfStoryCompleted", numberOfStoryCompleted);
        request.setAttribute("basicProject.numberOfStoryInProgress", numberOfStoryInProgress);
       
        // Afficher le nombre d'iteration
        int numberOfIteration = 0;
        IterationService iterationService = AgilePlanningObjectFactory.getIterationService();
        if (myWorkspaceForm.getProjectId() > 0) {
            numberOfIteration = iterationService.findByProjectPersistanceId(myWorkspaceForm.getProjectId()).size();
        }
        request.setAttribute("basicProject.numberOfIteration", Integer.valueOf(numberOfIteration));
       
        // Afficher le nombre de release
        int numberOfRelease = 0;
View Full Code Here


      int iterationPersistanceId = 0;
     
      //String iterationProgressBar = "";
     

        IterationService iterationService = AgilePlanningObjectFactory.getIterationService();
        if (myWorkspaceForm.getProjectId() > 0) {
         
          Iteration iteration = iterationService.findCurrentIteration(myWorkspaceForm.getProjectId());
         
          Set<Story> stories = new HashSet<Story>();
         
          if (iteration != null) {
           
View Full Code Here

     */
    private void populateSummary(final HttpServletRequest request) {
       
        // Get the services
        StoryService storyService = AgilePlanningObjectFactory.getStoryService();
        IterationService iterationService = AgilePlanningObjectFactory.getIterationService();
        ReleaseService releaseService = AgilePlanningObjectFactory.getReleaseService();
       
       
        request.setAttribute("numberOfStory", new Integer(storyService.findByProjectPersistanceId(((Integer) request.getSession().getAttribute("basicProject.persistanceId")).intValue()).size()));
        request.setAttribute("numberOfIteration", new Integer(iterationService.findByProjectPersistanceId(((Integer) request.getSession().getAttribute("basicProject.persistanceId")).intValue()).size()));
        request.setAttribute("numberOfRelease", new Integer(releaseService.findByProjectPersistanceId(((Integer) request.getSession().getAttribute("basicProject.persistanceId")).intValue()).size()));
       
    }
View Full Code Here

    public ActionForward list(final ActionMapping mapping, final ActionForm form,
        final HttpServletRequest request, final HttpServletResponse response)
            throws Exception {

        // get the  service
        IterationService iterationService = AgilePlanningObjectFactory.getIterationService();

        // list the stories for the current project
        Set<Iteration> iterations = iterationService.findByProjectPersistanceId(((Integer) request.getSession().getAttribute("basicProject.persistanceId")).intValue());
       
        // mise dans la request de la liste des view.
        request.setAttribute("iterationList", this.buildIterationViewsFromIterations(iterations));
   
        // populate summary
View Full Code Here

            throws Exception {

        // TODO Faire une m�thode de s�curit� pour v�rifier le user

        // get the  service
        IterationService iterationService = AgilePlanningObjectFactory.getIterationService();
       
        // find the iteration... if needed
        if (StringUtils.isNotEmpty( (String) request.getParameter("persistanceId"))) {
     
            Iteration iteration = iterationService.findByPersistanceId(Integer.parseInt((String)request.getParameter("persistanceId")));

            // populate the form
            IterationForm iterationForm = (IterationForm) form;
           
           iterationForm.setEndDate(iteration.getEnd());
View Full Code Here

    public ActionForward save(ActionMapping mapping, ActionForm form,
            HttpServletRequest request, HttpServletResponse response)
            throws Exception {

        // get the  service
        IterationService iterationService = AgilePlanningObjectFactory.getIterationService();
       
        // get the form
        IterationForm iterationform = (IterationForm) form;

        // TODO faire une seul m�thode iterationService.save ?
        Errors errors = null;
        // get the current basicProject from the session
        Integer basicProjectPersistanceId = (Integer) request.getSession().getAttribute("basicProject.persistanceId");
        // save the iteration
        if (iterationform.getPersistanceId() == 0) {
            // add
            errors = iterationService.add(basicProjectPersistanceId.intValue(), iterationform.getStartDate(), iterationform.getEndDate());   
        } else {
            // update
            errors = iterationService.update(iterationform.getStartDate(), iterationform.getEndDate(), iterationform.getPersistanceId(), iterationform.getPersistanceVersion());
        }

        // Convert into struts action errors
        ActionMessages actionMessages = new ActionMessages();
View Full Code Here

    public ActionForward storiesToAdd(ActionMapping mapping, ActionForm form,
            HttpServletRequest request, HttpServletResponse response)
            throws Exception {

        // get the service
      IterationService iterationService = AgilePlanningObjectFactory.getIterationService();
     
        // list the stories for the iteration
      Set<Story> stories = iterationService.findStoriesToAdd(Integer.parseInt(request.getSession().getAttribute("basicProject.persistanceId").toString()), Integer.parseInt(request.getParameter("iterationPersistanceId")));
     
      // build the set of storyViews
      Set<StoryView> storyViews = this.buildStoryViewsFromStories(stories);
     
        // put the storyViews in the request
View Full Code Here

        }
     
    }
     
      // 3. Enfin, on appel le service d'ajout
        IterationService iterationService = AgilePlanningObjectFactory.getIterationService();
       
        // TODO : recupérer la persistanveVersion dans la request !!!
       
        Iteration iteration = iterationService.findByPersistanceId(Integer.parseInt(request.getParameter("iterationPersistanceId")));
       
        long persistanceVersion = iteration.getPersistanceVersion();
       
       
        // ajout
        Errors errors = iterationService.addStories(storiesToAdd, Integer.parseInt(request.getParameter("iterationPersistanceId")), persistanceVersion);

        // traitement des erreurs...
        // ... si des erreurs sont trouvée...
        if (errors.hasErrors()) {
View Full Code Here

        }
     
    }
     
      // 3. Enfin, on appel le service de suppression
        IterationService iterationService = AgilePlanningObjectFactory.getIterationService();
       
        // TODO : recupérer la persistanveVersion dans la request !!!
       
        Iteration iteration = iterationService.findByPersistanceId(Integer.parseInt(request.getParameter("iterationPersistanceId")));
       
        long persistanceVersion = iteration.getPersistanceVersion();

       
        // ajout
        Errors errors = iterationService.removeStories(storiesToRemove, Integer.parseInt(request.getParameter("iterationPersistanceId")), persistanceVersion);

        // traitement des erreurs...
        // ... si des erreurs sont trouvée...
        if (errors.hasErrors()) {
View Full Code Here

    private void stories(ActionMapping mapping, ActionForm form,
            HttpServletRequest request, HttpServletResponse response)
            throws Exception {

        // get the service
      IterationService iterationService = AgilePlanningObjectFactory.getIterationService();
     
        // list the stories for the iteration
      Iteration iteration = iterationService.findByPersistanceId(Integer.parseInt((String) request.getParameter("iterationPersistanceId")));
     
      // build the set of storyViews
      Set<StoryView> storyViews = this.buildStoryViewsFromStories(iteration.getStories());
     
        // put the storyViews in the request
View Full Code Here

TOP

Related Classes of net.sf.pmr.agilePlanning.service.IterationService

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.