- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 10 for isTarget (0.04 seconds)
-
src/test/java/org/codelibs/fess/thumbnail/impl/BaseThumbnailGeneratorTest.java
@Test 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) {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Feb 04 14:24:39 GMT 2026 - 17.1K bytes - Click Count (0) -
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. *Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 3.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/thumbnail/impl/EmptyGeneratorTest.java
assertTrue(emptyGenerator.isAvailable()); } @Test 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.
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 6.5K bytes - Click Count (0) -
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(); /**Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 2.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/thumbnail/ThumbnailGeneratorTest.java
assertTrue(thumbnailGenerator.isTarget(docMap)); } @Test 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)); } @Test
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 11.7K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/helper/IntervalControlHelper.java
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Nov 23 12:34:02 GMT 2025 - 10K bytes - Click Count (0) -
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()) {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Nov 28 16:29:12 GMT 2025 - 13.4K bytes - Click Count (0) -
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;Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 20.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/IntervalControlHelperTest.java
assertTrue(rule.isTarget(12, 30, 5)); // 12:30 on Thursday // Within time range but not matching day assertFalse(rule.isTarget(12, 30, 2)); // 12:30 on Monday assertFalse(rule.isTarget(12, 30, 4)); // 12:30 on Wednesday assertFalse(rule.isTarget(12, 30, 6)); // 12:30 on Friday assertFalse(rule.isTarget(12, 30, 7)); // 12:30 on Saturday }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 13.6K bytes - Click Count (0) -
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) {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jan 01 12:47:47 GMT 2026 - 27.2K bytes - Click Count (0)