Abstract Class

ชั้นนามธรรม

org.joget.plugin.base.ExtDefaultPlugin

Method Detail

รายละเอียดวิธีการ

Abstract Methods
วิธีการเชิงนามธรรม
getName
public java.lang.String getName()

Return a unique name for the plugin. You can override an existing System plugin by providing the same name as the System plugin.

ส่งคืนชื่อเฉพาะสำหรับปลั๊กอิน คุณสามารถลบล้างปลั๊กอินระบบที่มีอยู่โดยการให้ชื่อเดียวกับปลั๊กอินระบบ

getVersion
public java.lang.String getVersion()

Return plugin version.

ส่งคืนเวอร์ชันปลั๊กอิน

 

getDescription
public java.lang.String getDescription()

Return plugin description. This value will be used when a Resource Bundle Message Key "plugin.className.pluginDesc" is not found by getI18nDescription() method.

ส่งคืนคำอธิบายปลั๊กอิน ค่านี้จะถูกใช้เมื่อไม่พบคีย์ของทรัพยากรบันเดิล "plugin.className.pluginDesc" โดยเมธอด getI18nDescription ()

Overridable Methods
วิธี overridable
getI18nLabel
public java.lang.String getI18nLabel()

Return a plugin label for the plugin based on language setting. It will auto look for Resource Bundle Message Key "plugin.className.pluginLabel". If resource key not found, org.joget.plugin.property.model.PropertyEditable.getLabel() will be use if the plugin also implemented org.joget.plugin.property.model.PropertyEditable interface. Else, value from getName() method is use. OSGI plugin is required to override this method to provide an internationalization label.

ส่งคืนฉลากปลั๊กอินสำหรับปลั๊กอินตามการตั้งค่าภาษา โดยอัตโนมัติจะค้นหาคีย์ข้อความทรัพยากรบันเดิล "plugin.className.pluginLabel" หากไม่พบรหัสทรัพยากร org.joget.plugin.property.model.PropertyEditable.getLabel () จะถูกใช้หากปลั๊กอินยังใช้ส่วนติดต่อ org.joget.plugin.property.model.PropertyEditable มิฉะนั้นค่าจาก getName () จะใช้วิธีการ ต้องใช้ปลั๊กอิน OSGI เพื่อแทนที่วิธีนี้เพื่อให้ป้ายกำกับเป็นสากล

getI18nDescription
public java.lang.String getI18nDescription()

Return a plugin description for the plugin based on language setting. It will auto look for Resource Bundle Message Key "plugin.className.pluginDesc". If resource key not found, value from org.joget.plugin.base.Plugin.getDescription() is use. OSGI plugin is required to override this method to provide an internationalization description. 

ส่งคืนคำอธิบายปลั๊กอินสำหรับปลั๊กอินตามการตั้งค่าภาษา โดยอัตโนมัติจะค้นหาคีย์ข้อความทรัพยากรบันเดิล "plugin.className.pluginDesc" หากไม่พบรหัสทรัพยากรให้ใช้ค่าจาก org.joget.plugin.base.Plugin.getDescription () ต้องใช้ปลั๊กอิน OSGI เพื่อแทนที่วิธีนี้เพื่อให้คำอธิบายเป็นสากล

Utility Methods
วิธีการยูทิลิตี้
getProperties
public java.util.Map<java.lang.String,java.lang.Object> getProperties()

Get plugin properties.

รับคุณสมบัติปลั๊กอิน

setProperties
public void setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)

Set plugin properties.

ตั้งค่าคุณสมบัติปลั๊กอิน

getProperty
public java.lang.Object getProperty(java.lang.String property)

Get a plugin property value by property key.

รับค่าคุณสมบัติปลั๊กอินโดยใช้รหัสคุณสมบัติ

setProperty
public void setProperty(java.lang.String property, java.lang.Object value)

Set a plugin property.

ตั้งค่าคุณสมบัติปลั๊กอิน

getPropertyString
public java.lang.String getPropertyString(java.lang.String property)

Get a plugin property value by property key and return in java.lang.String. Non-exist key will return an empty string instead of NULL value.

