Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for ProtwordsItem (0.12 sec)

  1. src/main/java/org/codelibs/fess/dict/protwords/ProtwordsItem.java

     */
    public class ProtwordsItem extends DictionaryItem {
        private final String input;
    
        private String newInput;
    
        /**
         * Constructor for ProtwordsItem.
         * @param id the unique identifier for this item
         * @param input the protected word input
         */
        public ProtwordsItem(final long id, final String input) {
            this.id = id;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/dict/protwords/ProtwordsFileTest.java

            // Create updater with a new item
            ProtwordsItem newItem = new ProtwordsItem(0, "testNew");
            ProtwordsFile.ProtwordsUpdater updater = protwordsFile.new ProtwordsUpdater(newItem);
    
            // Write an existing item (should pass through)
            ProtwordsItem existingItem = new ProtwordsItem(10, "existing");
            ProtwordsItem result = updater.write(existingItem);
    
            assertNotNull(result);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/service/ProtwordsService.java

            getProtwordsFile(dictId).ifPresent(file -> {
                if (protwordsItem.getId() == 0) {
                    file.insert(protwordsItem);
                } else {
                    file.update(protwordsItem);
                }
            });
        }
    
        /**
         * Deletes a protected words item.
         * @param dictId the dictionary ID
         * @param protwordsItem the item to delete
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/dict/protwords/ProtwordsItemTest.java

        }
    
        public void test_getInput() {
            // Test getInput method
            ProtwordsItem item1 = new ProtwordsItem(1, "word1");
            assertEquals("word1", item1.getInput());
    
            ProtwordsItem item2 = new ProtwordsItem(2, "");
            assertEquals("", item2.getInput());
    
            ProtwordsItem item3 = new ProtwordsItem(3, null);
            assertNull(item3.getInput());
        }
    
        public void test_getInputValue() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/dict/protwords/ProtwordsFile.java

        }
    
        @Override
        public synchronized OptionalEntity<ProtwordsItem> get(final long id) {
            if (protwordsItemList == null) {
                reload(null);
            }
    
            for (final ProtwordsItem ProtwordsItem : protwordsItemList) {
                if (id == ProtwordsItem.getId()) {
                    return OptionalEntity.of(ProtwordsItem);
                }
            }
            return OptionalEntity.empty();
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/api/admin/dict/protwords/ApiAdminDictProtwordsAction.java

            return asJson(new ApiResult.ApiConfigsResponse<EditBody>().settings(protwordsService.getProtwordsList(body.dictId, pager)
                    .stream()
                    .map(protwordsItem -> createEditBody(protwordsItem, dictId))
                    .collect(Collectors.toList())).status(ApiResult.Status.OK).result());
        }
    
        /**
         * Retrieve a single protected words entry by ID for the specified dictionary.
         *
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/admin/dict/protwords/AdminDictProtwordsAction.java

        //                                                                        ============
    
        private static OptionalEntity<ProtwordsItem> getEntity(final CreateForm form) {
            switch (form.crudMode) {
            case CrudMode.CREATE:
                final ProtwordsItem entity = new ProtwordsItem(0, StringUtil.EMPTY);
                return OptionalEntity.of(entity);
            case CrudMode.EDIT:
                if (form instanceof EditForm) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 20.1K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/api/admin/dict/kuromoji/ApiAdminDictKuromojiAction.java

            return asJson(new ApiResult.ApiConfigsResponse<EditBody>().settings(kuromojiService.getKuromojiList(body.dictId, pager)
                    .stream()
                    .map(protwordsItem -> createEditBody(protwordsItem, dictId))
                    .collect(Collectors.toList())).status(ApiResult.Status.OK).result());
        }
    
        /**
         * Retrieves a specific Kuromoji dictionary item by ID.
         *
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/web/api/admin/dict/stemmeroverride/ApiAdminDictStemmeroverrideAction.java

                    new ApiResult.ApiConfigsResponse<EditBody>().settings(stemmerOverrideService.getStemmerOverrideList(body.dictId, pager)
                            .stream()
                            .map(protwordsItem -> createEditBody(protwordsItem, dictId))
                            .collect(Collectors.toList())).status(ApiResult.Status.OK).result());
        }
    
        /**
         * Retrieves a specific stemmer override dictionary item by ID.
         *
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/api/admin/dict/mapping/ApiAdminDictMappingAction.java

            return asJson(new ApiResult.ApiConfigsResponse<EditBody>().settings(charMappingService.getCharMappingList(body.dictId, pager)
                    .stream()
                    .map(protwordsItem -> createEditBody(protwordsItem, dictId))
                    .collect(Collectors.toList())).status(ApiResult.Status.OK).result());
        }
    
        /**
         * Retrieve a single character mapping entry by ID for the specified dictionary.
         *
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 9.5K bytes
    - Viewed (0)
Back to top