Package net.sf.pmr.core.domain.user

Examples of net.sf.pmr.core.domain.user.User


      return errros;
    }

        // else build the object to persist
        Task task = AgilePlanningObjectFactory.getTask();
        User user = CoreObjectFactory.getUser();
        user.setPersistanceId(developperPersistanceId);

        task.setOwner(user);
        task.setDaysEstimated(numberOfIdealDays);
        task.setShortDescription(shortDescription);
View Full Code Here


      return errros;
    }

    // else, build the object to persist
    Task task = AgilePlanningObjectFactory.getTask();
    User user = CoreObjectFactory.getUser();
    user.setPersistanceId(developperPersistanceId);

    task.setOwner(user);
    task.setPersistanceId(persistanceId);
    task.setPersistanceVersion(persistanceVersion);
    task.setDaysEstimated(numberOfIdealDays);
View Full Code Here

        charge.setDay(day);
        charge.setDaysNeededToFinish(daysNeededToFinish);
        charge.setTimeUsedToday(timeUsedToday);

        // finding user
        User user = userRepository.findUserByPersistanceId(userPersistanceId);

        charge.setUser(user);

        // adding the charge
        for (Task task : story.getTasks()) {
View Full Code Here

        taskToAddorUpdate.setPersistanceId(0);
        taskToAddorUpdate.setPersistanceVersion(0);
        taskToAddorUpdate.setDaysEstimated(2);
        taskToAddorUpdate.setShortDescription("toto");
       
        User owner = new UserImpl();
       
        owner.setPersistanceId(1);
        owner.setPersistanceVersion(2);
        owner.setFirstName("Pon");
        owner.setLastName("Fel");
        owner.setLogin("ponfel");
        owner.setPassword("password");
        owner.setEmail("ponfel@worldcompany.com");
       
        taskToAddorUpdate.setOwner(owner);

    }
View Full Code Here

        // Ajout d'une tâche
        Task task = new TaskImpl();
        task.setPersistanceId(1);
        story.getTasks().add(task);

        User user = new UserImpl();
        user.setPersistanceId(1);
       
        // appel de la recherche de la story
        EasyMock.expect(mockStoryRepository.findByPersistanceId(1)).andReturn(story);
       
        // appel de la recherche du user
View Full Code Here

        charge.setDay(chargeDate);
        charge.setDaysNeededToFinish(2);
        charge.setPersistanceId(1);
        charge.setPersistanceVersion(5);
        charge.setTimeUsedToday(0.5);
        User chargeUser = new UserImpl();
        charge.setUser(chargeUser);
       
        task.getCharges().add(charge);
       
        // appel de la recherche de la story
View Full Code Here

       
        workspace.setUserLogin(getUserLogin());
       
        //User user =  CoreObjectFactory.getSecurityService().login(getUserLogin().getLogin(), getUserLogin().getPassword());
       
        User user =  CoreObjectFactory.getSecurityService().login(getUserLogin().getLogin(), getUserLogin().getPassword());
       
       
        if (user == null) {
            return this;
        } else {
            getUserLogin().setPersistanceId(user.getPersistanceId());
            // erase password (user login is put in session)
            user.setPassword("");
            this.getCurrentUser().setUser(user);
            getUserLogin().setPassword("");
            return workspace;
        }
       
View Full Code Here

        // Récupération du service
    ToDoService toDoService = ToDoObjectFactory.getToDoService();
       
        if (myWorkspaceForm.getProjectId() > 0) {
         
          User user = (User) request.getSession().getAttribute("user");
         
          List<ToDo> todos =  toDoService.findByProjectPersistanceIdAndUserPersistanceId(myWorkspaceForm.getProjectId(), user.getPersistanceId());
         
          // nombre de story
          numberOfToDo = todos.size();
         
        }
View Full Code Here

    // Get the securityService
    SecurityService securityService = CoreObjectFactory.getSecurityService();
   
    // login
    User user = securityService.login(loginForm.getLogin(), loginForm.getPassword());
   

    // if user is null, access is denied

    if (user == null) {
View Full Code Here

        ProjectService projectService = CoreObjectFactory.getProjectService();
        Project basicProject = projectService.findByPersistanceId(((Integer) request.getSession()
                                                                                              .getAttribute("basicProject.persistanceId")).intValue());
        Set<User> members = basicProject.getMembers();
        // ajout d'une ligne vide
        User user = new UserImpl();
        user.setCompany(null);
        user.setEmail(null);
        user.setFirstName(null);
        user.setLastName("-");
        user.setLogin(null);
        user.setPassword(null);
        user.setPersistanceId(0);
        user.setPersistanceVersion(0);
        user.setProjects(null);
        members.add(user);

        request.setAttribute("members", members);

    }
View Full Code Here

TOP

Related Classes of net.sf.pmr.core.domain.user.User

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.