รับค่าคุณสมบัติปลั๊กอินโดยใช้คุณสมบัติคีย์และกลับมาเป็น java.lang.String คีย์ที่ไม่มีอยู่จะส่งคืนสตริงว่างเปล่าแทนค่า NULL

start
public void start(org.osgi.framework.BundleContext context)

Method used by Felix OSGI framework to register the plugin.

วิธีที่ใช้โดยเฟรมเวิร์ก Felix OSGI เพื่อลงทะเบียนปลั๊กอิน

stop 
public void stop(org.osgi.framework.BundleContext context)

Method used by Felix OSGI framework to unregister the plugin.

วิธีการที่ใช้โดย Felix OSGI framework เพื่อยกเลิกการลงทะเบียนปลั๊กอิน

Deprecated Methods
วิธีการเลิก
getPluginProperties
public org.joget.plugin.base.PluginProperty[] getPluginProperties()

Return a set of plugin properties to configure by admin user.

Deprecated Since version 3, Joget Workflow introduced a better UI for plugin configuration. A plugin should implement org.joget.plugin.property.model.PropertyEditable interface to provide the plugin configuration options.

ส่งคืนชุดคุณสมบัติปลั๊กอินเพื่อกำหนดค่าโดยผู้ดูแลระบบ

เลิกใช้ตั้งแต่เวอร์ชัน 3 Joget Workflow ได้แนะนำ UI ที่ดีกว่าสำหรับการกำหนดค่าปลั๊กอิน ปลั๊กอินควรใช้ส่วนต่อประสาน org.joget.plugin.property.model.PropertyEditable เพื่อให้ตัวเลือกการกำหนดค่าปลั๊กอิน

execute
public java.lang.Object execute(java.util.Map properties)

To execute a plugin

Deprecated This method is only use by Process Tool plugin therefore it had been moved to org.joget.plugin.base.DefaultApplicationPlugin

เพื่อรันปลั๊กอิน

เลิกใช้วิธีนี้ใช้โดยปลั๊กอินเครื่องมือกระบวนการเท่านั้นดังนั้นจึงถูกย้ายไปยัง org.joget.plugin.base.DefaultApplicationPlugin

Interface

อินเตอร์เฟซ

org.joget.plugin.property.model.PropertyEditable

Method Detail

รายละเอียดวิธีการ

Interface Methods
วิธีการเชื่อมต่อ
getLabel
public java.lang.String getLabel()

Return plugin label. This value will be used when a Resource Bundle Message Key "plugin.className.pluginlabel" is not found by getI18nLabel() method.

ส่งคืนป้ายกำกับปลั๊กอิน ค่านี้จะถูกใช้เมื่อคีย์ข้อความ Resource Bundle "plugin.className.pluginlabel" ไม่พบโดยเมธอด getI18nLabel ()

getClassName
public java.lang.String getClassName()

Return Class Name for the plugin.

ส่งคืนชื่อคลาสสำหรับปลั๊กอิน

getPropertyOptions
public java.lang.String getPropertyOptions()

Return the plugin properties options in JSON format. Please refer to Plugin Properties Options.

ส่งคืนตัวเลือกคุณสมบัติปลั๊กอินในรูปแบบ JSON โปรดอ้างอิงถึง Plugin Properties Options

getProperties
public java.util.Map<java.lang.String,java.lang.Object> getProperties()

Get plugin properties.

รับคุณสมบัติปลั๊กอิน

setProperties
public void setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)

Set plugin properties.

ตั้งค่าคุณสมบัติปลั๊กอิน

getProperty
public java.lang.Object getProperty(java.lang.String property)

Get a plugin property value by property key.

รับค่าคุณสมบัติปลั๊กอินโดยใช้รหัสคุณสมบัติ

setProperty
public void setProperty(java.lang.String property, java.lang.Object value)

Set a plugin property.

ตั้งค่าคุณสมบัติปลั๊กอิน

getPropertyString
public java.lang.String getPropertyString(java.lang.String property)

Get a plugin property value by property key and return in java.lang.String. Non-exist key need to return an empty string instead of NULL value.

รับค่าคุณสมบัติปลั๊กอินโดยใช้คุณสมบัติคีย์และกลับมาเป็น java.lang.String คีย์ที่ไม่มีอยู่ต้องส่งคืนสตริงว่างแทนค่า NULL