【仅供内部供应商使用,不提供对外解答和培训】
...
| Code Block | ||||
|---|---|---|---|---|
| ||||
@Authorize(callSignKey = Constants.PLUING_ID)
public class ThemeGreen extends AbstractThemeVariousProvider {
@Override
public String name() {
return "AcrossGreen";
}
@Override
public String text() {
return "横向目录";
}
@Override
public String coverPath() {
return "/com/fr/solution/theme/green/files/cover.png";
}
@Override
public String scriptPath() {
PluginLicense pluginLicense = PluginLicenseManager.getInstance().getPluginLicenseByID(ConstantsMongoConstants.PLUGIN_ID);
if (pluginLicense.isAvailable()) {
return "/com/fr/solution/theme/green/files/theme.js";
} else {
return "";
}
}
@Override
public String stylePath() {
PluginLicense pluginLicense = PluginLicenseManager.getInstance().getPluginLicenseByID(MongoConstants.PLUGIN_ID);
if (pluginLicense.isAvailable()) {
return "/com/fr/solution/theme/green/files/style.css";
} else {
return "";
}
}
} |
其中callSignKey的值就是插件的ID,是需要和plugin.xml中的id字段一致的。
...