Package net.sf.pmr.struts.agilePlanning.release.form

Examples of net.sf.pmr.struts.agilePlanning.release.form.ReleaseForm


        if (StringUtils.isNotEmpty( (String) request.getParameter("persistanceId"))) {
     
            Release release = releaseService.findByPersistanceId(Integer.parseInt((String)request.getParameter("persistanceId")));

            // populate the form
            ReleaseForm releaseForm = (ReleaseForm) form;
           
            releaseForm.setDate(release.getDate());
            releaseForm.setNumber(release.getNumber());
            releaseForm.setPersistanceId(release.getPersistanceId());
            releaseForm.setPersistanceVersion(release.getPersistanceVersion());
           
        }
             
        // populate summary
        populateSummary(request);
View Full Code Here


        // get the  service
        ReleaseService releaseService = AgilePlanningObjectFactory.getReleaseService();
       
        // get the form
        ReleaseForm releaseform = (ReleaseForm) form;

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

        // Convert into struts action errors
        if (errors.hasErrors()) {
            ActionMessages actionMessages = ActionMessageUtils.convertFromKeopsErrorsToActionMessages(errors);
View Full Code Here

        // get the  service
        ReleaseService releaseService = AgilePlanningObjectFactory.getReleaseService();
       
        // get the form
        ReleaseForm releaseform = (ReleaseForm) form;

        Errors errors = null;
        // delete the iteration
        errors = releaseService.delete(releaseform.getPersistanceId(), releaseform.getPersistanceVersion());

        // Convert into struts action errors
        if (errors.hasErrors()) {
            ActionMessages actionMessages = ActionMessageUtils.convertFromKeopsErrorsToActionMessages(errors);
            saveErrors(request, actionMessages);
View Full Code Here

TOP

Related Classes of net.sf.pmr.struts.agilePlanning.release.form.ReleaseForm

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.