Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
import org.joget.plugin.base.Plugin; import org.joget.plugin.base.PluginManager; import org.joget.plugin.property.service.PropertyUtil; PluginManager pluginManager = (PluginManager) AppUtil.getApplicationContext().getBean("pluginManager"); //get default properties value of a plugin Plugin plugin = pluginManager.getPlugin("org.joget.apps.form.lib.TextField"); String defaultValues = PropertyUtil.getDefaultPropertyValues(plugin.getPropertyOptions());
public final static java.lang.String PASSWORD_PROTECTED_VALUE = "****SECURE_VALUE****-";
Keyword used to hide the secure value in Plugin Properties options values
public final static java.lang.String TYPE_PASSWORD = "password";
Property type of a password field
public final static java.lang.String TYPE_ELEMENT_SELECT = "elementselect";
Property type of a select box field to select plugin
public static java.lang.String getDefaultPropertyValues(java.lang.String json)
Parses default properties java.lang.String (JSON format) from Plugin Properties Options (JSON format)
public static java.util.Map<java.lang.String, java.lang.Object> getProperties(org.json.JSONObject obj)
Convenient method used by system to parses a JSON Object in to a map
public static java.lang.String getPropertiesJSONObject(java.lang.String[] fileNames)
Parses property XML files and convert to JSON output. Used to get Plugin Properties Options (JSON format) from XML files.
Deprecated Not using by the system and not recommended to use for performance consideration.
public static java.util.Map<java.lang.String, java.lang.Object> getPropertiesValueFromJson(java.lang.String json)
Parses the Plugin Properties Options values (JSON format) into a properties map
public static java.lang.String propertiesJsonLoadProcessing(java.lang.String json)
Convenient method used by system to hide secure values in Plugin Properties Options values (JSON format)
public static java.lang.String propertiesJsonStoreProcessing(java.lang.String oldJson, java.lang.String newJson)
Convenient method used by system to reverse the replaced/hided secure values in Plugin Properties Options values (JSON format)