Examples of unlockReadOnlyPropertiesOnce()


Examples of org.structr.core.entity.Principal.unlockReadOnlyPropertiesOnce()

      if (user != null) {

        user = new NodeFactory<Principal>(securityContext).instantiate(user.getNode());

        // convert to user
        user.unlockReadOnlyPropertiesOnce();
        user.setProperty(AbstractNode.type, User.class.getSimpleName());
        user.setProperty(User.confirmationKey, confKey);

      } else if (autoCreate) {
View Full Code Here

Examples of org.structr.core.entity.SchemaNode.unlockReadOnlyPropertiesOnce()

        schemaNode = app.create(SchemaNode.class, type);
      }

      schemaNode.setProperty(SchemaNode.extendsClass, fqcn);
      schemaNode.unlockReadOnlyPropertiesOnce();
      schemaNode.setProperty(SchemaNode.isBuiltinType, true);
    }
  }

  @Override
View Full Code Here

Examples of org.structr.web.entity.AbstractFile.unlockReadOnlyPropertiesOnce()

    AbstractFile existingFile = getFileByUuid(securityContext, uuid);

    if (existingFile != null) {

      existingFile.unlockReadOnlyPropertiesOnce();
      existingFile.setProperty(AbstractNode.type, fileType == null ? org.structr.dynamic.File.class.getSimpleName() : fileType.getSimpleName());

      existingFile = getFileByUuid(securityContext, uuid);

      return (T)(fileType != null ? fileType.cast(existingFile) : (org.structr.dynamic.File) existingFile);
View Full Code Here

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.