use of org.codelibs.core.beans.util.CopyOptions in project fess by codelibs.
the class ApiAdminGeneralAction method post$index.
// POST /api/admin/general
@Execute
public JsonResponse<ApiResult> post$index(final EditBody body) {
validateApi(body, messages -> {
});
final EditBody newBody = new EditBody();
AdminGeneralAction.updateForm(fessConfig, newBody);
BeanUtil.copyBeanToBean(body, newBody, CopyOptions::excludeNull);
AdminGeneralAction.updateConfig(fessConfig, newBody);
return asJson(new ApiResponse().status(Status.OK).result());
}
Aggregations