public class PluginUtils
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static int |
BYTES_NUM |
static java.lang.String |
CONNECTION_404 |
static java.lang.String |
FR_VERSION |
static java.lang.String |
TEMP_FILE |
构造器和说明 |
---|
PluginUtils() |
限定符和类型 | 方法和说明 |
---|---|
static void |
checkShopResourceExist(ProjectInfoBean projectInfoBean) |
static void |
checkShopUpdate(ProjectInfoBean projectInfoBean) |
static PluginMarker |
createPluginMarker(java.lang.String pluginInfo)
解析字符串生成PluginMarker
|
static void |
downloadShopScripts(java.lang.String id) |
static java.util.List<StorePluginBean> |
filterPluginsFromVersion(java.util.List<StorePluginBean> pluginBeans)
在不同设计器版本下展示不同插件
|
static java.lang.String |
getInterKeyByErrorCode(PluginErrorCode errorCode) |
static JSONObject |
getLatestPluginInfo(java.lang.String pluginID)
从商城获取最新插件信息
|
static java.lang.String |
getMessageByErrorCode(PluginErrorCode errorCode) |
static java.lang.String |
getSuccessInfo(PluginTaskResult result) |
static void |
installShopScripts() |
static StorePluginBean |
jsonObjectToBean(JSONObject pluginJsonObject) |
static java.util.List<StorePluginBean> |
parseJsonArray(JSONArray jsonArray) |
static InstallationPluginBean |
pluginToBean(PluginContext plugin)
插件转bean对象
|
static void |
sendWebSocket(java.lang.String option,
PluginProgressBean progressBean,
java.lang.String username) |
static java.lang.String |
transPluginsToString(java.util.List<PluginContext> plugins)
插件转字符串
|
public static final java.lang.String TEMP_FILE
public static final java.lang.String CONNECTION_404
public static final int BYTES_NUM
public static final java.lang.String FR_VERSION
public static InstallationPluginBean pluginToBean(PluginContext plugin)
plugin
- 插件对象public static StorePluginBean jsonObjectToBean(JSONObject pluginJsonObject)
public static java.util.List<StorePluginBean> parseJsonArray(JSONArray jsonArray)
public static PluginMarker createPluginMarker(java.lang.String pluginInfo)
pluginInfo
- 插件标志字符串public static JSONObject getLatestPluginInfo(java.lang.String pluginID) throws java.lang.Exception
pluginID
- 插件idjava.lang.Exception
- 异常public static java.lang.String transPluginsToString(java.util.List<PluginContext> plugins) throws java.lang.Exception
java.lang.Exception
- 异常public static java.lang.String getMessageByErrorCode(PluginErrorCode errorCode)
public static java.lang.String getInterKeyByErrorCode(PluginErrorCode errorCode)
public static java.lang.String getSuccessInfo(PluginTaskResult result)
public static void downloadShopScripts(java.lang.String id) throws java.lang.Exception
java.lang.Exception
public static void installShopScripts()
public static void checkShopResourceExist(ProjectInfoBean projectInfoBean) throws java.lang.Exception
java.lang.Exception
public static void checkShopUpdate(ProjectInfoBean projectInfoBean) throws java.lang.Exception
java.lang.Exception
public static java.util.List<StorePluginBean> filterPluginsFromVersion(java.util.List<StorePluginBean> pluginBeans)
public static void sendWebSocket(java.lang.String option, PluginProgressBean progressBean, java.lang.String username) throws java.lang.Exception
java.lang.Exception