use of org.codelibs.fess.app.pager.SeunjeonPager in project fess by codelibs.
the class ApiAdminDictSeunjeonAction method get$settings.
// GET /api/admin/dict/seunjeon/settings/{dictId}
@Execute
public JsonResponse<ApiResult> get$settings(final String dictId, final SearchBody body) {
body.dictId = dictId;
validateApi(body, messages -> {
});
final SeunjeonPager pager = copyBeanToNewBean(body, SeunjeonPager.class);
return asJson(new ApiResult.ApiConfigsResponse<EditBody>().settings(seunjeonService.getSeunjeonList(body.dictId, pager).stream().map(protwordsItem -> createEditBody(protwordsItem, dictId)).collect(Collectors.toList())).status(ApiResult.Status.OK).result());
}
Aggregations