Package org.structr.web.entity

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

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.