Search in sources :

Example 11 with WebConfig

use of org.codelibs.fess.es.config.exentity.WebConfig in project fess by codelibs.

the class AdminReqheaderAction method registerWebConfigItems.

protected void registerWebConfigItems(final RenderData data) {
    final List<Map<String, String>> itemList = new ArrayList<>();
    final List<WebConfig> webConfigList = crawlingConfigHelper.getAllWebConfigList(false, false, false, null);
    for (final WebConfig webConfig : webConfigList) {
        itemList.add(createItem(webConfig.getName(), webConfig.getId().toString()));
    }
    RenderDataUtil.register(data, "webConfigItems", itemList);
}
Also used : ArrayList(java.util.ArrayList) WebConfig(org.codelibs.fess.es.config.exentity.WebConfig) HashMap(java.util.HashMap) Map(java.util.Map)

Aggregations

WebConfig (org.codelibs.fess.es.config.exentity.WebConfig)11 StringUtil (org.codelibs.core.lang.StringUtil)7 Constants (org.codelibs.fess.Constants)7 List (java.util.List)6 ComponentUtil (org.codelibs.fess.util.ComponentUtil)6 Execute (org.lastaflute.web.Execute)6 Collectors (java.util.stream.Collectors)5 Resource (javax.annotation.Resource)5 WebConfigPager (org.codelibs.fess.app.pager.WebConfigPager)5 WebConfigService (org.codelibs.fess.app.service.WebConfigService)5 ArrayList (java.util.ArrayList)4 Map (java.util.Map)4 StreamUtil.stream (org.codelibs.core.stream.StreamUtil.stream)4 CrudMode (org.codelibs.fess.app.web.CrudMode)4 AdminWebconfigAction.getWebConfig (org.codelibs.fess.app.web.admin.webconfig.AdminWebconfigAction.getWebConfig)4 ApiResult (org.codelibs.fess.app.web.api.ApiResult)4 PermissionHelper (org.codelibs.fess.helper.PermissionHelper)4 HashMap (java.util.HashMap)3 LogManager (org.apache.logging.log4j.LogManager)3 Logger (org.apache.logging.log4j.Logger)3