Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for CharMappingFile (0.26 sec)

  1. src/main/java/org/codelibs/fess/dict/mapping/CharMappingFile.java

    import org.dbflute.optional.OptionalEntity;
    
    public class CharMappingFile extends DictionaryFile<CharMappingItem> {
        private static final Logger logger = LogManager.getLogger(CharMappingFile.class);
    
        private static final String MAPPING = "mapping";
    
        List<CharMappingItem> mappingItemList;
    
        public CharMappingFile(final String id, final String path, final Date timestamp) {
            super(id, path, timestamp);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/service/CharMappingService.java

            }).orElse(Collections.emptyList());
        }
    
        public OptionalEntity<CharMappingFile> getCharMappingFile(final String dictId) {
            return dictionaryManager.getDictionaryFile(dictId).filter(CharMappingFile.class::isInstance)
                    .map(file -> OptionalEntity.of((CharMappingFile) file)).orElse(OptionalEntity.empty());
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/api/admin/dict/mapping/ApiAdminDictMappingAction.java

            validateApi(form, messages -> {});
            final CharMappingFile file = charMappingService.getCharMappingFile(form.dictId).orElseGet(() -> {
                throwValidationErrorApi(messages -> messages.addErrorsFailedToUploadProtwordsFile(GLOBAL));
                return null;
            });
            try (InputStream inputStream = form.charMappingFile.getInputStream()) {
                file.update(inputStream);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  4. src/main/webapp/WEB-INF/view/admin/dict/mapping/admin_dict_mapping_upload.jsp

                                        <label for="charMappingFile" class="col-sm-3 text-sm-right col-form-label"><la:message
                                                key="labels.dict_mapping_file"/></label>
                                        <div class="col-sm-9">
                                            <input type="file" id="charMappingFile" name="charMappingFile" 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)
  5. src/main/java/org/codelibs/fess/dict/mapping/CharMappingCreator.java

            dictionaryManager.addCreator(this);
        }
    
        @Override
        protected DictionaryFile<? extends DictionaryItem> newDictionaryFile(final String id, final String path, final Date timestamp) {
            return new CharMappingFile(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)
  6. src/main/java/org/codelibs/fess/app/web/admin/dict/mapping/UploadForm.java

    /**
     * @author nullpos
     * @author ma2tani
     */
    public class UploadForm {
    
        @Required
        public String dictId;
    
        @Required
        public MultipartFormFile charMappingFile;
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 960 bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/admin/dict/mapping/AdminDictMappingAction.java

            verifyToken(() -> uploadpage(form.dictId));
            return charMappingService.getCharMappingFile(form.dictId).map(file -> {
                try (InputStream inputStream = form.charMappingFile.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