You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.0 KiB
29 lines
1.0 KiB
3 years ago
|
package com.fr.plugin.hrjf;
|
||
|
|
||
|
import com.fr.decision.webservice.v10.plugin.helper.PluginUtils;
|
||
|
import com.fr.json.JSONObject;
|
||
|
import com.fr.plugin.context.PluginMarker;
|
||
|
import com.fr.plugin.manage.PluginManager;
|
||
|
import com.fr.stable.fun.Service;
|
||
|
import com.fr.web.utils.WebUtils;
|
||
|
|
||
|
import javax.servlet.http.HttpServletRequest;
|
||
|
import javax.servlet.http.HttpServletResponse;
|
||
|
|
||
|
public class VSMapService implements Service {
|
||
|
@Override
|
||
|
public String actionOP() {
|
||
|
return "restartInit";
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public void process(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, String op, String cmd) throws Exception {
|
||
|
PluginMarker pluginMarker = PluginUtils.createPluginMarker("com.fr.plugin.m.tree_1.0.0");
|
||
|
PluginManager.getController().forbid(pluginMarker, pluginTaskResult -> {
|
||
|
});
|
||
|
PluginManager.getController().enable(pluginMarker, pluginTaskResult -> {
|
||
|
});
|
||
|
WebUtils.printAsJSON(httpServletResponse, new JSONObject());
|
||
|
return;
|
||
|
}
|
||
|
}
|