Package org.structr.common.error

Examples of org.structr.common.error.ReadOnlyPropertyToken


        // lock read-only properties again
        readOnlyPropertiesUnlocked = false;

      } else {

        throw new FrameworkException(getClass().getSimpleName(), new ReadOnlyPropertyToken(key));
      }

    }

    key.setProperty(securityContext, this, value);
View Full Code Here


          // permit write operation once and
          // lock read-only properties again
          readOnlyPropertiesUnlocked = false;
        } else {

          throw new FrameworkException(this.getType(), new ReadOnlyPropertyToken(key));
        }

      }

      dbNode.removeProperty(key.dbName());
View Full Code Here

        // lock read-only properties again
        readOnlyPropertiesUnlocked = false;

      } else {

        throw new FrameworkException(getClass().getSimpleName(), new ReadOnlyPropertyToken(key));
      }

    }

    key.setProperty(securityContext, this, value);
View Full Code Here

  @Override
  public void setGroupedProperties(SecurityContext securityContext, PropertyMap source, GraphObject destination) throws FrameworkException {

    if (source.containsKey(nullValuesOnlyProperty)) {
      throw new FrameworkException("base", new ReadOnlyPropertyToken(nullValuesOnlyProperty));
    }
   
    if (source.isEmpty()) {

      destination.setProperty(nullValuesOnlyProperty, true);
View Full Code Here

    return value;
  }

  @Override
  public void setProperty(SecurityContext securityContext, GraphObject obj, T value) throws FrameworkException {
    throw new FrameworkException(obj.getClass().getSimpleName(), new ReadOnlyPropertyToken(this));
  }
View Full Code Here

TOP

Related Classes of org.structr.common.error.ReadOnlyPropertyToken

Copyright © 2018 www.massapicom. 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.