public abstract class DialogServerPlugin extends ServerPlugin
ServerPlugin.PluginResponseType, ServerPlugin.PluginScope, ServerPlugin.ProcessEditorServerPluginType
Modifier and Type | Field and Description |
---|---|
protected java.lang.String[] |
jsFiles |
protected java.lang.String |
mainClassName |
scope, SUPPORT_ALL, supportedModels, supportedObjects, type
Constructor and Description |
---|
DialogServerPlugin() |
Modifier and Type | Method and Description |
---|---|
protected abstract JSONObject |
getData(ModelInformation mi,
RequestFacade req,
LoginableUser u) |
protected java.lang.String[] |
getJSFileList() |
void |
processRequest(java.lang.String requestUri,
RequestFacade req,
ResponseFacade resp,
LoginableUser u)
Process the incoming request to this plugin.
|
protected void |
respondWithFileList(ResponseFacade resp) |
protected abstract JSONObject |
saveData(JSONArray data,
ModelInformation mi) |
getItemIconPath, getItemIconUri, getItemText, getMenuItemConfig, getPluginScope, getPluginType, showInToolbar, supportsModel, supportsObject
protected java.lang.String[] jsFiles
protected java.lang.String mainClassName
public void processRequest(java.lang.String requestUri, RequestFacade req, ResponseFacade resp, LoginableUser u) throws java.io.IOException
ServerPlugin
processRequest
in class ServerPlugin
requestUri
- the requested uriu
- the user that performs this requestjava.io.IOException
protected void respondWithFileList(ResponseFacade resp) throws java.io.IOException
java.io.IOException
protected abstract JSONObject getData(ModelInformation mi, RequestFacade req, LoginableUser u) throws JSONException
JSONException
protected abstract JSONObject saveData(JSONArray data, ModelInformation mi) throws JSONException
JSONException
protected java.lang.String[] getJSFileList()