- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for DocumentUtil (0.14 sec)
-
src/main/java/org/codelibs/fess/util/DocumentUtil.java
import org.codelibs.fess.taglib.FessFunctions; import org.lastaflute.web.util.LaRequestUtil; import jakarta.servlet.http.HttpServletRequest; public final class DocumentUtil { private DocumentUtil() { } public static <T> T getValue(final Map<String, Object> doc, final String key, final Class<T> clazz, final T defaultValue) { final T value = getValue(doc, key, clazz);
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/DocumentUtilTest.java
doc.put("key1", expected); assertEquals(expected, DocumentUtil.getValue(doc, "key1", String.class)); assertEquals(Integer.parseInt(expected), DocumentUtil.getValue(doc, "key1", Integer.class).intValue()); assertEquals(Long.parseLong(expected), DocumentUtil.getValue(doc, "key1", Long.class).longValue()); assertEquals(Float.parseFloat(expected), DocumentUtil.getValue(doc, "key1", Float.class).floatValue());
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/ViewHelper.java
String title = DocumentUtil.getValue(document, fessConfig.getIndexFieldTitle(), String.class); if (StringUtil.isBlank(title)) { title = DocumentUtil.getValue(document, fessConfig.getIndexFieldFilename(), String.class); if (StringUtil.isBlank(title)) { title = DocumentUtil.getValue(document, fessConfig.getIndexFieldUrl(), String.class); }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:20:39 UTC 2024 - 40.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/LanguageHelper.java
String language = getSupportedLanguage(DocumentUtil.getValue(doc, fessConfig.getIndexFieldLang(), String.class)); if (language == null) { for (final String f : langFields) { if (doc.containsKey(f)) { language = detectLanguage(DocumentUtil.getValue(doc, f, String.class)); if (language != null) {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 5.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/base/login/OpenIdConnectCredential.java
public String toString() { return "{" + getUserId() + "}"; } @Override public String getUserId() { return DocumentUtil.getValue(attributes, "email", String.class); } public String[] getUserGroups() { String[] userGroups = DocumentUtil.getValue(attributes, "groups", String[].class); if (userGroups == null) { userGroups = getDefaultGroupsAsArray(); }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:11:58 UTC 2024 - 4.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/thumbnail/impl/BaseThumbnailGenerator.java
} final String url = DocumentUtil.getValue(doc, fessConfig.getIndexFieldThumbnail(), String.class); if (StringUtil.isBlank(url)) { throw new ThumbnailGenerationException("Invalid thumbnail: " + url); } final String configId = DocumentUtil.getValue(doc, fessConfig.getIndexFieldConfigId(), String.class);
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 11.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/thumbnail/ThumbnailAction.java
import java.io.File; import java.io.FileInputStream; import java.util.Map; import org.codelibs.core.lang.StringUtil; import org.codelibs.fess.app.web.base.FessSearchAction; import org.codelibs.fess.util.DocumentUtil; import org.lastaflute.web.Execute; import org.lastaflute.web.response.ActionResponse; import jakarta.annotation.Resource; import jakarta.servlet.http.HttpServletResponse;
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 3.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/go/GoAction.java
import org.codelibs.fess.helper.PathMappingHelper; import org.codelibs.fess.helper.SearchLogHelper; import org.codelibs.fess.helper.ViewHelper; import org.codelibs.fess.util.ComponentUtil; import org.codelibs.fess.util.DocumentUtil; import org.dbflute.util.DfTypeUtil; import org.lastaflute.web.Execute; import org.lastaflute.web.response.ActionResponse; import org.lastaflute.web.response.HtmlResponse; import org.lastaflute.web.response.StreamResponse;
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 6.9K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/job/UpdateLabelJob.java
import org.codelibs.fess.helper.LabelTypeHelper; import org.codelibs.fess.helper.LanguageHelper; import org.codelibs.fess.mylasta.direction.FessConfig; import org.codelibs.fess.util.ComponentUtil; import org.codelibs.fess.util.DocumentUtil; import org.opensearch.index.query.QueryBuilder; import org.opensearch.script.Script; public class UpdateLabelJob { private static final Logger logger = LogManager.getLogger(UpdateLabelJob.class);
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 3.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/cache/CacheAction.java
import org.apache.logging.log4j.Logger; import org.codelibs.fess.Constants; import org.codelibs.fess.app.web.base.FessSearchAction; import org.codelibs.fess.app.web.error.ErrorAction; import org.codelibs.fess.util.DocumentUtil; import org.lastaflute.web.Execute; import org.lastaflute.web.response.ActionResponse; import org.lastaflute.web.response.StreamResponse; public class CacheAction extends FessSearchAction {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 3.4K bytes - Viewed (0)