Package net.pterodactylus.sone.data

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


        String title = request.getHttpRequest().getPartAsStringFailsafe("title", 100).trim();
        String description = request.getHttpRequest().getPartAsStringFailsafe("description", 1024).trim();
        if (title.length() == 0) {
          templateContext.set("titleMissing", true);
        }
        image.modify().setTitle(title).setDescription(TextFilter.filter(request.getHttpRequest().getHeader("host"), description)).update();
      }
      webInterface.getCore().touchConfiguration();
      throw new RedirectException(returnPage);
    }
  }
View Full Code Here


            if ((imageWidth < 1) || (imageHeight < 1)) {
              logger.log(Level.WARNING, String.format("Downloaded Sone %s contains image %s with invalid dimensions (%s, %s)!", sone, imageId, imageWidthString, imageHeightString));
              return null;
            }
            Image image = core.getImage(imageId).modify().setSone(sone).setKey(imageKey).setCreationTime(creationTime).update();
            image = image.modify().setTitle(imageTitle).setDescription(imageDescription).update();
            image = image.modify().setWidth(imageWidth).setHeight(imageHeight).update();
            album.addImage(image);
          }
        }
        album.modify().setAlbumImage(albumImageId).update();
View Full Code Here

              logger.log(Level.WARNING, String.format("Downloaded Sone %s contains image %s with invalid dimensions (%s, %s)!", sone, imageId, imageWidthString, imageHeightString));
              return null;
            }
            Image image = core.getImage(imageId).modify().setSone(sone).setKey(imageKey).setCreationTime(creationTime).update();
            image = image.modify().setTitle(imageTitle).setDescription(imageDescription).update();
            image = image.modify().setWidth(imageWidth).setHeight(imageHeight).update();
            album.addImage(image);
          }
        }
        album.modify().setAlbumImage(albumImageId).update();
      }
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.