Package org.structr.web.entity.relation

Examples of org.structr.web.entity.relation.Thumbnails.unlockReadOnlyPropertiesOnce()


          thumbnail.setProperty(AbstractNode.visibleToPublicUsers,    originalImage.getProperty(AbstractNode.visibleToPublicUsers));
          thumbnail.setProperty(AbstractNode.owner,      originalImage.getProperty(AbstractNode.owner));

          thumbnailRelationship.setProperty(Image.width, tnWidth);
          thumbnailRelationship.setProperty(Image.height, tnHeight);
          thumbnailRelationship.unlockReadOnlyPropertiesOnce();
          thumbnailRelationship.setProperty(Image.checksum, newChecksum);

//                                                      System.out.println("Thumbnail ID: " + thumbnail.getUuid() + ", orig. image ID: " + originalImage.getUuid() + ", orig. image checksum: " + originalImage.getProperty(checksum));
          // Soft-delete outdated thumbnails
          for (Image tn : oldThumbnails) {
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.