Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for LABEL (0.01 sec)

  1. src/main/java/org/codelibs/fess/app/web/admin/labeltype/AdminLabeltypeAction.java

    import jakarta.annotation.Resource;
    
    /**
     * Admin action for Label Type management.
     *
     */
    public class AdminLabeltypeAction extends FessAdminAction {
    
        /**
         * Default constructor.
         */
        public AdminLabeltypeAction() {
            super();
        }
    
        /** The role name for label type administration. */
        public static final String ROLE = "admin-labeltype";
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 18.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/web/base/FessSearchAction.java

        /**
         * Default constructor.
         */
        public FessSearchAction() {
            super();
        }
    
        /** The field name used for label-based search filtering. */
        protected static final String LABEL_FIELD = "label";
    
        /** Helper for performing search operations and managing search requests. */
        @Resource
        protected SearchHelper searchHelper;
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/ds/callback/IndexUpdateCallbackImplTest.java

            indexUpdateCallback.store(paramMap, dataMap);
    
            // Verify labels are merged
            String[] labels = (String[]) dataMap.get("label");
            assertEquals(3, labels.length);
            Set<String> labelSet = new HashSet<>();
            for (String label : labels) {
                labelSet.add(label);
            }
            assertTrue(labelSet.contains("existing"));
            assertTrue(labelSet.contains("label1"));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/mylasta/action/FessLabelsTest.java

                }
            }
    
            assertEquals("Should have exactly one serialVersionUID", 1, serialVersionUIDCount);
            assertTrue("Should have many label constants", labelConstantCount > 100);
        }
    
        /**
         * Test that label constant values match their field names
         */
        public void test_labelConstantValueMatchesName() throws Exception {
            Field[] fields = FessLabels.class.getDeclaredFields();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/taglib/FessFunctions.java

            }).orElse(false);
        }
    
        /**
         * Retrieves the localized label value for the given key from the current request's label map.
         *
         * @param value the label key to retrieve
         * @return the localized label value, or the key itself if not found
         */
        public static String label(final String value) {
            return LaRequestUtil.getOptionalRequest().map(req -> {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/api/admin/labeltype/ApiAdminLabeltypeAction.java

                            .status(ApiResult.Status.OK)
                            .result());
        }
    
        /**
         * Retrieves a specific label type setting by ID.
         *
         * @param id the ID of the label type setting to retrieve
         * @return JSON response containing the label type setting
         */
        // GET /api/admin/labeltype/setting/{id}
        @Execute
        public JsonResponse<ApiResult> get$setting(final String id) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/admin/user/AdminUserAction.java

            });
        }
    
        /**
         * Creates a label/value map item for dropdowns or list displays.
         *
         * @param label the display label for the item
         * @param value the value associated with the item
         * @return a map containing the label and value entries
         */
        protected Map<String, String> createItem(final String label, final String value) {
            final Map<String, String> map = new HashMap<>(2);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 19.5K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/job/UpdateLabelJobTest.java

            assertNotNull(result);
            // The mock returns a fixed count of 3
            assertTrue(result.contains("docs"));
        }
    
        // Test with empty label set
        public void test_execute_withEmptyLabelSet() {
            // Override mock to return empty label set
            LabelTypeHelper emptyLabelHelper = new LabelTypeHelper() {
                @Override
                public Set<String> getMatchedLabelValueSet(String url) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/util/GsaConfigParser.java

            return OptionalUtil.ofNullable(fileConfig);
        }
    
        /**
         * Gets all label types (collections) parsed from the GSA configuration.
         * Each label type represents a collection with its own URL filtering rules.
         *
         * @return an array of label types representing the parsed collections
         */
        public LabelType[] getLabelTypes() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/api/json/SearchApiManager.java

                    return FormatType.SCROLL;
                }
                return FormatType.SEARCH;
            }
            if ("labels".equals(type)) {
                return FormatType.LABEL;
            }
            if ("popular-words".equals(type)) {
                return FormatType.POPULARWORD;
            }
            if ("favorites".equals(type)) {
                return FormatType.FAVORITES;
            }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 54.6K bytes
    - Viewed (0)
Back to top