Examples of update()


Examples of models.IssueLabelCategory.update()

        IssueLabelCategory category = form.get();
        category.id = id;
        category.project =
            Project.findByOwnerAndProjectName(ownerName, projectName);

        category.update();

        return ok();
    }

    /**
 
View Full Code Here

Examples of models.LightningTalk.update()

        // No activity for the LT
        assertEquals(0, Activity.count("session = ?", lt));
        assertNull(Activity.find("session = ?", lt).first());
       
        lt.summary = "Un nouveau résumé";
        lt.update();
       
        // One activity for the LT
        assertEquals(1, Activity.count("session = ?", lt));
        Activity a = Activity.find("session = ?", lt).first();
        assertActivity(a);
View Full Code Here

Examples of models.Nature.update()

        if(filledForm.hasErrors()) {
            return badRequest(edit.render(filledForm));
        } else {
            Nature updated = filledForm.get();
            updated.ID = id;
            updated.update();
            flash("success", "Nature mise à jours");
            return ok(edit.render(natureForm.fill(updated)));
        }
  }
View Full Code Here

Examples of models.Organization.update()

        if (!isEmptyFilePart(filePart)) {
            Attachment.deleteAll(modifiedOrganization.asResource());
            new Attachment().store(filePart.getFile(), filePart.getFilename(), modifiedOrganization.asResource());
        }

        modifiedOrganization.update();

        return redirect(routes.OrganizationApp.settingForm(modifiedOrganization.name));
    }

    private static Result validateForUpdate(Form<Organization> organizationForm, Organization modifiedOrganization) {
View Full Code Here

Examples of models.PullRequest.update()

        PullRequestEventMessage message = (PullRequestEventMessage) object;
        PullRequest pullRequest = message.getPullRequest();

        pullRequest.startMerge();
        pullRequest.update();

        processPullRequestMerging(message, pullRequest);
    }
}
View Full Code Here

Examples of models.PushedBranch.update()

            PushedBranch pushedBranch = PushedBranch.find.where()
                            .eq("project", project).eq("name", branch).findUnique();

            if (pushedBranch != null) {
                pushedBranch.pushedDate = JodaDateUtil.now();
                pushedBranch.update();
            }

            if (isNotExistsPushedBranch(branch, pushedBranch) && isNotTag(branch)) {
                pushedBranch = new PushedBranch(JodaDateUtil.now(), branch, project);
                pushedBranch.save();
View Full Code Here

Examples of models.Residence.update()

    Residence residence = new Gson().fromJson(body, Residence.class);
    if(residence==null) {
      response.status = StatusCode.NOT_FOUND;
      return;
    }
    residence.update();
    response.status = StatusCode.OK;
    String url = Router.reverse("api.Residences.get").url;// GET /api/residence/
    response.setHeader("location", url);
  }
 
View Full Code Here

Examples of models.Subscriber.update()

    Subscriber subscriber = new Gson().fromJson(body, Subscriber.class);
    if(subscriber==null) {
      response.status = StatusCode.NOT_FOUND;
      return;
    }
    subscriber.update();
    response.status = StatusCode.OK;
    Map map = new HashMap();
    map.put("id", subscriber.id);
    String url = Router.reverse("api.Subscribers.get", map).url;// GET /clients/1541
    response.setHeader("location", url);
View Full Code Here

Examples of models.Talk.update()

        // No activity for the talk
        assertEquals(0, Activity.count("session = ?", t));
        assertNull(Activity.find("session = ?", t).first());
       
        t.summary = "Un nouveau résumé";
        t.update();
       
        // Still no activity for the unvalidated talk
        assertEquals(0, Activity.count("session = ?", t));
        assertNull(Activity.find("session = ?", t).first());
       
View Full Code Here

Examples of models.TalkFormat.update()

            }
            dbFormat.setLibelle(formFormat.getLibelle());
            dbFormat.setDureeMinutes(formFormat.getDureeMinutes());
            dbFormat.setDescription(formFormat.getDescription());
            dbFormat.setNbInstance(formFormat.getNbInstance());
            dbFormat.update();
        }
        // HTTP 204 en cas de succès (NO CONTENT)
        return noContent();
    }
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.