Examples of inputConverter()


Examples of org.structr.core.property.PropertyKey.inputConverter()

    String key = (String) webSocketData.getNodeData().get("key");

    if (node != null) {

      PropertyKey propertyKey = StructrApp.getConfiguration().getPropertyKeyForJSONName(node.getClass(), key);
      PropertyConverter converter = propertyKey.inputConverter(getWebSocket().getSecurityContext());

      Object value = node.getProperty(propertyKey);
      if (converter != null) {

        try {
View Full Code Here

Examples of org.structr.core.property.PropertyKey.inputConverter()

              if (propertyKey != null) {

                try {
                  Object convertedValue = val;

                  PropertyConverter inputConverter = propertyKey.inputConverter(SecurityContext.getSuperUserInstance());
                  if (inputConverter != null) {

                    convertedValue = inputConverter.convert(val);
                  }
View Full Code Here

Examples of org.structr.core.property.PropertyKey.inputConverter()

      PropertyKey referenceKeyProperty = StructrApp.getConfiguration().getPropertyKeyForJSONName(_data.getClass(), referenceKey);
      //return getEditModeValue(securityContext, renderContext, _data, referenceKeyProperty, defaultValue);
      Object value = _data.getProperty(referenceKeyProperty);

      PropertyConverter converter = referenceKeyProperty.inputConverter(securityContext);

      if (value != null && converter != null && !(referenceKeyProperty instanceof RelationProperty)) {

        try {
          value = converter.revert(value);
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.