Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for synonymFile (0.12 sec)

  1. src/main/java/org/codelibs/fess/dict/synonym/SynonymFile.java

    import org.codelibs.fess.util.ComponentUtil;
    import org.dbflute.optional.OptionalEntity;
    
    public class SynonymFile extends DictionaryFile<SynonymItem> {
        private static final String SYNONYM = "synonym";
    
        List<SynonymItem> synonymItemList;
    
        public SynonymFile(final String id, final String path, final Date timestamp) {
            super(id, path, timestamp);
        }
    
        @Override
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/dict/synonym/SynonymFileTest.java

             final SynonymFile synonymFile = new SynonymFile(file1);
             final PagingList<SynonymItem> itemList1 = synonymFile.selectList(0, 20);
             assertEquals(5, itemList1.size());
    
             final SynonymItem synonymItem1 = itemList1.get(0);
             synonymFile.delete(synonymItem1);
             final PagingList<SynonymItem> itemList2 = synonymFile.selectList(0, 20);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/dict/DictionaryManagerTest.java

            final SynonymCreator synonymCreator = new SynonymCreator();
            final SynonymFile synonymFile = (SynonymFile) synonymCreator.create(file1.getPath(), new Date());
            dictionaryManager.store(synonymFile, file1);
            final DictionaryFile<? extends DictionaryItem>[] synonymFiles = dictionaryManager.getDictionaryFiles();
            assertEquals(1, synonymFiles.length);
        }
        */
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/service/SynonymService.java

            }).orElse(Collections.emptyList());
        }
    
        public OptionalEntity<SynonymFile> getSynonymFile(final String dictId) {
            return dictionaryManager.getDictionaryFile(dictId).filter(SynonymFile.class::isInstance)
                    .map(file -> OptionalEntity.of((SynonymFile) file)).orElse(OptionalEntity.empty());
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. src/main/webapp/WEB-INF/view/admin/dict/synonym/admin_dict_synonym_upload.jsp

                                        <label for="synonymFile" class="col-sm-3 text-sm-right col-form-label"><la:message
                                                key="labels.dict_synonym_file"/></label>
                                        <div class="col-sm-9">
                                            <input type="file" id="synonymFile" name="synonymFile" class="form-control-file"/>
                                        </div>
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 13 07:47:04 UTC 2020
    - 6.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/api/admin/dict/synonym/ApiAdminDictSynonymAction.java

            form.dictId = dictId;
            validateApi(form, messages -> {});
            final SynonymFile file = synonymService.getSynonymFile(form.dictId).orElseGet(() -> {
                throwValidationErrorApi(messages -> messages.addErrorsFailedToUploadProtwordsFile(GLOBAL));
                return null;
            });
            try (InputStream inputStream = form.synonymFile.getInputStream()) {
                file.update(inputStream);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/admin/dict/synonym/UploadForm.java

    /**
     * @author shinsuke
     * @author Keiichi Watanabe
     */
    public class UploadForm {
    
        @Required
        public String dictId;
    
        @Required
        public MultipartFormFile synonymFile;
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 966 bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/dict/synonym/SynonymCreator.java

            dictionaryManager.addCreator(this);
        }
    
        @Override
        protected DictionaryFile<? extends DictionaryItem> newDictionaryFile(final String id, final String path, final Date timestamp) {
            return new SynonymFile(id, path, timestamp).manager(dictionaryManager);
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/dict/stopwords/StopwordsFile.java

            try (SynonymUpdater updater = new SynonymUpdater(null)) {
                reload(updater, in);
            }
        }
    
        @Override
        public String toString() {
            return "SynonymFile [path=" + path + ", stopwordsItemList=" + stopwordsItemList + ", id=" + id + "]";
        }
    
        protected class SynonymUpdater implements Closeable {
    
            protected boolean isCommit = false;
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/admin/dict/synonym/AdminDictSynonymAction.java

            verifyToken(() -> uploadpage(form.dictId));
            return synonymService.getSynonymFile(form.dictId).map(file -> {
                try (InputStream inputStream = form.synonymFile.getInputStream()) {
                    file.update(inputStream);
                } catch (final IOException e) {
                    logger.warn("Failed to process a request.", e);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 19.5K bytes
    - Viewed (0)
Back to top