Package net.sf.pmr.keopsframework.domain.validation

Examples of net.sf.pmr.keopsframework.domain.validation.Errors.reject()


    }
   
    // if the task is not found, return a global error
    if (taskToDelete == null) {
      Errors errros = AgilePlanningObjectFactory.getErrors();
      errros.reject("task.doesntExistsInDatabase");
      return errros;
    }
   
    // else check if the task can be deleted
    Errors errors = taskValidator.validateForDelete(taskToDelete);
View Full Code Here


    Errors errors = AgilePlanningObjectFactory.getErrors();
       
    // if the story is not found, return a global error
    if (story == null) {
      errors.reject("story.doesntExistsInDatabase");
      return errors;
    }

     
        // building object charge
View Full Code Here

       
    Errors errors = AgilePlanningObjectFactory.getErrors();
       
    // if the story is not found, return a global error
    if (story == null) {
      errors.reject("story.doesntExistsInDatabase");
      return errors;
    }


        for (Task task : story.getTasks()) {
View Full Code Here

        Release release = releaseRepository.findByPersistanceId(persistanceId);

    // if the release is not found, return a global error
    if (release == null) {
      Errors errors = AgilePlanningObjectFactory.getErrors();
      errors.reject("release.doesntExistsInDatabase");
      return errors;
    }
       
        // if the release is found, update the persistanceVersion for concurrency management
        release.setPersistanceVersion(persistanceVersion);
View Full Code Here

        .findByPersistanceId(persistanceId);

    // if release is not found
    if (releaseToUpdate == null) {
      Errors errros = AgilePlanningObjectFactory.getErrors();
      errros.reject("release.doesntExistsInDatabase");
      return errros;
    }

    releaseToUpdate.setDate(date);
    releaseToUpdate.setNumber(number);
View Full Code Here

         Release release = releaseRepository.findByPersistanceId(releasePersistanceId);
       
         // if release is not found
         if (release == null) {
           Errors errros = AgilePlanningObjectFactory.getErrors();
           errros.reject("release.doesntExistsInDatabase");
           return errros;
         }
       
         // recherche de chaque story
         for (Integer id : storyPersistanceIds) {
View Full Code Here

         Release release = releaseRepository.findByPersistanceId(releasePersistanceId);
       
         // if release is not found
         if (release == null) {
           Errors errros = AgilePlanningObjectFactory.getErrors();
           errros.reject("release.doesntExistsInDatabase");
           return errros;
         }
       
         // recherche de chaque story
         for (Integer id : storyPersistanceIds) {
View Full Code Here

      Iteration iteration = iterationRepository.findByPersistanceId(iterationPersistanceId);
       
    // if iteration is not found
    if (iteration == null) {
      Errors errros = AgilePlanningObjectFactory.getErrors();
      errros.reject("iteration.doesntExistsInDatabase");
      return errros;
    }
        
         // mise à jour du numéro de version
         iteration.setPersistanceVersion(iterationPersistanceVersion);
View Full Code Here

      Iteration iteration = iterationRepository.findByPersistanceId(iterationPersistanceId);
       
    // if iteration is not found
    if (iteration == null) {
      Errors errros = AgilePlanningObjectFactory.getErrors();
      errros.reject("iteration.doesntExistsInDatabase");
      return errros;
    }

        
         // mise à jour du numéro de version
View Full Code Here

        mockStoryRepository.expectFindByPersistanceId(1, story);

     
        // validation (avec erreurs)
        Errors errors = AgilePlanningObjectFactory.getErrors();
        errors.reject("erreur");
        mockTaskValidator.expectValidate(new Ignore(), errors);       
       
        Errors errorsFromService = storyService.addTask(1, 2, "toto", 2);
       
        // Vérifie les appels
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.