Table of Contents |
---|
Description
Thai |
---|
ลักษณะ |
- org.joget.plugin.property.service.PropertyUtil
- Under wflow-plugin-base module
- Utility method used by system to parse Plugin Properties Options values (JSON format)
Code Sample
Thai |
---|
ตัวอย่างโค้ด |
Code Block | ||
---|---|---|
| ||
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()); |
Fields
Thai |
---|
ฟิลด์ |
PASSWORD_PROTECTED_VALUE
public final static java.lang.String PASSWORD_PROTECTED_VALUE = "****SECURE_VALUE****-";
Keyword used to hide the secure value in Plugin Properties options values
Thai |
---|
คำสำคัญที่ใช้ซ่อนค่าความปลอดภัยในค่าตัวเลือกคุณสมบัติปลั๊กอิน |
TYPE_ELEMENT_SELECT
public final static java.lang.String TYPE_PASSWORD = "password";
Property type of a password field
Thai |
---|
ประเภทคุณสมบัติของฟิลด์รหัสผ่าน |
TYPE_PASSWORD
public final static java.lang.String TYPE_ELEMENT_SELECT = "elementselect";
Property type of a select box field to select plugin
Thai |
---|
ประเภทคุณสมบัติของฟิลด์กล่องที่เลือกเพื่อเลือกปลั๊กอิน |
Methods
Thai |
---|
กระบวนการ |
getDefaultPropertyValues
public static java.lang.String getDefaultPropertyValues(java.lang.String json)
Parses default properties java.lang.String (JSON format) from Plugin Properties Options (JSON format)
Thai |
---|
แยกวิเคราะห์คุณสมบัติเริ่มต้น java.lang.String (รูปแบบ JSON) จากตัวเลือกคุณสมบัติปลั๊กอิน (รูปแบบ JSON) |
getProperties
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
Thai |
---|
วิธีที่สะดวกสบายที่ใช้โดยระบบในการแยกวิเคราะห์ JSON Object ในแผนที่ |
getPropertiesJSONObject
public static java.lang.String getPropertiesJSONObject(java.lang.String[] fileNames)
...
Deprecated Not using by the system and not recommended to use for performance consideration.
Thai |
---|
วิเคราะห์คำไฟล์ XML คุณสมบัติและแปลงเป็นเอาต์พุต JSON ใช้เพื่อรับตัวเลือกคุณสมบัติปลั๊กอิน (รูปแบบ JSON) จากไฟล์ XML เลิกใช้ไม่ได้ใช้โดยระบบและไม่แนะนำให้ใช้สำหรับการพิจารณาประสิทธิภาพ |
getPropertiesValueFromJson
...
Parses the Plugin Properties Options values (JSON format) into a properties map
Thai |
---|
แยกวิเคราะห์ค่าตัวเลือกคุณสมบัติปลั๊กอิน (รูปแบบ JSON) ลงในแผนที่คุณสมบัติ |
propertiesJsonLoadProcessing
...
Convenient method used by system to hide secure values in Plugin Properties Options values (JSON format)
Thai |
---|
วิธีการที่สะดวกสบายที่ระบบใช้เพื่อซ่อนค่าความปลอดภัยในค่าตัวเลือกคุณสมบัติปลั๊กอิน (รูปแบบ JSON) |
propertiesJsonStoreProcessing
...
Convenient method used by system to reverse the replaced/hided secure values in Plugin Properties Options values (JSON format)
Thai |
---|
วิธีการที่สะดวกสบายที่ระบบใช้เพื่อย้อนกลับค่าความปลอดภัยที่ถูกแทนที่ / ซ่อนในค่าตัวเลือกคุณสมบัติปลั๊กอิน (รูปแบบ JSON) |