Search in sources :

Example 1 with SeunjeonPager

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());
}
Also used : SeunjeonItem(org.codelibs.fess.dict.seunjeon.SeunjeonItem) FessApiAdminAction(org.codelibs.fess.app.web.api.admin.FessApiAdminAction) SeunjeonService(org.codelibs.fess.app.service.SeunjeonService) Resource(javax.annotation.Resource) JsonResponse(org.lastaflute.web.response.JsonResponse) Collectors(java.util.stream.Collectors) ApiResult(org.codelibs.fess.app.web.api.ApiResult) File(java.io.File) UploadForm(org.codelibs.fess.app.web.admin.dict.seunjeon.UploadForm) StreamResponse(org.lastaflute.web.response.StreamResponse) CrudMode(org.codelibs.fess.app.web.CrudMode) SeunjeonFile(org.codelibs.fess.dict.seunjeon.SeunjeonFile) AdminDictSeunjeonAction(org.codelibs.fess.app.web.admin.dict.seunjeon.AdminDictSeunjeonAction) Execute(org.lastaflute.web.Execute) InputStream(java.io.InputStream) SeunjeonPager(org.codelibs.fess.app.pager.SeunjeonPager) SeunjeonPager(org.codelibs.fess.app.pager.SeunjeonPager) Execute(org.lastaflute.web.Execute)

Aggregations

File (java.io.File)1 InputStream (java.io.InputStream)1 Collectors (java.util.stream.Collectors)1 Resource (javax.annotation.Resource)1 SeunjeonPager (org.codelibs.fess.app.pager.SeunjeonPager)1 SeunjeonService (org.codelibs.fess.app.service.SeunjeonService)1 CrudMode (org.codelibs.fess.app.web.CrudMode)1 AdminDictSeunjeonAction (org.codelibs.fess.app.web.admin.dict.seunjeon.AdminDictSeunjeonAction)1 UploadForm (org.codelibs.fess.app.web.admin.dict.seunjeon.UploadForm)1 ApiResult (org.codelibs.fess.app.web.api.ApiResult)1 FessApiAdminAction (org.codelibs.fess.app.web.api.admin.FessApiAdminAction)1 SeunjeonFile (org.codelibs.fess.dict.seunjeon.SeunjeonFile)1 SeunjeonItem (org.codelibs.fess.dict.seunjeon.SeunjeonItem)1 Execute (org.lastaflute.web.Execute)1 JsonResponse (org.lastaflute.web.response.JsonResponse)1 StreamResponse (org.lastaflute.web.response.StreamResponse)1