|
|
@ -4,7 +4,7 @@ import com.fr.general.CloudCenter; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 需要从云端获取的常量单独放一起 |
|
|
|
* 需要从云端获取的常量单独放一起 |
|
|
|
* 以防AlphaFineConstants被加载时,CloudCenter还没启动,导致常量获取不到。 |
|
|
|
* 每次获取的时候都去加载一次 |
|
|
|
* |
|
|
|
* |
|
|
|
* @author Link |
|
|
|
* @author Link |
|
|
|
* @version 11.0 |
|
|
|
* @version 11.0 |
|
|
@ -12,54 +12,149 @@ import com.fr.general.CloudCenter; |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public class AlphaFineCloudConstants { |
|
|
|
public class AlphaFineCloudConstants { |
|
|
|
|
|
|
|
|
|
|
|
public static final String PLUGIN_SEARCH_URL = CloudCenter.getInstance().acquireUrlByKind("plugin.searchAPI"); |
|
|
|
/** |
|
|
|
|
|
|
|
* get PluginSearchUrl |
|
|
|
public static final String PLUGIN_URL = CloudCenter.getInstance().acquireUrlByKind("af.pluginInfo"); |
|
|
|
*/ |
|
|
|
|
|
|
|
public static String getPluginSearchUrl() { |
|
|
|
public static final String REUSE_URL = CloudCenter.getInstance().acquireUrlByKind("af.reuseInfo"); |
|
|
|
return CloudCenter.getInstance().acquireUrlByKind("plugin.searchAPI"); |
|
|
|
|
|
|
|
} |
|
|
|
public static final String DOCUMENT_DOC_URL = CloudCenter.getInstance().acquireUrlByKind("af.doc_view"); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
public static final String DOCUMENT_SEARCH_URL = CloudCenter.getInstance().acquireUrlByKind("af.doc_search"); |
|
|
|
* get PLUGIN_URL |
|
|
|
|
|
|
|
*/ |
|
|
|
public static final String DOCUMENT_INFORMATION_URL = CloudCenter.getInstance().acquireUrlByKind("af.doc_info"); |
|
|
|
public static String getPluginUrl() { |
|
|
|
|
|
|
|
return CloudCenter.getInstance().acquireUrlByKind("af.pluginInfo"); |
|
|
|
public static final String PLUGIN_IMAGE_URL = CloudCenter.getInstance().acquireUrlByKind("af.plugin_image"); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static final String CLOUD_SERVER_URL = CloudCenter.getInstance().acquireUrlByKind("af.record"); |
|
|
|
/** |
|
|
|
|
|
|
|
* get REUSE_URL |
|
|
|
public static final String SEARCH_API = CloudCenter.getInstance().acquireUrlByKind("af.cloud_search"); |
|
|
|
*/ |
|
|
|
|
|
|
|
public static String getReuseUrl() { |
|
|
|
public static final String SIMILAR_SEARCH_URL_PREFIX = CloudCenter.getInstance().acquireUrlByKind("af.similar_search"); |
|
|
|
return CloudCenter.getInstance().acquireUrlByKind("af.reuseInfo"); |
|
|
|
|
|
|
|
} |
|
|
|
public static final String COMPLEMENT_ADVICE_SEARCH_URL_PREFIX = CloudCenter.getInstance().acquireUrlByKind("af.advice_search"); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
public static final String ALPHA_HOT_SEARCH = CloudCenter.getInstance().acquireUrlByKind("af.hot_search"); |
|
|
|
* get DOCUMENT_DOC_URL |
|
|
|
|
|
|
|
*/ |
|
|
|
public static final String ALPHA_GO_TO_FORUM = CloudCenter.getInstance().acquireUrlByKind("af.go_fourm"); |
|
|
|
public static String getDocumentDocUrl() { |
|
|
|
|
|
|
|
return CloudCenter.getInstance().acquireUrlByKind("af.doc_view"); |
|
|
|
public static final String ALPHA_GO_TO_WEB = CloudCenter.getInstance().acquireUrlByKind("af.go_web"); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static final String ALPHA_PREVIEW = CloudCenter.getInstance().acquireUrlByKind("af.preview"); |
|
|
|
/** |
|
|
|
|
|
|
|
* get DOCUMENT_SEARCH_URL |
|
|
|
public static final String ALPHA_CID = CloudCenter.getInstance().acquireUrlByKind("af.cid.new"); |
|
|
|
*/ |
|
|
|
|
|
|
|
public static String getDocumentSearchUrl() { |
|
|
|
public static final String ALPHA_CID_USER_GROUP_INFO = CloudCenter.getInstance().acquireUrlByKind("af.cid.user.group.info"); |
|
|
|
return CloudCenter.getInstance().acquireUrlByKind("af.doc_search"); |
|
|
|
|
|
|
|
} |
|
|
|
private static final String QUICK_START_URL = CloudCenter.getInstance().acquireUrlByKind("af.help.quick.start"); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
private static final String REPORT_LEARNING_PATH = CloudCenter.getInstance().acquireUrlByKind("af.help.report.learning.path"); |
|
|
|
* get DOCUMENT_INFORMATION_URL |
|
|
|
|
|
|
|
*/ |
|
|
|
private static final String PARAMETER_LEARNING_PATH = CloudCenter.getInstance().acquireUrlByKind("af.help.param.learning.path"); |
|
|
|
public static String getDocumentInformationUrl() { |
|
|
|
|
|
|
|
return CloudCenter.getInstance().acquireUrlByKind("af.doc_info"); |
|
|
|
private static final String FILL_LEARNING_PATH = CloudCenter.getInstance().acquireUrlByKind("af.help.fill.learning.path"); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static final String API_SUMMARY = CloudCenter.getInstance().acquireUrlByKind("af.help.api.summary"); |
|
|
|
/** |
|
|
|
|
|
|
|
* get PLUGIN_IMAGE_URL |
|
|
|
private static final String MONTHLY_DOCUMENT = CloudCenter.getInstance().acquireUrlByKind("af.help.monthly.document"); |
|
|
|
*/ |
|
|
|
|
|
|
|
public static String getPluginImageUrl() { |
|
|
|
private static final String DEFAULT_RECOMMEND = "[ { \"name\":\"快速入门指南\", \"link\":\"" + QUICK_START_URL + "\" }, { \"name\":\"报表应用学习路径\", \"link\":\"" + REPORT_LEARNING_PATH + "\" }, { \"name\":\"参数应用学习路径\", \"link\":\"" + PARAMETER_LEARNING_PATH + "\" }, { \"name\":\"填报学习路径\", \"link\":\"" + FILL_LEARNING_PATH + "\" }, { \"name\":\"API接口汇总\", \"link\":\"" + API_SUMMARY + "\" }, { \"name\":\"文档月刊\", \"link\":\"" + MONTHLY_DOCUMENT + "\" } ]"; |
|
|
|
return CloudCenter.getInstance().acquireUrlByKind("af.plugin_image"); |
|
|
|
|
|
|
|
} |
|
|
|
public static final String ALPHA_HELP_RECOMMEND = CloudCenter.getInstance().acquireUrlByKind("af.recommend", DEFAULT_RECOMMEND); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* get CLOUD_SERVER_URL |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public static String getCloudServerUrl() { |
|
|
|
|
|
|
|
return CloudCenter.getInstance().acquireUrlByKind("af.record"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* get SEARCH_API |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public static String getSearchApi() { |
|
|
|
|
|
|
|
return CloudCenter.getInstance().acquireUrlByKind("af.cloud_search"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* get SIMILAR_SEARCH_URL_PREFIX |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public static String getSimilarSearchUrlPrefix() { |
|
|
|
|
|
|
|
return CloudCenter.getInstance().acquireUrlByKind("af.similar_search"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* get COMPLEMENT_ADVICE_SEARCH_URL_PREFIX |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public static String getComplementAdviceSearchUrlPrefix() { |
|
|
|
|
|
|
|
return CloudCenter.getInstance().acquireUrlByKind("af.advice_search"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* get ALPHA_HOT_SEARCH |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public static String getAlphaHotSearch() { |
|
|
|
|
|
|
|
return CloudCenter.getInstance().acquireUrlByKind("af.hot_search"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* get ALPHA_GO_TO_FORUM |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public static String getAlphaGoToForum() { |
|
|
|
|
|
|
|
return CloudCenter.getInstance().acquireUrlByKind("af.go_fourm"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* get ALPHA_GO_TO_WEB |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public static String getAlphaGoToWeb() { |
|
|
|
|
|
|
|
return CloudCenter.getInstance().acquireUrlByKind("af.go_web"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* get ALPHA_PREVIEW |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public static String getAlphaPreview() { |
|
|
|
|
|
|
|
return CloudCenter.getInstance().acquireUrlByKind("af.preview"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* get ALPHA_CID |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public static String getAlphaCid() { |
|
|
|
|
|
|
|
return CloudCenter.getInstance().acquireUrlByKind("af.cid.new"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* get ALPHA_CID_USER_GROUP_INFO |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public static String getAlphaCidUserGroupInfo() { |
|
|
|
|
|
|
|
return CloudCenter.getInstance().acquireUrlByKind("af.cid.user.group.info"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* get ALPHA_HELP_RECOMMEND |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public static String getAlphaHelpRecommend() { |
|
|
|
|
|
|
|
String QUICK_START_URL = CloudCenter.getInstance().acquireUrlByKind("af.help.quick.start"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String REPORT_LEARNING_PATH = CloudCenter.getInstance().acquireUrlByKind("af.help.report.learning.path"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String PARAMETER_LEARNING_PATH = CloudCenter.getInstance().acquireUrlByKind("af.help.param.learning.path"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String FILL_LEARNING_PATH = CloudCenter.getInstance().acquireUrlByKind("af.help.fill.learning.path"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String API_SUMMARY = CloudCenter.getInstance().acquireUrlByKind("af.help.api.summary"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String MONTHLY_DOCUMENT = CloudCenter.getInstance().acquireUrlByKind("af.help.monthly.document"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String DEFAULT_RECOMMEND = "[ {\"name\":\"快速入门指南\", \"link\":\"" + QUICK_START_URL + "\"}," + |
|
|
|
|
|
|
|
"{\"name\":\"报表应用学习路径\", \"link\":\"" + REPORT_LEARNING_PATH + "\"}," + |
|
|
|
|
|
|
|
"{\"name\":\"参数应用学习路径\", \"link\":\"" + PARAMETER_LEARNING_PATH + "\"}," + |
|
|
|
|
|
|
|
"{\"name\":\"填报学习路径\", \"link\":\"" + FILL_LEARNING_PATH + "\"}," + |
|
|
|
|
|
|
|
"{\"name\":\"API接口汇总\", \"link\":\"" + API_SUMMARY + "\"}," + |
|
|
|
|
|
|
|
"{\"name\":\"文档月刊\", \"link\":\"" + MONTHLY_DOCUMENT + "\"} ]"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return CloudCenter.getInstance().acquireUrlByKind("af.recommend", DEFAULT_RECOMMEND); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|