25262728293031323334
@SecureSocial.SecuredAction(ajaxCall = true) public class LinkController extends BaseController { public static Result deleteLink(Long idLink) { Link link = Link.find.byId(idLink); link.delete(); return ok(); }
100101102103104105106107108109110
oneLink.url = lienForm.get().url; //TODO gestion du type } if (newLinkExists(newLink, newLabel, newUrl)) { Link link = newLink.get(); link.linkType = newLinkType; user.getLinks().add(link); } user.save();