Search in sources :

Example 1 with ArtifactType

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;
}
Also used : PluginHelper(org.codelibs.fess.helper.PluginHelper) ArtifactType(org.codelibs.fess.helper.PluginHelper.ArtifactType) ArrayList(java.util.ArrayList) HashMap(java.util.HashMap) Map(java.util.Map)

Example 2 with ArtifactType

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;
}
Also used : PluginHelper(org.codelibs.fess.helper.PluginHelper) ArtifactType(org.codelibs.fess.helper.PluginHelper.ArtifactType) ArrayList(java.util.ArrayList) HashMap(java.util.HashMap) Map(java.util.Map)

Aggregations

ArrayList (java.util.ArrayList)2 HashMap (java.util.HashMap)2 Map (java.util.Map)2 PluginHelper (org.codelibs.fess.helper.PluginHelper)2 ArtifactType (org.codelibs.fess.helper.PluginHelper.ArtifactType)2