Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getSynonymItem (0.16 sec)

  1. src/main/java/org/codelibs/fess/app/web/admin/dict/synonym/AdminDictSynonymAction.java

            });
        }
    
        @Execute
        @Secured({ ROLE })
        public HtmlResponse edit(final EditForm form) {
            validate(form, messages -> {}, () -> asListHtml(form.dictId));
            synonymService.getSynonymItem(form.dictId, form.id).ifPresent(entity -> {
                form.inputs = entity.getInputsValue();
                form.outputs = entity.getOutputsValue();
            }).orElse(() -> {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/web/api/admin/dict/synonym/ApiAdminDictSynonymAction.java

        @Execute
        public JsonResponse<ApiResult> get$setting(final String dictId, final long id) {
            return asJson(new ApiResult.ApiConfigResponse()
                    .setting(synonymService.getSynonymItem(dictId, id).map(entity -> createEditBody(entity, dictId)).orElseGet(() -> {
                        throwValidationErrorApi(messages -> messages.addErrorsCrudCouldNotFindCrudTable(GLOBAL, String.valueOf(id)));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/service/SynonymService.java

                    .map(file -> OptionalEntity.of((SynonymFile) file)).orElse(OptionalEntity.empty());
        }
    
        public OptionalEntity<SynonymItem> getSynonymItem(final String dictId, final long id) {
            return getSynonymFile(dictId).map(file -> file.get(id).get());
        }
    
        public void store(final String dictId, final SynonymItem synonymItem) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top