Package net.pterodactylus.sone.data

Examples of net.pterodactylus.sone.data.Album.modify()


      Album parent = webInterface.getCore().getAlbum(parentId, false);
      if (parentId.equals("")) {
        parent = currentSone.getRootAlbum();
      }
      Album album = webInterface.getCore().createAlbum(currentSone, parent);
      album.modify().setTitle(name).setDescription(TextFilter.filter(request.getHttpRequest().getHeader("host"), description)).update();
      webInterface.getCore().touchConfiguration();
      throw new RedirectException("imageBrowser.html?album=" + album.getId());
    }
  }
View Full Code Here


            image = image.modify().setTitle(imageTitle).setDescription(imageDescription).update();
            image = image.modify().setWidth(imageWidth).setHeight(imageHeight).update();
            album.addImage(image);
          }
        }
        album.modify().setAlbumImage(albumImageId).update();
      }
    }

    /* process avatar. */
    if (avatarId != null) {
View Full Code Here

      }
      String albumImageId = request.getHttpRequest().getPartAsStringFailsafe("album-image", 36);
      if (webInterface.getCore().getImage(albumImageId, false) == null) {
        albumImageId = null;
      }
      album.modify().setAlbumImage(albumImageId).update();
      String title = request.getHttpRequest().getPartAsStringFailsafe("title", 100).trim();
      if (title.length() == 0) {
        templateContext.set("titleMissing", true);
        return;
      }
View Full Code Here

      if (title.length() == 0) {
        templateContext.set("titleMissing", true);
        return;
      }
      String description = request.getHttpRequest().getPartAsStringFailsafe("description", 1000).trim();
      album.modify().setTitle(title).setDescription(TextFilter.filter(request.getHttpRequest().getHeader("host"), description)).update();
      webInterface.getCore().touchConfiguration();
      throw new RedirectException("imageBrowser.html?album=" + album.getId());
    }
  }
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.