Examples of update()


Examples of models.Beer.update()

    public static Result update(String name)
    {
        JsonNode json = request().body().asJson();
        Beer beer = Json.fromJson(json, Beer.class);

        beer.update();

        return ok(Json.toJson(beer));
    }

    public static Result delete(String name)
View Full Code Here

Examples of models.Category.update()

        else {
          f = multi.getFile("editLogo");
        }

        category.setImgPath(fileName);
        category.update();
      }
    }

    response.sendRedirect(request.getContextPath() + "/admin/categories");
    }
View Full Code Here

Examples of models.CommentThread.update()

            return forbidden();
        }

        CommentThread.ThreadState previousState = thread.state;
        thread.state = state;
        thread.update();

        try {
            NotificationEvent.afterStateChanged(previousState, thread);
        } catch (Exception e) {
            play.Logger.warn(
View Full Code Here

Examples of models.DiscoveryLifeCycle.update()

  public static void index() {
    DiscoveryLifeCycle d = new DiscoveryLifeCycle("name1");
   
    d.insert();
    d.name = "name2";
    d.update();
    d.name = "name3";
    d.save();
    d.get();
    d.delete();
   
View Full Code Here

Examples of models.DynamicField.update()

            if (!formDynamicField.getName().equals(dbDynamicField.getName())
                    && DynamicField.findByName(formDynamicField.getName()) != null) {
                return badRequest(toJson(TransformValidationErrors.transform(Messages.get("error.dynamicField.already.exist"))));
            }
            dbDynamicField.setName(formDynamicField.getName());
            dbDynamicField.update();
        }
        // HTTP 204 en cas de succès (NO CONTENT)
        return noContent();
    }
View Full Code Here

Examples of models.Element.update()

        if(filledForm.hasErrors()) {
            return badRequest(edit.render(eb,nature,filledForm));
        } else {
            Element updated = filledForm.get();
            updated.ID = id;
            updated.update();
            return ok(edit.render(eb,nature,elementForm.fill(updated)));
        }
  }

  public static Result insert() {
View Full Code Here

Examples of models.Event.update()

            dbEvent.setUrl(formEvent.getUrl());
            dbEvent.setShortName(formEvent.getShortName());
            dbEvent.setCgu(formEvent.getCgu());
            dbEvent.logo = formEvent.logo;
            dbEvent.setDescription(formEvent.getDescription());
            dbEvent.update();

            updateOrganizers(formEvent, dbEvent);
        }

        // HTTP 204 en cas de succès (NO CONTENT)
View Full Code Here

Examples of models.Feedback.update()

                                    }
                               }
                           feedback.setText(comment);
                           }
                          feedback.setScore(new Integer(multi.getParameter("editScore")));
                          feedback.update();
                        }
                }

                response.sendRedirect(request.getContextPath() + "/admin/feedbacks");
View Full Code Here

Examples of models.InboxMessage.update()

    InboxMessage message = InboxMessage.getReceived(id, current);
    if(message==null) notFound();
    //if(message.owner.id.longValue() != current.id.longValue()) forbidden();
    if(!message.readed) {
      message.readed = Boolean.TRUE;
      message.update();
    }
    renderTemplate("api/message.json",message);
  }
 
  public static void delete(Long id) {
View Full Code Here

Examples of models.IssueLabel.update()

        IssueLabel label = form.get();
        label.id = id;
        label.project = Project.findByOwnerAndProjectName(ownerName, projectName);

        label.update();

        return ok();
    }

    /**
 
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.