Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for isTarget (0.16 sec)

  1. src/test/java/org/codelibs/fess/thumbnail/ThumbnailGeneratorTest.java

            assertTrue(thumbnailGenerator.isTarget(docMap));
        }
    
        public void test_isTarget_withUnsupportedMimeType() {
            // Test with unsupported document type
            Map<String, Object> docMap = new HashMap<>();
            docMap.put("mimetype", "application/unknown");
            assertFalse(thumbnailGenerator.isTarget(docMap));
        }
    
        public void test_isTarget_withNullDocMap() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/thumbnail/impl/BaseThumbnailGeneratorTest.java

        }
    
        public void test_isTarget() {
            // Test isTarget method
            generator = new TestThumbnailGenerator();
            Map<String, Object> docMap = new HashMap<>();
    
            // Note: isTarget requires FessConfig which needs container
            // We can only verify the method handles missing container gracefully
            try {
                generator.isTarget(docMap);
            } catch (IllegalStateException e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/thumbnail/impl/EmptyGeneratorTest.java

            assertTrue(emptyGenerator.isAvailable());
        }
    
        public void test_isTarget() {
            // Initialize without container
            emptyGenerator = new EmptyGenerator();
    
            // Note: isTarget method requires FessConfig from ComponentUtil
            // which needs container initialization.
            // We can only test that the method can be called without crashing
            // when proper conditions are not met.
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/dict/DictionaryCreator.java

         * @return a DictionaryFile instance if the path matches, null otherwise
         */
        public DictionaryFile<? extends DictionaryItem> create(final String path, final Date timestamp) {
            if (!isTarget(path)) {
                return null;
            }
    
            return newDictionaryFile(encodePath(path), path, timestamp);
        }
    
        /**
         * Encodes a file path using Base64 URL-safe encoding.
         *
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/thumbnail/ThumbnailGenerator.java

         * Checks if this generator can handle the given document.
         * @param docMap The document map containing metadata.
         * @return True if this generator can handle the document, false otherwise.
         */
        boolean isTarget(Map<String, Object> docMap);
    
        /**
         * Checks if this thumbnail generator is available for use.
         * @return True if available, false otherwise.
         */
        boolean isAvailable();
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/helper/IntervalControlHelper.java

            final int m = cal.get(Calendar.MINUTE);
            final int d = cal.get(Calendar.DAY_OF_WEEK); // SUN(1) - SAT(7)
            for (final IntervalRule rule : ruleList) {
                if (rule.isTarget(h, m, d)) {
                    return rule.getDelay();
                }
            }
            return 0;
        }
    
        /**
         * Gets the current calendar instance set to the system time.
         *
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/thumbnail/impl/BaseThumbnailGenerator.java

            if (StringUtil.isBlank(value)) {
                conditionMap.put(key, regex);
            } else {
                conditionMap.put(key, value + "|" + regex);
            }
        }
    
        @Override
        public boolean isTarget(final Map<String, Object> docMap) {
            final String thumbnailFieldName = ComponentUtil.getFessConfig().getIndexFieldThumbnail();
            if (logger.isDebugEnabled()) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 13.3K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/thumbnail/ThumbnailManagerTest.java

                return generateResult;
            }
    
            @Override
            public boolean isAvailable() {
                return available;
            }
    
            @Override
            public boolean isTarget(Map<String, Object> docMap) {
                return target;
            }
    
            @Override
            public Tuple3<String, String, String> createTask(String path, Map<String, Object> docMap) {
                return task;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 18.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/thumbnail/ThumbnailManager.java

         */
        public boolean offer(final Map<String, Object> docMap) {
            for (final ThumbnailGenerator generator : generatorList) {
                if (generator.isTarget(docMap)) {
                    final String path = getImageFilename(docMap);
                    final Tuple3<String, String, String> task = generator.createTask(path, docMap);
                    if (task != null) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  10. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/service/impl/AbstractCrawlerService.java

             *
             * @param clazz The class to check.
             * @return true if the class is Date.class, false otherwise.
             */
            @Override
            public boolean isTarget(@SuppressWarnings("rawtypes") final Class clazz) {
                return clazz == Date.class;
            }
    
        }
    
        /**
         * Gets the bulk buffer size for batch operations.
         *
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 34.2K bytes
    - Viewed (0)
Back to top