use of org.codelibs.fess.helper.PluginHelper.ArtifactType in project fess by codelibs.
the class AdminPluginAction method getAllInstalledArtifacts.
public static List<Map<String, String>> getAllInstalledArtifacts() {
final PluginHelper pluginHelper = ComponentUtil.getPluginHelper();
final List<Map<String, String>> result = new ArrayList<>();
for (final PluginHelper.ArtifactType artifactType : PluginHelper.ArtifactType.values()) {
result.addAll(Arrays.stream(pluginHelper.getInstalledArtifacts(artifactType)).map(AdminPluginAction::beanToMap).collect(Collectors.toList()));
}
return result;
}
use of org.codelibs.fess.helper.PluginHelper.ArtifactType in project fess by codelibs.
the class AdminPluginAction method getAllAvailableArtifacts.
public static List<Map<String, String>> getAllAvailableArtifacts() {
final PluginHelper pluginHelper = ComponentUtil.getPluginHelper();
final List<Map<String, String>> result = new ArrayList<>();
for (final PluginHelper.ArtifactType artifactType : PluginHelper.ArtifactType.values()) {
result.addAll(Arrays.stream(pluginHelper.getAvailableArtifacts(artifactType)).map(AdminPluginAction::beanToMap).collect(Collectors.toList()));
}
return result;
}
Aggregations