Exemplo n.º 1
0
 public static Showreel update(
     Showreel showreel,
     String title,
     String text,
     List<Contributor> contributors,
     List<String> hashtags,
     String img_url,
     String showreel_url,
     String viewable) {
   showreel.title = title;
   showreel.text = text;
   showreel.contributors = contributors;
   showreel.hashtags = hashtags;
   showreel.img_url = img_url;
   showreel.showreel_url = showreel_url;
   showreel.viewable = viewable;
   showreel.update();
   return showreel;
 }
Exemplo n.º 2
0
 public static void deleteAll(User authUser) {
   List<Showreel> list = all(authUser);
   for (Showreel item : list) {
     Showreel.delete(item.id);
   }
 }
Exemplo n.º 3
0
 public static void create(Showreel showreel) {
   showreel.save();
 }