Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getSynonymFile (0.07 sec)

  1. src/main/java/org/codelibs/fess/app/service/SynonymService.java

        }
    
        public OptionalEntity<SynonymFile> getSynonymFile(final String dictId) {
            return dictionaryManager.getDictionaryFile(dictId).filter(SynonymFile.class::isInstance)
                    .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());
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/web/api/admin/dict/synonym/ApiAdminDictSynonymAction.java

        public JsonResponse<ApiResult> post$upload(final String dictId, final UploadForm form) {
            form.dictId = dictId;
            validateApi(form, messages -> {});
            final SynonymFile file = synonymService.getSynonymFile(form.dictId).orElseGet(() -> {
                throwValidationErrorApi(messages -> messages.addErrorsFailedToUploadProtwordsFile(GLOBAL));
                return null;
            });
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 7.1K bytes
    - Viewed (0)
Back to top