@Override protected Sprint onExecute(final Model model) throws IPScrumGeneralException { this.setStringValue(StringUtils.format("Neuer Sprint '%s' erstellt.", this.name)); final Team assignedTeam = (Team) model.getObject(this.assignedTeamId); final Project assignedProject = (Project) model.getObject(this.assignedProjectId); final Sprint sprint = new Sprint( model, this.name, this.description, this.startDate, this.endDate, assignedTeam, assignedProject); return sprint; }
@Override protected Void onExecute(final Model model) throws IPScrumGeneralException { final Role role = (Role) model.getObject(this.getReceiverGuid()); this.setStringValue( StringUtils.format( "Rolle '%s' umbenannt in '%s'.", role.getDescription(), this.description)); role.setDescription(this.description); return null; }
@Override public Project getDependingProject(final Model model) throws NoObjectFindException { return (Project) model.getObject(this.assignedProjectId); }