diff --git a/.gitignore b/.gitignore index 2a8cf15bf..c5cfabe0c 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,4 @@ *.iml .idea .DS_Store +/plugins/ diff --git a/pom.xml b/pom.xml index cb4a1b7ac..fdecf9436 100644 --- a/pom.xml +++ b/pom.xml @@ -61,16 +61,19 @@ 1.6 3.11-beta2 1.8.7 - - 1.7.0 - 1.7.0.0-SNAPSHOT + + 1.7.1 + 1.7.0.0 true true UTF-8 ${basedir}/src/test/resources/tomcat-users.xml + + https://oss.sonatype.org/content/repositories/snapshots + http://central.maven.org/maven2 fess @@ -197,6 +200,37 @@ ${basedir}/dbflute_fess + + maven-antrun-plugin + 1.8 + + + org.apache.ant + ant + 1.9.6 + + + + + + + + + + + + + + + + + run + + @@ -362,7 +396,7 @@ org.codelibs.robot - s2robot-lasta + s2robot-es ${s2robot.version} diff --git a/src/main/java/org/codelibs/fess/api/BaseApiManager.java b/src/main/java/org/codelibs/fess/api/BaseApiManager.java index 535cc4f82..37fdad19e 100644 --- a/src/main/java/org/codelibs/fess/api/BaseApiManager.java +++ b/src/main/java/org/codelibs/fess/api/BaseApiManager.java @@ -16,6 +16,16 @@ package org.codelibs.fess.api; +import java.io.IOException; +import java.io.OutputStreamWriter; +import java.io.PrintWriter; + +import javax.servlet.http.HttpServletResponse; + +import org.codelibs.core.exception.IORuntimeException; +import org.lastaflute.web.util.LaRequestUtil; +import org.lastaflute.web.util.LaResponseUtil; + public class BaseApiManager { protected static final String FAVORITES_API = "/favoritesApi"; @@ -60,4 +70,31 @@ public class BaseApiManager { } } + public static void write(String text, String contentType, String encoding) { + if (contentType == null) { + contentType = "text/plain"; + } + if (encoding == null) { + encoding = LaRequestUtil.getRequest().getCharacterEncoding(); + if (encoding == null) { + encoding = "UTF-8"; + } + } + HttpServletResponse response = LaResponseUtil.getResponse(); + response.setContentType(contentType + "; charset=" + encoding); + try { + PrintWriter out = null; + try { + out = new PrintWriter(new OutputStreamWriter(response.getOutputStream(), encoding)); + out.print(text); + } finally { + if (out != null) { + out.close(); + } + } + } catch (IOException e) { + throw new IORuntimeException(e); + } + } + } \ No newline at end of file diff --git a/src/main/java/org/codelibs/fess/api/json/JsonApiManager.java b/src/main/java/org/codelibs/fess/api/json/JsonApiManager.java index ed44760ea..22ed2e742 100644 --- a/src/main/java/org/codelibs/fess/api/json/JsonApiManager.java +++ b/src/main/java/org/codelibs/fess/api/json/JsonApiManager.java @@ -548,7 +548,7 @@ public class JsonApiManager extends BaseApiManager implements WebApiManager { if (isJsonp) { buf.append(')'); } - LaResponseUtil.write(buf.toString(), "text/javascript+json", Constants.UTF_8); + write(buf.toString(), "text/javascript+json", Constants.UTF_8); } diff --git a/src/main/java/org/codelibs/fess/api/xml/XmlApiManager.java b/src/main/java/org/codelibs/fess/api/xml/XmlApiManager.java index fea2b0da9..472a523a7 100644 --- a/src/main/java/org/codelibs/fess/api/xml/XmlApiManager.java +++ b/src/main/java/org/codelibs/fess/api/xml/XmlApiManager.java @@ -375,7 +375,7 @@ public class XmlApiManager extends BaseApiManager implements WebApiManager { buf.append(""); } buf.append(""); - LaResponseUtil.write(buf.toString(), "text/xml", Constants.UTF_8); + write(buf.toString(), "text/xml", Constants.UTF_8); } diff --git a/src/main/java/org/codelibs/fess/app/web/RootAction.java b/src/main/java/org/codelibs/fess/app/web/RootAction.java index 61bfad72a..7dd8201ab 100644 --- a/src/main/java/org/codelibs/fess/app/web/RootAction.java +++ b/src/main/java/org/codelibs/fess/app/web/RootAction.java @@ -329,14 +329,16 @@ public class RootAction { } if (doc == null) { errorMessage = - MessageResourcesUtil.getMessage(LaRequestUtil.getRequest().getLocale(), "errors.docid_not_found", indexForm.docId); + ComponentUtil.getMessageManager().getMessage(LaRequestUtil.getRequest().getLocale(), "errors.docid_not_found", + new Object[] { indexForm.docId }); return "error.jsp"; } final String content = viewHelper.createCacheContent(doc, indexForm.hq); if (content == null) { errorMessage = - MessageResourcesUtil.getMessage(LaRequestUtil.getRequest().getLocale(), "errors.docid_not_found", indexForm.docId); + ComponentUtil.getMessageManager().getMessage(LaRequestUtil.getRequest().getLocale(), "errors.docid_not_found", + new Object[] { indexForm.docId }); return "error.jsp"; } LaResponseUtil.write(content, "text/html", Constants.UTF_8); @@ -359,13 +361,15 @@ public class RootAction { } if (doc == null) { errorMessage = - MessageResourcesUtil.getMessage(LaRequestUtil.getRequest().getLocale(), "errors.docid_not_found", indexForm.docId); + ComponentUtil.getMessageManager().getMessage(LaRequestUtil.getRequest().getLocale(), "errors.docid_not_found", + new Object[] { indexForm.docId }); return "error.jsp"; } final Object urlObj = doc.get(fieldHelper.urlField); if (urlObj == null) { errorMessage = - MessageResourcesUtil.getMessage(LaRequestUtil.getRequest().getLocale(), "errors.document_not_found", indexForm.docId); + ComponentUtil.getMessageManager().getMessage(LaRequestUtil.getRequest().getLocale(), "errors.document_not_found", + new Object[] { indexForm.docId }); return "error.jsp"; } final String url = urlObj.toString(); @@ -420,7 +424,8 @@ public class RootAction { } catch (final Exception e) { logger.error("Failed to load: " + doc, e); errorMessage = - MessageResourcesUtil.getMessage(LaRequestUtil.getRequest().getLocale(), "errors.not_load_from_server", url); + ComponentUtil.getMessageManager().getMessage(LaRequestUtil.getRequest().getLocale(), + "errors.not_load_from_server", new Object[] { url }); return "error.jsp"; } } else if (Constants.TRUE.equals(crawlerProperties.getProperty(Constants.SEARCH_DESKTOP_PROPERTY, Constants.FALSE))) { @@ -428,7 +433,8 @@ public class RootAction { final File file = new File(path); if (!file.exists()) { errorMessage = - MessageResourcesUtil.getMessage(LaRequestUtil.getRequest().getLocale(), "errors.not_found_on_file_system", url); + ComponentUtil.getMessageManager().getMessage(LaRequestUtil.getRequest().getLocale(), + "errors.not_found_on_file_system", new Object[] { url }); return "error.jsp"; } final Desktop desktop = Desktop.getDesktop(); @@ -436,7 +442,8 @@ public class RootAction { desktop.open(file); } catch (final Exception e) { errorMessage = - MessageResourcesUtil.getMessage(LaRequestUtil.getRequest().getLocale(), "errors.could_not_open_on_system", url); + ComponentUtil.getMessageManager().getMessage(LaRequestUtil.getRequest().getLocale(), + "errors.could_not_open_on_system", new Object[] { url }); logger.warn("Could not open " + path, e); return "error.jsp"; } diff --git a/src/main/java/org/codelibs/fess/app/web/admin/FileAuthenticationForm.java b/src/main/java/org/codelibs/fess/app/web/admin/FileAuthenticationForm.java index 5106f5a2d..69a5e1354 100644 --- a/src/main/java/org/codelibs/fess/app/web/admin/FileAuthenticationForm.java +++ b/src/main/java/org/codelibs/fess/app/web/admin/FileAuthenticationForm.java @@ -62,7 +62,7 @@ public class FileAuthenticationForm implements Serializable { public String parameters; //@Required(target = "confirmfromcreate,create,confirmfromupdate,update,delete") - //@LongType + //@Maxbytelength(maxbytelength = 1000) public String fileConfigId; //@Required(target = "confirmfromupdate,update,delete") diff --git a/src/main/java/org/codelibs/fess/app/web/admin/design/AdminDesignAction.java b/src/main/java/org/codelibs/fess/app/web/admin/design/AdminDesignAction.java index 4d3fbe164..b17027630 100644 --- a/src/main/java/org/codelibs/fess/app/web/admin/design/AdminDesignAction.java +++ b/src/main/java/org/codelibs/fess/app/web/admin/design/AdminDesignAction.java @@ -112,7 +112,7 @@ public class AdminDesignAction extends FessAdminAction implements Serializable { @Execute public HtmlResponse upload(DesignForm form) { - validate(form, messages -> {} , toMainHtml()); + validate(form, messages -> {}, toMainHtml()); final String uploadedFileName = form.designFile.getFileName(); String fileName = form.designFileName; if (StringUtil.isBlank(fileName)) { diff --git a/src/main/java/org/codelibs/fess/app/web/admin/keymatch/AdminKeymatchAction.java b/src/main/java/org/codelibs/fess/app/web/admin/keymatch/AdminKeymatchAction.java index 5467167f4..9f6d61d35 100644 --- a/src/main/java/org/codelibs/fess/app/web/admin/keymatch/AdminKeymatchAction.java +++ b/src/main/java/org/codelibs/fess/app/web/admin/keymatch/AdminKeymatchAction.java @@ -172,14 +172,14 @@ public class AdminKeymatchAction extends FessAdminAction { @Token(save = false, validate = true, keep = true) @Execute public HtmlResponse confirmfromcreate(KeyMatchEditForm form) { - validate(form, messages -> {} , toEditHtml()); + validate(form, messages -> {}, toEditHtml()); return asHtml(path_AdminKeyMatch_ConfirmJsp); } @Token(save = false, validate = true, keep = true) @Execute public HtmlResponse confirmfromupdate(KeyMatchEditForm form) { - validate(form, messages -> {} , toEditHtml()); + validate(form, messages -> {}, toEditHtml()); return asHtml(path_AdminKeyMatch_ConfirmJsp); } @@ -189,7 +189,7 @@ public class AdminKeymatchAction extends FessAdminAction { @Token(save = false, validate = true) @Execute public HtmlResponse create(KeyMatchEditForm form) { - validate(form, messages -> {} , toEditHtml()); + validate(form, messages -> {}, toEditHtml()); keyMatchService.store(createKeyMatch(form)); saveInfo(messages -> messages.addSuccessCrudCreateCrudTable(GLOBAL)); ComponentUtil.getKeyMatchHelper().update(); @@ -199,7 +199,7 @@ public class AdminKeymatchAction extends FessAdminAction { @Token(save = false, validate = true) @Execute public HtmlResponse update(KeyMatchEditForm form) { - validate(form, messages -> {} , toEditHtml()); + validate(form, messages -> {}, toEditHtml()); keyMatchService.store(createKeyMatch(form)); saveInfo(messages -> messages.addSuccessCrudUpdateCrudTable(GLOBAL)); ComponentUtil.getKeyMatchHelper().update(); @@ -260,7 +260,7 @@ public class AdminKeymatchAction extends FessAdminAction { if (form.crudMode != expectedMode) { throwValidationError(messages -> { messages.addErrorsCrudInvalidMode(GLOBAL, String.valueOf(expectedMode), String.valueOf(form.crudMode)); - } , toEditHtml()); + }, toEditHtml()); } } diff --git a/src/main/java/org/codelibs/fess/client/FessEsClient.java b/src/main/java/org/codelibs/fess/client/FessEsClient.java index 68cc3dff1..47b5499e9 100644 --- a/src/main/java/org/codelibs/fess/client/FessEsClient.java +++ b/src/main/java/org/codelibs/fess/client/FessEsClient.java @@ -2,7 +2,10 @@ package org.codelibs.fess.client; import static org.codelibs.elasticsearch.runner.ElasticsearchClusterRunner.newConfigs; +import java.io.IOException; import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Map.Entry; @@ -18,6 +21,8 @@ import org.codelibs.core.io.FileUtil; import org.codelibs.core.lang.StringUtil; import org.codelibs.elasticsearch.runner.ElasticsearchClusterRunner; import org.codelibs.elasticsearch.runner.ElasticsearchClusterRunner.Configs; +import org.codelibs.elasticsearch.runner.net.Curl; +import org.codelibs.elasticsearch.runner.net.CurlResponse; import org.codelibs.fess.Constants; import org.codelibs.fess.ResultOffsetExceededException; import org.codelibs.fess.entity.FacetInfo; @@ -160,10 +165,21 @@ public class FessEsClient implements Client { protected List indexConfigList = new ArrayList<>(); + protected Map> configListMap = new HashMap<>(); + public void addIndexConfig(String path) { indexConfigList.add(path); } + public void addConfigFile(String index, String path) { + List list = configListMap.get(index); + if (list == null) { + list = new ArrayList<>(); + configListMap.put(index, list); + } + list.add(path); + } + public void setSettings(Map settings) { this.settings = settings; } @@ -215,6 +231,7 @@ public class FessEsClient implements Client { if (settings != null) { settingsBuilder.put(settings); } + settingsBuilder.put("path.plugins", System.getProperty("user.dir") + "/plugins"); }); runner.build(config); } @@ -264,6 +281,27 @@ public class FessEsClient implements Client { // ignore } if (!exists) { + if (runner != null) {// TODO replace with url + configListMap.getOrDefault(configIndex, Collections.emptyList()).forEach( + path -> { + String source = null; + final String filePath = indexConfigPath + "/" + configIndex + "/" + path; + try { + source = FileUtil.readUTF8(filePath); + try (CurlResponse response = + Curl.post(runner.node(), "_configsync/file").param("path", path).body(source).execute()) { + if (response.getHttpStatusCode() == 200) { + logger.info("Register " + path + " to " + configIndex); + } else { + logger.warn("Invalid request for " + path); + } + } + } catch (final Exception e) { + logger.warn("Failed to register " + filePath, e); + } + }); + } + try { String source = null; final String indexConfigFile = indexConfigPath + "/" + configIndex + ".json"; diff --git a/src/main/java/org/codelibs/fess/crud/util/SAStrutsUtil.java b/src/main/java/org/codelibs/fess/crud/util/SAStrutsUtil.java deleted file mode 100644 index ce095715c..000000000 --- a/src/main/java/org/codelibs/fess/crud/util/SAStrutsUtil.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2009-2015 the CodeLibs Project and the Others. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, - * either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -package org.codelibs.fess.crud.util; - -import javax.servlet.http.HttpServletRequest; - -import org.codelibs.fess.util.ActionMessagesUtil; -import org.lastaflute.web.ruts.message.ActionMessage; -import org.lastaflute.web.ruts.message.ActionMessages; -import org.lastaflute.web.util.LaRequestUtil; - -public class SAStrutsUtil { - protected SAStrutsUtil() { - // nothing - } - - public static void addMessage(final String key) { - addMessage(LaRequestUtil.getRequest(), key); - } - - public static void addMessage(final HttpServletRequest request, final String key) { - final ActionMessages msgs = new ActionMessages(); - msgs.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(key)); - ActionMessagesUtil.saveMessages(request, msgs); - } - - public static void addMessage(final String key, final Object... values) { - addMessage(LaRequestUtil.getRequest(), key, values); - } - - public static void addMessage(final HttpServletRequest request, final String key, final Object... values) { - final ActionMessages msgs = new ActionMessages(); - msgs.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(key, values)); - ActionMessagesUtil.saveMessages(request, msgs); - } - - public static void addSessionMessage(final String key) { - addSessionMessage(LaRequestUtil.getRequest(), key); - } - - public static void addSessionMessage(final HttpServletRequest request, final String key) { - final ActionMessages msgs = new ActionMessages(); - msgs.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(key)); - ActionMessagesUtil.saveMessages(request.getSession(), msgs); - } - - public static void addSessionMessage(final String key, final Object... values) { - addSessionMessage(LaRequestUtil.getRequest(), key, values); - } - - public static void addSessionMessage(final HttpServletRequest request, final String key, final Object... values) { - final ActionMessages msgs = new ActionMessages(); - msgs.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(key, values)); - ActionMessagesUtil.saveMessages(request.getSession(), msgs); - } -} diff --git a/src/main/java/org/codelibs/fess/dict/DictionaryExpiredException.java b/src/main/java/org/codelibs/fess/dict/DictionaryExpiredException.java index 94da719e3..8b6270364 100644 --- a/src/main/java/org/codelibs/fess/dict/DictionaryExpiredException.java +++ b/src/main/java/org/codelibs/fess/dict/DictionaryExpiredException.java @@ -16,11 +16,11 @@ package org.codelibs.fess.dict; -public class DictionaryExpiredException extends ActionMessagesException { +public class DictionaryExpiredException extends RuntimeException { private static final long serialVersionUID = 1L; - public DictionaryExpiredException() { - super("errors.expired_dict_id"); - } + // public DictionaryExpiredException() { + // super("errors.expired_dict_id"); + // } } diff --git a/src/main/java/org/codelibs/fess/ds/impl/AbstractDataStoreImpl.java b/src/main/java/org/codelibs/fess/ds/impl/AbstractDataStoreImpl.java index 872c3d4df..5567038ae 100644 --- a/src/main/java/org/codelibs/fess/ds/impl/AbstractDataStoreImpl.java +++ b/src/main/java/org/codelibs/fess/ds/impl/AbstractDataStoreImpl.java @@ -33,6 +33,9 @@ import org.codelibs.fess.util.ComponentUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import groovy.lang.Binding; +import groovy.lang.GroovyShell; + public abstract class AbstractDataStoreImpl implements DataStore { private static final Logger logger = LoggerFactory.getLogger(AbstractDataStoreImpl.class); @@ -111,8 +114,7 @@ public abstract class AbstractDataStoreImpl implements DataStore { } try { - final Object exp = OgnlUtil.parseExpression(template); - final Object value = OgnlUtil.getValue(exp, paramMap); + final Object value = new GroovyShell(new Binding(paramMap)).evaluate(template); if (value == null) { return null; } diff --git a/src/main/java/org/codelibs/fess/es/exentity/CrawlingSessionInfo.java b/src/main/java/org/codelibs/fess/es/exentity/CrawlingSessionInfo.java index 97c5e817d..29d049325 100644 --- a/src/main/java/org/codelibs/fess/es/exentity/CrawlingSessionInfo.java +++ b/src/main/java/org/codelibs/fess/es/exentity/CrawlingSessionInfo.java @@ -47,7 +47,7 @@ public class CrawlingSessionInfo extends BsCrawlingSessionInfo { public String getKeyMsg() { final Locale locale = LaRequestUtil.getRequest().getLocale(); - final String message = MessageResourcesUtil.getMessage(locale, "labels.crawling_session_" + getKey()); + final String message = ComponentUtil.getMessageManager().getMessage(locale, "labels.crawling_session_" + getKey()); if (message == null || message.startsWith("???")) { return getKey(); } diff --git a/src/main/java/org/codelibs/fess/es/exentity/FileAuthentication.java b/src/main/java/org/codelibs/fess/es/exentity/FileAuthentication.java index c339197dc..7729deab0 100644 --- a/src/main/java/org/codelibs/fess/es/exentity/FileAuthentication.java +++ b/src/main/java/org/codelibs/fess/es/exentity/FileAuthentication.java @@ -1,6 +1,8 @@ package org.codelibs.fess.es.exentity; import org.codelibs.fess.es.bsentity.BsFileAuthentication; +import org.codelibs.fess.service.FileConfigService; +import org.codelibs.fess.util.ComponentUtil; /** * @author FreeGen @@ -8,6 +10,7 @@ import org.codelibs.fess.es.bsentity.BsFileAuthentication; public class FileAuthentication extends BsFileAuthentication { private static final long serialVersionUID = 1L; + private FileConfig fileConfig; @Override public String getId() { @@ -26,4 +29,12 @@ public class FileAuthentication extends BsFileAuthentication { public void setVersionNo(Long version) { asDocMeta().version(version); } + + public FileConfig getFileConfig() { + if (fileConfig == null) { + final FileConfigService fileConfigService = ComponentUtil.getComponent(FileConfigService.class); + fileConfig = fileConfigService.getFileConfig(getFileConfigId()); + } + return fileConfig; + } } diff --git a/src/main/java/org/codelibs/fess/es/exentity/RequestHeader.java b/src/main/java/org/codelibs/fess/es/exentity/RequestHeader.java index 00c33bd5b..d6dd50492 100644 --- a/src/main/java/org/codelibs/fess/es/exentity/RequestHeader.java +++ b/src/main/java/org/codelibs/fess/es/exentity/RequestHeader.java @@ -1,6 +1,8 @@ package org.codelibs.fess.es.exentity; import org.codelibs.fess.es.bsentity.BsRequestHeader; +import org.codelibs.fess.service.WebConfigService; +import org.codelibs.fess.util.ComponentUtil; /** * @author FreeGen @@ -8,6 +10,7 @@ import org.codelibs.fess.es.bsentity.BsRequestHeader; public class RequestHeader extends BsRequestHeader { private static final long serialVersionUID = 1L; + private WebConfig webConfig; @Override public String getId() { @@ -30,4 +33,12 @@ public class RequestHeader extends BsRequestHeader { public org.codelibs.robot.client.http.RequestHeader getS2RobotRequestHeader() { return new org.codelibs.robot.client.http.RequestHeader(getName(), getValue()); } + + public WebConfig getWebConfig() { + if (webConfig == null) { + final WebConfigService webConfigService = ComponentUtil.getComponent(WebConfigService.class); + webConfig = webConfigService.getWebConfig(getWebConfigId()); + } + return webConfig; + } } diff --git a/src/main/java/org/codelibs/fess/exception/SSCActionMessagesException.java b/src/main/java/org/codelibs/fess/exception/SSCActionMessagesException.java deleted file mode 100644 index 8d2e481ba..000000000 --- a/src/main/java/org/codelibs/fess/exception/SSCActionMessagesException.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2004-2010 the Seasar Foundation and the Others. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, - * either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ -package org.codelibs.fess.exception; - -/** - * SSCActionMessagesException allows you to pass a root cause. - * - * @author shinsuke - * - */ -public class SSCActionMessagesException extends ActionMessagesException { - - /** - * A default serial version uid. - */ - private static final long serialVersionUID = 1L; - - public SSCActionMessagesException(final String key, final boolean resource) { - super(key, resource); - } - - public SSCActionMessagesException(final String key, final Object... values) { - super(key, values); - } - - public SSCActionMessagesException(final Throwable cause, final String key, final boolean resource) { - super(key, resource); - initCause(cause); - } - - public SSCActionMessagesException(final Throwable cause, final String key, final Object... values) { - super(key, values); - initCause(cause); - } - -} diff --git a/src/main/java/org/codelibs/fess/filter/FessEncodingFilter.java b/src/main/java/org/codelibs/fess/filter/FessEncodingFilter.java index a9108b0a6..d0c3ca5bf 100644 --- a/src/main/java/org/codelibs/fess/filter/FessEncodingFilter.java +++ b/src/main/java/org/codelibs/fess/filter/FessEncodingFilter.java @@ -36,8 +36,10 @@ import javax.servlet.http.HttpServletResponse; import org.apache.commons.codec.DecoderException; import org.apache.commons.codec.net.URLCodec; import org.codelibs.core.lang.StringUtil; +import org.lastaflute.web.LastaFilter; -public class FessEncodingFilter extends EncodingFilter { +// TODO parent filter +public class FessEncodingFilter extends LastaFilter { public static String ENCODING_MAP = "encodingRules"; protected Map encodingMap = new ConcurrentHashMap<>(); @@ -53,7 +55,7 @@ public class FessEncodingFilter extends EncodingFilter { super.init(config); servletContext = config.getServletContext(); - encoding = config.getInitParameter(ENCODING); + encoding = config.getInitParameter(ENCODING_KEY); if (encoding == null) { encoding = DEFAULT_ENCODING; } diff --git a/src/main/java/org/codelibs/fess/helper/SystemHelper.java b/src/main/java/org/codelibs/fess/helper/SystemHelper.java index d7cb74adb..7116133c0 100644 --- a/src/main/java/org/codelibs/fess/helper/SystemHelper.java +++ b/src/main/java/org/codelibs/fess/helper/SystemHelper.java @@ -36,10 +36,12 @@ import java.util.concurrent.atomic.AtomicBoolean; import javax.annotation.PostConstruct; import org.apache.commons.lang3.LocaleUtils; +import org.apache.commons.lang3.StringUtils; import org.codelibs.core.lang.StringUtil; import org.codelibs.fess.Constants; import org.codelibs.fess.es.exentity.RoleType; import org.codelibs.fess.service.RoleTypeService; +import org.codelibs.fess.util.ComponentUtil; import org.codelibs.robot.util.CharUtil; import org.lastaflute.di.core.SingletonLaContainer; import org.lastaflute.web.util.LaRequestUtil; @@ -99,7 +101,7 @@ public class SystemHelper implements Serializable { final ULocale uLocale = new ULocale(key); final Locale displayLocale = uLocale.toLocale(); final List> langItems = new ArrayList<>(supportedLanguages.length); - final String msg = MessageResourcesUtil.getMessage(displayLocale, "labels.allLanguages"); + final String msg = ComponentUtil.getMessageManager().getMessage(displayLocale, "labels.allLanguages"); final Map defaultMap = new HashMap<>(2); defaultMap.put(Constants.ITEM_LABEL, msg); defaultMap.put(Constants.ITEM_VALUE, "all"); @@ -349,7 +351,7 @@ public class SystemHelper implements Serializable { return langItemsCache.get(localeStr); } catch (final ExecutionException e) { final List> langItems = new ArrayList<>(supportedLanguages.length); - final String msg = MessageResourcesUtil.getMessage(locale, "labels.allLanguages"); + final String msg = ComponentUtil.getMessageManager().getMessage(locale, "labels.allLanguages"); final Map defaultMap = new HashMap<>(2); defaultMap.put(Constants.ITEM_LABEL, msg); defaultMap.put(Constants.ITEM_VALUE, "all"); diff --git a/src/main/java/org/codelibs/fess/helper/ViewHelper.java b/src/main/java/org/codelibs/fess/helper/ViewHelper.java index 3c1346a06..d7990ef9b 100644 --- a/src/main/java/org/codelibs/fess/helper/ViewHelper.java +++ b/src/main/java/org/codelibs/fess/helper/ViewHelper.java @@ -380,16 +380,16 @@ public class ViewHelper implements Serializable { } String url = (String) doc.get("urlLink"); if (url == null) { - url = MessageResourcesUtil.getMessage(locale, "labels.search_unknown"); + url = ComponentUtil.getMessageManager().getMessage(locale, "labels.search_unknown"); } Object created = doc.get(fieldHelper.createdField); if (created instanceof Date) { final SimpleDateFormat sdf = new SimpleDateFormat(CoreLibConstants.DATE_FORMAT_ISO_8601_EXTEND); created = sdf.format((Date) created); } else { - created = MessageResourcesUtil.getMessage(locale, "labels.search_unknown"); + created = ComponentUtil.getMessageManager().getMessage(locale, "labels.search_unknown"); } - doc.put("cacheMsg", MessageResourcesUtil.getMessage(locale, "labels.search_cache_msg", url, created)); + doc.put("cacheMsg", ComponentUtil.getMessageManager().getMessage(locale, "labels.search_cache_msg", new Object[] { url, created })); doc.put("queries", queries); diff --git a/src/main/java/org/codelibs/fess/helper/impl/SearchLogHelperImpl.java b/src/main/java/org/codelibs/fess/helper/impl/SearchLogHelperImpl.java index 3e94931dd..bcd9727b6 100644 --- a/src/main/java/org/codelibs/fess/helper/impl/SearchLogHelperImpl.java +++ b/src/main/java/org/codelibs/fess/helper/impl/SearchLogHelperImpl.java @@ -25,7 +25,6 @@ import java.util.Queue; import org.codelibs.core.beans.util.BeanUtil; import org.codelibs.core.lang.StringUtil; import org.codelibs.fess.Constants; -import org.codelibs.fess.beans.FessBeans; import org.codelibs.fess.client.FessEsClient; import org.codelibs.fess.es.exbhv.ClickLogBhv; import org.codelibs.fess.es.exbhv.SearchLogBhv; diff --git a/src/main/java/org/codelibs/fess/interceptor/FessActionMessagesThrowsInterceptor.java b/src/main/java/org/codelibs/fess/interceptor/FessActionMessagesThrowsInterceptor.java deleted file mode 100644 index 85458c8cb..000000000 --- a/src/main/java/org/codelibs/fess/interceptor/FessActionMessagesThrowsInterceptor.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2009-2015 the CodeLibs Project and the Others. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, - * either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -package org.codelibs.fess.interceptor; - -import org.codelibs.fess.UnsupportedSearchException; -import org.lastaflute.di.core.aop.frame.MethodInvocation; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -public class FessActionMessagesThrowsInterceptor extends ActionMessagesThrowsInterceptor { - private static final long serialVersionUID = 1L; - - private static final String SYSTEM_ERROR_JSP = "/error/system.jsp"; - - private static final Logger logger = LoggerFactory.getLogger(FessActionMessagesThrowsInterceptor.class); - - @Override - public Object invoke(final MethodInvocation invocation) throws Throwable { - try { - return super.invoke(invocation); - } catch (final Throwable t) { // NOPMD - printLog(t); - return SYSTEM_ERROR_JSP; - } - } - - private void printLog(final Throwable t) { - if (t.getClass().getName().endsWith("ClientAbortException")) { - // ignore - if (logger.isDebugEnabled()) { - logger.debug(t.getMessage()); - } - } else if (t instanceof UnsupportedSearchException) { - logger.warn(t.getMessage()); - } else { - logger.error("System error occured.", t); - } - } -} diff --git a/src/main/java/org/codelibs/fess/interceptor/TokenInterceptor.java b/src/main/java/org/codelibs/fess/interceptor/TokenInterceptor.java index e0e7da35b..56439851e 100644 --- a/src/main/java/org/codelibs/fess/interceptor/TokenInterceptor.java +++ b/src/main/java/org/codelibs/fess/interceptor/TokenInterceptor.java @@ -42,17 +42,18 @@ public class TokenInterceptor extends AbstractInterceptor { */ @Override public Object invoke(final MethodInvocation invocation) throws Throwable { - final Token token = invocation.getMethod().getAnnotation(Token.class); - if (token != null) { - final TokenProcessor processor = TokenProcessor.getInstance(); - final HttpServletRequest request = LaRequestUtil.getRequest(); - if (token.save()) { - processor.saveToken(request); - } else if (token.validate() && !processor.isTokenValid(request, !token.keep())) { - processor.resetToken(request); - throw new ActionMessagesException("errors.token", new Object[0]); - } - } + // TODO replace with lastaflute? + // final Token token = invocation.getMethod().getAnnotation(Token.class); + // if (token != null) { + // final TokenProcessor processor = TokenProcessor.getInstance(); + // final HttpServletRequest request = LaRequestUtil.getRequest(); + // if (token.save()) { + // processor.saveToken(request); + // } else if (token.validate() && !processor.isTokenValid(request, !token.keep())) { + // processor.resetToken(request); + // throw new ActionMessagesException("errors.token", new Object[0]); + // } + // } return invocation.proceed(); } diff --git a/src/main/java/org/codelibs/fess/interceptor/UserInfoInterceptor.java b/src/main/java/org/codelibs/fess/interceptor/UserInfoInterceptor.java index f9d670e36..3f471a04c 100644 --- a/src/main/java/org/codelibs/fess/interceptor/UserInfoInterceptor.java +++ b/src/main/java/org/codelibs/fess/interceptor/UserInfoInterceptor.java @@ -33,6 +33,7 @@ import org.lastaflute.web.util.LaRequestUtil; * @author shinsuke * */ +// TODO update? public class UserInfoInterceptor extends AbstractInterceptor { private static final long serialVersionUID = 1L; @@ -46,6 +47,7 @@ public class UserInfoInterceptor extends AbstractInterceptor { */ @Override public Object invoke(final MethodInvocation invocation) throws Throwable { + /* final HttpServletRequest request = LaRequestUtil.getRequest(); final HttpSession session = request.getSession(false); if (session == null) { @@ -73,6 +75,7 @@ public class UserInfoInterceptor extends AbstractInterceptor { break; } } + */ return invocation.proceed(); } diff --git a/src/main/java/org/codelibs/fess/mylasta/action/FessLabels.java b/src/main/java/org/codelibs/fess/mylasta/action/FessLabels.java index 078b47e01..2e5b7f37e 100644 --- a/src/main/java/org/codelibs/fess/mylasta/action/FessLabels.java +++ b/src/main/java/org/codelibs/fess/mylasta/action/FessLabels.java @@ -2490,7 +2490,8 @@ public class FessLabels extends ActionMessages { public static final String LABELS_system_info_bug_report_title = "{labels.system_info_bug_report_title}"; /** The key of the message: crawler.properties does not exist. Default values are applied. */ - public static final String LABELS_system_info_crawler_properties_does_not_exist = "{labels.system_info_crawler_properties_does_not_exist}"; + public static final String LABELS_system_info_crawler_properties_does_not_exist = + "{labels.system_info_crawler_properties_does_not_exist}"; /** The key of the message: File Authentication */ public static final String LABELS_file_authentication_configuration = "{labels.file_authentication_configuration}"; @@ -2529,7 +2530,8 @@ public class FessLabels extends ActionMessages { public static final String LABELS_file_authentication_list_hostname = "{labels.file_authentication_list_hostname}"; /** The key of the message: Config Name */ - public static final String LABELS_file_authentication_list_file_crawling_config = "{labels.file_authentication_list_file_crawling_config}"; + public static final String LABELS_file_authentication_list_file_crawling_config = + "{labels.file_authentication_list_file_crawling_config}"; /** The key of the message: Any */ public static final String LABELS_file_authentication_any = "{labels.file_authentication_any}"; diff --git a/src/main/java/org/codelibs/fess/mylasta/action/FessMessages.java b/src/main/java/org/codelibs/fess/mylasta/action/FessMessages.java index 743908a59..0d31fce99 100644 --- a/src/main/java/org/codelibs/fess/mylasta/action/FessMessages.java +++ b/src/main/java/org/codelibs/fess/mylasta/action/FessMessages.java @@ -124,7 +124,8 @@ public class FessMessages extends FessLabels { public static final String ERRORS_failed_to_delete_solr_index = "{errors.failed_to_delete_solr_index}"; /** The key of the message: Failed to start a process because of running solr process. */ - public static final String ERRORS_failed_to_start_solr_process_because_of_running = "{errors.failed_to_start_solr_process_because_of_running}"; + public static final String ERRORS_failed_to_start_solr_process_because_of_running = + "{errors.failed_to_start_solr_process_because_of_running}"; /** The key of the message: Failed to restore data. */ public static final String ERRORS_failed_to_import_data = "{errors.failed_to_import_data}"; diff --git a/src/main/java/org/codelibs/fess/solr/BoostDocumentRule.java b/src/main/java/org/codelibs/fess/solr/BoostDocumentRule.java index 68bd83c4e..db86febb3 100644 --- a/src/main/java/org/codelibs/fess/solr/BoostDocumentRule.java +++ b/src/main/java/org/codelibs/fess/solr/BoostDocumentRule.java @@ -21,6 +21,9 @@ import java.util.Map; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import groovy.lang.Binding; +import groovy.lang.GroovyShell; + public class BoostDocumentRule { private static final Logger logger = LoggerFactory.getLogger(BoostDocumentRule.class); @@ -44,8 +47,7 @@ public class BoostDocumentRule { } try { - final Object exp = OgnlUtil.parseExpression(matchExpression); - final Object value = OgnlUtil.getValue(exp, map); + final Object value = new GroovyShell(new Binding(map)).evaluate(matchExpression); if (value instanceof Boolean) { return ((Boolean) value).booleanValue(); @@ -63,8 +65,7 @@ public class BoostDocumentRule { } try { - final Object exp = OgnlUtil.parseExpression(boostExpression); - final Object value = OgnlUtil.getValue(exp, map); + final Object value = new GroovyShell(new Binding(map)).evaluate(boostExpression); if (value instanceof Integer) { return ((Integer) value).floatValue(); diff --git a/src/main/java/org/codelibs/fess/solr/IndexUpdater.java b/src/main/java/org/codelibs/fess/solr/IndexUpdater.java index 341bdb98d..dbdb1290b 100644 --- a/src/main/java/org/codelibs/fess/solr/IndexUpdater.java +++ b/src/main/java/org/codelibs/fess/solr/IndexUpdater.java @@ -537,13 +537,11 @@ public class IndexUpdater extends Thread { return documentSize; } - @Binding(bindingType = BindingType.MAY) @Override public void setUncaughtExceptionHandler(final UncaughtExceptionHandler eh) { super.setUncaughtExceptionHandler(eh); } - @Binding(bindingType = BindingType.MAY) public static void setDefaultUncaughtExceptionHandler(final UncaughtExceptionHandler eh) { Thread.setDefaultUncaughtExceptionHandler(eh); } diff --git a/src/main/java/org/codelibs/fess/struts/action/FessRequestProcessor.java b/src/main/java/org/codelibs/fess/struts/action/FessRequestProcessor.java deleted file mode 100644 index b3cf1b4eb..000000000 --- a/src/main/java/org/codelibs/fess/struts/action/FessRequestProcessor.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2009-2015 the CodeLibs Project and the Others. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, - * either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -package org.codelibs.fess.struts.action; - -import java.util.Map; - -import org.codelibs.fess.util.SearchParamMap; - -public class FessRequestProcessor extends S2RequestProcessor/*ActionRequestProcessor*/{ - @Override - @SuppressWarnings("unchecked") - protected void setMapProperty(final Map map, final String name, final Object value) { - if (value instanceof String[]) { - if (map.get(SearchParamMap.CLASS_NAME) != null) { - map.put(name, value); - } else { - final String[] values = (String[]) value; - map.put(name, values.length > 0 ? values[0] : null); - } - } else { - map.put(name, value); - } - } - -} diff --git a/src/main/java/org/codelibs/fess/struts/action/SSCRequestProcessor.java b/src/main/java/org/codelibs/fess/struts/action/SSCRequestProcessor.java deleted file mode 100644 index 1fecba7c3..000000000 --- a/src/main/java/org/codelibs/fess/struts/action/SSCRequestProcessor.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright 2004-2010 the Seasar Foundation and the Others. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, - * either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ -package org.codelibs.fess.struts.action; - -import javax.servlet.ServletException; - -import org.lastaflute.web.ruts.config.ModuleConfig; -import org.lastaflute.web.ruts.process.ActionFormMapper.IndexParsedResult; - -/** - * @author shinsuke - * - */ -public class SSCRequestProcessor extends S2RequestProcessor { - protected static final char NESTED_DELIM = '.'; - - protected static final char INDEXED_DELIM = '['; - - protected static final char INDEXED_DELIM2 = ']'; - - protected int maxReqParamSize = 100; - - @Override - public void init(ActionServlet servlet, ModuleConfig moduleConfig) throws ServletException { - super.init(servlet, moduleConfig); - final Object value = servlet.getServletContext().getAttribute("sastruts.MAX_REQUEST_PARAMETER_SIZE"); - if (value != null) { - maxReqParamSize = Integer.parseInt(value.toString()); - } - } - - @Override - protected IndexParsedResult parseIndex(String name) { - final IndexParsedResult result = new SSCIndexParsedResult(); - while (true) { - final int index = name.indexOf(INDEXED_DELIM2); - if (index < 0) { - throw new IllegalArgumentException(INDEXED_DELIM2 + " is not found in " + name); - } - final int size = Integer.valueOf(name.substring(0, index)).intValue(); - if (size > maxReqParamSize) { - throw new IllegalArgumentException("The array size exceeds " + maxReqParamSize); - } - result.indexes = ArrayUtil.add(result.indexes, size); - name = name.substring(index + 1); - if (name.length() == 0) { - break; - } else if (name.charAt(0) == INDEXED_DELIM) { - name = name.substring(1); - } else if (name.charAt(0) == NESTED_DELIM) { - name = name.substring(1); - break; - } else { - throw new IllegalArgumentException(name); - } - } - result.name = name; - return result; - } - - /** - * - */ - protected static class SSCIndexParsedResult extends IndexParsedResult { - } - -} diff --git a/src/main/java/org/codelibs/fess/struts/servlet/SSCActionServlet.java b/src/main/java/org/codelibs/fess/struts/servlet/SSCActionServlet.java deleted file mode 100644 index ddfc8e6eb..000000000 --- a/src/main/java/org/codelibs/fess/struts/servlet/SSCActionServlet.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2012 the CodeLibs Project and the Others. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, - * either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ -package org.codelibs.fess.struts.servlet; - -import java.io.IOException; - -import javax.servlet.ServletException; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -/** - * PUT and DELETE supported ActionServlet. - * - * @author shinsuke - * - */ -// TODO Lastafluteでは不要 -public class SSCActionServlet extends ActionServlet { - - private static final long serialVersionUID = 1L; - - @Override - protected void doDelete(final HttpServletRequest request, final HttpServletResponse response) throws ServletException, IOException { - process(request, response); - } - - @Override - protected void doPut(final HttpServletRequest request, final HttpServletResponse response) throws ServletException, IOException { - process(request, response); - } - -} diff --git a/src/main/java/org/codelibs/fess/struts/upload/SSCMultipartRequestHandler.java b/src/main/java/org/codelibs/fess/struts/upload/SSCMultipartRequestHandler.java deleted file mode 100644 index a38d4b4ed..000000000 --- a/src/main/java/org/codelibs/fess/struts/upload/SSCMultipartRequestHandler.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright 2012 the CodeLibs Project and the Others. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, - * either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ -package org.codelibs.fess.struts.upload; - -import java.io.File; -import java.io.InputStream; -import java.util.Hashtable; -import java.util.Iterator; -import java.util.List; - -import javax.servlet.ServletException; -import javax.servlet.http.HttpServletRequest; - -import org.apache.commons.fileupload.FileItem; -import org.apache.commons.fileupload.FileUploadBase.SizeLimitExceededException; -import org.apache.commons.fileupload.FileUploadException; -import org.apache.commons.fileupload.disk.DiskFileItemFactory; -import org.apache.commons.fileupload.servlet.FileCleanerCleanup; -import org.apache.commons.fileupload.servlet.ServletFileUpload; -import org.apache.commons.io.FileCleaningTracker; -import org.lastaflute.web.ruts.config.ModuleConfig; -import org.lastaflute.web.ruts.multipart.MultipartRequestHandler; - -/** - * This class supports a multipart request handler to support commons-fileupload - * 1.2.2. - * - * @author shinsuke - * - */ -public class SSCMultipartRequestHandler extends S2MultipartRequestHandler { - - @SuppressWarnings("rawtypes") - @Override - public void handleRequest(final HttpServletRequest request) throws ServletException { - final ModuleConfig ac = (ModuleConfig) request.getAttribute(Globals.MODULE_KEY); - final FileCleaningTracker fileCleaningTracker = FileCleanerCleanup.getFileCleaningTracker(ServletContextUtil.getServletContext()); - final DiskFileItemFactory fileItemFactory = new DiskFileItemFactory((int) getSizeThreshold(ac), new File(getRepositoryPath(ac))); - request.setAttribute("fileItemFactory", fileItemFactory); - fileItemFactory.setFileCleaningTracker(fileCleaningTracker); - final ServletFileUpload upload = new ServletFileUpload(fileItemFactory); - upload.setHeaderEncoding(request.getCharacterEncoding()); - upload.setSizeMax(getSizeMax(ac)); - elementsText = new Hashtable(); - elementsFile = new Hashtable(); - elementsAll = new Hashtable(); - List items = null; - try { - items = upload.parseRequest(request); - } catch (final SizeLimitExceededException e) { - request.setAttribute(MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED, Boolean.TRUE); - request.setAttribute(SIZE_EXCEPTION_KEY, e); - try { - final InputStream is = request.getInputStream(); - try { - final byte[] buf = new byte[1024]; - while ((is.read(buf)) != -1) { // NOPMD - } - } catch (final Exception ignore) {} finally { - try { - is.close(); - } catch (final Exception ignore) {} - } - } catch (final Exception ignore) {} - return; - } catch (final FileUploadException e) { - log.error("Failed to parse multipart request", e); - throw new ServletException(e); - } - - // Partition the items into form fields and files. - final Iterator iter = items.iterator(); - while (iter.hasNext()) { - final FileItem item = (FileItem) iter.next(); - - if (item.isFormField()) { - addTextParameter(request, item); - } else { - addFileParameter(item); - } - } - } -} diff --git a/src/main/java/org/codelibs/fess/taglib/FessFunctions.java b/src/main/java/org/codelibs/fess/taglib/FessFunctions.java index 32c66d4b6..aa7a9cc11 100644 --- a/src/main/java/org/codelibs/fess/taglib/FessFunctions.java +++ b/src/main/java/org/codelibs/fess/taglib/FessFunctions.java @@ -30,6 +30,7 @@ import java.util.Map; import javax.servlet.http.HttpServletRequest; import org.apache.commons.lang3.StringEscapeUtils; +import org.codelibs.core.lang.StringUtil; import org.codelibs.core.misc.DynamicProperties; import org.codelibs.fess.Constants; import org.codelibs.fess.entity.FacetQueryView; @@ -37,6 +38,7 @@ import org.codelibs.fess.helper.HotSearchWordHelper; import org.codelibs.fess.helper.HotSearchWordHelper.Range; import org.codelibs.fess.helper.ViewHelper; import org.codelibs.fess.util.ComponentUtil; +import org.lastaflute.di.util.LdiURLUtil; import org.lastaflute.web.util.LaRequestUtil; public class FessFunctions { @@ -188,9 +190,9 @@ public class FessFunctions { if (values != null) { for (final String value : values) { buf.append('&'); - buf.append(URLEncoderUtil.encode(name)); + buf.append(LdiURLUtil.encode(name, Constants.UTF_8)); buf.append('='); - buf.append(URLEncoderUtil.encode(value)); + buf.append(LdiURLUtil.encode(value, Constants.UTF_8)); } } } diff --git a/src/main/java/org/codelibs/fess/transformer/AbstractFessXpathTransformer.java b/src/main/java/org/codelibs/fess/transformer/AbstractFessXpathTransformer.java index c38a6d022..05c2590be 100644 --- a/src/main/java/org/codelibs/fess/transformer/AbstractFessXpathTransformer.java +++ b/src/main/java/org/codelibs/fess/transformer/AbstractFessXpathTransformer.java @@ -29,6 +29,9 @@ import org.codelibs.robot.transformer.impl.XpathTransformer; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import groovy.lang.Binding; +import groovy.lang.GroovyShell; + public abstract class AbstractFessXpathTransformer extends XpathTransformer { private static final Logger logger = LoggerFactory.getLogger(AbstractFessXpathTransformer.class); @@ -177,8 +180,7 @@ public abstract class AbstractFessXpathTransformer extends XpathTransformer { } try { - final Object exp = OgnlUtil.parseExpression(template); - final Object value = OgnlUtil.getValue(exp, paramMap); + final Object value = new GroovyShell(new Binding(paramMap)).evaluate(template); if (value == null) { return null; } diff --git a/src/main/java/org/codelibs/fess/util/ActionMessagesUtil.java b/src/main/java/org/codelibs/fess/util/ActionMessagesUtil.java deleted file mode 100644 index 30ed76bd9..000000000 --- a/src/main/java/org/codelibs/fess/util/ActionMessagesUtil.java +++ /dev/null @@ -1,296 +0,0 @@ -/* - * Copyright 2012 the CodeLibs Project and the Others. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, - * either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ -package org.codelibs.fess.util; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpSession; - -import org.lastaflute.web.ruts.message.ActionMessage; -import org.lastaflute.web.ruts.message.ActionMessages; - -/** - * ActionMessages Utility. - * - * @author shinsuke - * - */ -public final class ActionMessagesUtil { - - private ActionMessagesUtil() { - } - - /** - * Add a message by a message key to a request. - * - * @param request - * @param key - */ - public static void addMessage(final HttpServletRequest request, final String key) { - addMessage(request, key, new Object[0]); - } - - /** - * Add a message by a message key to a request. - * - * @param request - * @param key - * @param values - */ - public static void addMessage(final HttpServletRequest request, final String key, final Object... values) { - final ActionMessages msgs = new ActionMessages(); - msgs.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(key, values)); - addMessages(request, msgs); - } - - /** - * Add a message by a message key to a session. - * - * @param session - * @param key - */ - public static void addMessage(final HttpSession session, final String key) { - addMessage(session, key, new Object[0]); - } - - /** - * Add a message by a message key to a session. - * - * @param session - * @param key - * @param values - */ - public static void addMessage(final HttpSession session, final String key, final Object... values) { - final ActionMessages msgs = new ActionMessages(); - msgs.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(key, values)); - addMessages(session, msgs); - } - - /** - * Add an error message by a message key to a request. - * - * @param request - * @param key - */ - public static void addError(final HttpServletRequest request, final String key) { - addError(request, key, new Object[0]); - } - - /** - * Add an error message by a message key to a request. - * - * @param request - * @param key - * @param values - */ - public static void addError(final HttpServletRequest request, final String key, final Object... values) { - final ActionMessages msgs = new ActionMessages(); - msgs.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(key, values)); - addErrors(request, msgs); - } - - /** - * Add an error message by a message key to a session. - * - * @param session - * @param key - */ - public static void addError(final HttpSession session, final String key) { - addError(session, key, new Object[0]); - } - - /** - * Add an error message by a message key to a session. - * - * @param session - * @param key - * @param values - */ - public static void addError(final HttpSession session, final String key, final Object... values) { - final ActionMessages msgs = new ActionMessages(); - msgs.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(key, values)); - addErrors(session, msgs); - } - - // From SAStruts - - /** - * エラーメッセージをリクエストに保存します。 - * - * @param request - * リクエスト - * @param errors - * エラーメッセージ - * - */ - public static void saveErrors(final HttpServletRequest request, final ActionMessages errors) { - if (errors == null || errors.isEmpty()) { - request.removeAttribute(Globals.ERROR_KEY); - return; - } - request.setAttribute(Globals.ERROR_KEY, errors); - } - - /** - * エラーメッセージをセッションに保存します。 - * - * @param session - * セッション - * @param errors - * エラーメッセージ - * - */ - public static void saveErrors(final HttpSession session, final ActionMessages errors) { - if (errors == null || errors.isEmpty()) { - session.removeAttribute(Globals.ERROR_KEY); - return; - } - session.setAttribute(Globals.ERROR_KEY, errors); - } - - /** - * メッセージをリクエストに保存します。 - * - * @param request - * リクエスト - * @param messages - * メッセージ - * - */ - public static void saveMessages(final HttpServletRequest request, final ActionMessages messages) { - if (messages == null || messages.isEmpty()) { - request.removeAttribute(Globals.MESSAGE_KEY); - return; - } - request.setAttribute(Globals.MESSAGE_KEY, messages); - } - - /** - * メッセージをセッションに保存します。 - * - * @param session - * セッション - * @param messages - * メッセージ - * - */ - public static void saveMessages(final HttpSession session, final ActionMessages messages) { - if (messages == null || messages.isEmpty()) { - session.removeAttribute(Globals.MESSAGE_KEY); - return; - } - session.setAttribute(Globals.MESSAGE_KEY, messages); - } - - /** - * エラーメッセージをリクエストに追加します。 - * - * @param request - * リクエスト - * @param errors - * エラーメッセージ - * - */ - public static void addErrors(final HttpServletRequest request, final ActionMessages errors) { - if (errors == null) { - return; - } - ActionMessages requestErrors = (ActionMessages) request.getAttribute(Globals.ERROR_KEY); - if (requestErrors == null) { - requestErrors = new ActionMessages(); - } - requestErrors.add(errors); - saveErrors(request, requestErrors); - } - - /** - * エラーメッセージをセッションに追加します。 - * - * @param session - * セッション - * @param errors - * エラーメッセージ - * - */ - public static void addErrors(final HttpSession session, final ActionMessages errors) { - if (errors == null) { - return; - } - ActionMessages sessionErrors = (ActionMessages) session.getAttribute(Globals.ERROR_KEY); - if (sessionErrors == null) { - sessionErrors = new ActionMessages(); - } - sessionErrors.add(errors); - saveErrors(session, sessionErrors); - } - - /** - * エラーメッセージがあるかどうかを返します。 - * - * @param request - * リクエスト - * @return エラーメッセージがあるかどうか - * @since 1.0.4 - */ - public static boolean hasErrors(final HttpServletRequest request) { - final ActionMessages errors = (ActionMessages) request.getAttribute(Globals.ERROR_KEY); - if (errors != null && !errors.isEmpty()) { - return true; - } - return false; - } - - /** - * メッセージをリクエストに追加します。 - * - * @param request - * リクエスト - * @param messages - * メッセージ - * - */ - public static void addMessages(final HttpServletRequest request, final ActionMessages messages) { - if (messages == null) { - return; - } - ActionMessages requestMessages = (ActionMessages) request.getAttribute(Globals.MESSAGE_KEY); - if (requestMessages == null) { - requestMessages = new ActionMessages(); - } - requestMessages.add(messages); - saveMessages(request, requestMessages); - } - - /** - * メッセージをセッションに追加します。 - * - * @param session - * セッション - * @param messages - * メッセージ - * - */ - public static void addMessages(final HttpSession session, final ActionMessages messages) { - if (messages == null) { - return; - } - ActionMessages sessionMessages = (ActionMessages) session.getAttribute(Globals.MESSAGE_KEY); - if (sessionMessages == null) { - sessionMessages = new ActionMessages(); - } - sessionMessages.add(messages); - saveMessages(session, sessionMessages); - } -} diff --git a/src/main/java/org/codelibs/fess/util/ComponentUtil.java b/src/main/java/org/codelibs/fess/util/ComponentUtil.java index 7e8aa6663..172851f57 100644 --- a/src/main/java/org/codelibs/fess/util/ComponentUtil.java +++ b/src/main/java/org/codelibs/fess/util/ComponentUtil.java @@ -44,15 +44,16 @@ import org.codelibs.fess.helper.ViewHelper; import org.codelibs.fess.job.JobExecutor; import org.codelibs.fess.solr.IndexUpdater; import org.codelibs.robot.extractor.ExtractorFactory; +import org.lastaflute.core.message.MessageManager; import org.lastaflute.di.core.SingletonLaContainer; public final class ComponentUtil { + private static final String MESSAGE_MANAGER = "messageManager"; + private static final String USER_AGENT_NAME = "userAgentName"; private static final String INDEX_UPDATER = "indexUpdater"; - private static final String DATABASE_HELPER = "databaseHelper"; - private static final String MAIL_HELPER = "mailHelper"; private static final String FILE_TYPE_HELPER = "fileTypeHelper"; @@ -236,6 +237,10 @@ public final class ComponentUtil { return SingletonLaContainer.getComponent(ELASTICSEARCH_CLIENT); } + public static MessageManager getMessageManager() { + return SingletonLaContainer.getComponent(MESSAGE_MANAGER); + } + public static T getComponent(Class clazz) { return SingletonLaContainer.getComponent(clazz); } diff --git a/src/main/java/org/codelibs/fess/validator/CronExpressionChecks.java b/src/main/java/org/codelibs/fess/validator/CronExpressionChecks.java index 46cd7d786..90b2d5c42 100644 --- a/src/main/java/org/codelibs/fess/validator/CronExpressionChecks.java +++ b/src/main/java/org/codelibs/fess/validator/CronExpressionChecks.java @@ -22,18 +22,19 @@ import org.codelibs.core.lang.StringUtil; import org.lastaflute.web.ruts.message.ActionMessages; import org.quartz.CronExpression; -public class CronExpressionChecks extends S2FieldChecks { +//TODO replace with hibernate validator +public class CronExpressionChecks /*extends S2FieldChecks*/{ private static final long serialVersionUID = 1L; - - public static boolean validateCronExpression(final Object bean, final ValidatorAction validatorAction, final Field field, - final ActionMessages errors, final Validator validator, final HttpServletRequest request) { - final String value = getValueAsString(bean, field); - if (StringUtil.isNotBlank(value) && !CronExpression.isValidExpression(value)) { - addError(errors, field, validator, validatorAction, request); - return false; + /* + public static boolean validateCronExpression(final Object bean, final ValidatorAction validatorAction, final Field field, + final ActionMessages errors, final Validator validator, final HttpServletRequest request) { + final String value = getValueAsString(bean, field); + if (StringUtil.isNotBlank(value) && !CronExpression.isValidExpression(value)) { + addError(errors, field, validator, validatorAction, request); + return false; + } + return true; } - return true; - } - + */ } diff --git a/src/main/java/org/codelibs/fess/validator/UriTypeChecks.java b/src/main/java/org/codelibs/fess/validator/UriTypeChecks.java index fe1b68d2d..237876ad5 100644 --- a/src/main/java/org/codelibs/fess/validator/UriTypeChecks.java +++ b/src/main/java/org/codelibs/fess/validator/UriTypeChecks.java @@ -16,32 +16,30 @@ package org.codelibs.fess.validator; -import javax.servlet.http.HttpServletRequest; - import org.codelibs.core.lang.StringUtil; -import org.codelibs.fess.FessSystemException; -import org.lastaflute.web.ruts.message.ActionMessages; -public class UriTypeChecks extends S2FieldChecks { +// TODO replace with hibernate validator +public class UriTypeChecks /*extends S2FieldChecks*/{ private static final long serialVersionUID = 1L; - public static boolean validateUriType(final Object bean, final ValidatorAction validatorAction, final Field field, - final ActionMessages errors, final Validator validator, final HttpServletRequest request) { - final String value = getValueAsString(bean, field); - if (StringUtil.isNotBlank(value)) { - final String protocols = field.getVarValue("protocols"); - if (StringUtil.isEmpty(protocols)) { - throw new FessSystemException("protocols is empty."); - } - if (!check(protocols, value)) { - addError(errors, field, validator, validatorAction, request); - return false; + /* + public static boolean validateUriType(final Object bean, final ValidatorAction validatorAction, final Field field, + final ActionMessages errors, final Validator validator, final HttpServletRequest request) { + final String value = getValueAsString(bean, field); + if (StringUtil.isNotBlank(value)) { + final String protocols = field.getVarValue("protocols"); + if (StringUtil.isEmpty(protocols)) { + throw new FessSystemException("protocols is empty."); + } + if (!check(protocols, value)) { + addError(errors, field, validator, validatorAction, request); + return false; + } } + return true; } - return true; - } - + */ protected static boolean check(final String protocols, final String values) { final String[] prtcls = protocols.split(","); final String[] paths = values.split("[\r\n]"); diff --git a/src/main/resources/esclient.xml b/src/main/resources/esclient.xml index 12640d8a2..559651c22 100644 --- a/src/main/resources/esclient.xml +++ b/src/main/resources/esclient.xml @@ -9,6 +9,18 @@ "fess/doc" + + "fess" + "ja/mapping.txt" + + + "fess" + "ja/synonym.txt" + + + "fess" + "ja/kuromoji.txt" + ".fess_config/boost_document_rule" diff --git a/src/main/resources/fess_indices/fess/ja/kuromoji.txt b/src/main/resources/fess_indices/fess/ja/kuromoji.txt new file mode 100644 index 000000000..0584019a9 --- /dev/null +++ b/src/main/resources/fess_indices/fess/ja/kuromoji.txt @@ -0,0 +1,3 @@ +日本経済新聞,日本 経済 新聞,ニホン ケイザイ シンブン,カスタム名詞 +関西国際空港,関西 国際 空港,カンサイ コクサイ クウコウ,テスト名詞 +朝青龍,朝青龍,アサショウリュウ,カスタム名詞 diff --git a/src/main/resources/fess_indices/fess/ja/mapping.txt b/src/main/resources/fess_indices/fess/ja/mapping.txt new file mode 100644 index 000000000..9276761bf --- /dev/null +++ b/src/main/resources/fess_indices/fess/ja/mapping.txt @@ -0,0 +1,189 @@ +# Half-width Katakana => Full-width Katakana +"ア" => "ア" +"イ" => "イ" +"ウ" => "ウ" +"エ" => "エ" +"オ" => "オ" +"カ" => "カ" +"キ" => "キ" +"ク" => "ク" +"ケ" => "ケ" +"コ" => "コ" +"サ" => "サ" +"シ" => "シ" +"ス" => "ス" +"セ" => "セ" +"ソ" => "ソ" +"タ" => "タ" +"チ" => "チ" +"ツ" => "ツ" +"テ" => "テ" +"ト" => "ト" +"ナ" => "ナ" +"ニ" => "ニ" +"ヌ" => "ヌ" +"ネ" => "ネ" +"ノ" => "ノ" +"ハ" => "ハ" +"ヒ" => "ヒ" +"フ" => "フ" +"ヘ" => "ヘ" +"ホ" => "ホ" +"マ" => "マ" +"ミ" => "ミ" +"ム" => "ム" +"メ" => "メ" +"モ" => "モ" +"ヤ" => "ヤ" +"ユ" => "ユ" +"ヨ" => "ヨ" +"ラ" => "ラ" +"リ" => "リ" +"ル" => "ル" +"レ" => "レ" +"ロ" => "ロ" +"ワ" => "ワ" +"ヲ" => "ヲ" +"ン" => "ン" +"ッ" => "ッ" +"ァ" => "ァ" +"ィ" => "ィ" +"ゥ" => "ゥ" +"ェ" => "ェ" +"ォ" => "ォ" +"ャ" => "ャ" +"ュ" => "ュ" +"ョ" => "ョ" +"ガ" => "ガ" +"ギ" => "ギ" +"グ" => "グ" +"ゲ" => "ゲ" +"ゴ" => "ゴ" +"ザ" => "ザ" +"ジ" => "ジ" +"ズ" => "ズ" +"ゼ" => "ゼ" +"ゾ" => "ゾ" +"ダ" => "ダ" +"ヂ" => "ヂ" +"ヅ" => "ヅ" +"デ" => "デ" +"ド" => "ド" +"バ" => "バ" +"ビ" => "ビ" +"ブ" => "ブ" +"ベ" => "ベ" +"ボ" => "ボ" +"パ" => "パ" +"ピ" => "ピ" +"プ" => "プ" +"ペ" => "ペ" +"ポ" => "ポ" + +# Full-width alpha-numeric => Half-width alpha-numeric +"0" => "0" +"1" => "1" +"2" => "2" +"3" => "3" +"4" => "4" +"5" => "5" +"6" => "6" +"7" => "7" +"8" => "8" +"9" => "9" + +"A" => "A" +"B" => "B" +"C" => "C" +"D" => "D" +"E" => "E" +"F" => "F" +"G" => "G" +"H" => "H" +"I" => "I" +"J" => "J" +"K" => "K" +"L" => "L" +"M" => "M" +"N" => "N" +"O" => "O" +"P" => "P" +"Q" => "Q" +"R" => "R" +"S" => "S" +"T" => "T" +"U" => "U" +"V" => "V" +"W" => "W" +"X" => "X" +"Y" => "Y" +"Z" => "Z" + +"a" => "a" +"b" => "b" +"c" => "c" +"d" => "d" +"e" => "e" +"f" => "f" +"g" => "g" +"h" => "h" +"i" => "i" +"j" => "j" +"k" => "k" +"l" => "l" +"m" => "m" +"n" => "n" +"o" => "o" +"p" => "p" +"q" => "q" +"r" => "r" +"s" => "s" +"t" => "t" +"u" => "u" +"v" => "v" +"w" => "w" +"x" => "x" +"y" => "y" +"z" => "z" + +# !"#$%&'()=|-^\@[`{;:]+*}/_<>? +"!" => "!" +"”" => "\"" +"#" => "#" +"$" => "$" +"%" => "%" +"&" => "&" +"’" => "'" +"(" => "(" +")" => ")" +"=" => "=" +"|" => "|" +"-" => "-" +"^" => "^" +"¥" => "\\" +"@" => "@" +"[" => "[" +"`" => "`" +"{" => "{" +";" => ";" +":" => ":" +"]" => "]" +"+" => "+" +"*" => "*" +"}" => "}" +"/" => "/" +"_" => "_" +"<" => "<" +">" => ">" +"?" => "?" +"‘" => "`" + +"①" => "1" +"②" => "2" +"③" => "3" +"④" => "4" +"⑤" => "5" +"⑥" => "6" +"⑦" => "7" +"⑧" => "8" +"⑨" => "9" diff --git a/src/main/resources/fess_indices/fess/ja/synonym.txt b/src/main/resources/fess_indices/fess/ja/synonym.txt new file mode 100644 index 000000000..e432e75ca --- /dev/null +++ b/src/main/resources/fess_indices/fess/ja/synonym.txt @@ -0,0 +1 @@ +fess,フェス diff --git a/src/main/webapp/WEB-INF/view/admin/crawl/index.jsp b/src/main/webapp/WEB-INF/view/admin/crawl/index.jsp index 61bda462a..8125d58e4 100644 --- a/src/main/webapp/WEB-INF/view/admin/crawl/index.jsp +++ b/src/main/webapp/WEB-INF/view/admin/crawl/index.jsp @@ -1,240 +1,223 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.crawler_configuration" /> + + + +
+ + + + + - <%-- Message: BEGIN --%> -
- -
-
- +
+ + <%-- Content Header --%> +
+

+ +

+
+ +
+ + <%-- Form --%> + +
+
+
+ <%-- Box Header --%> + <%-- Box Body --%> +
+ <%-- Message --%> +
+ +
+ +
+
+ +
+ + <%-- Form Fields --%> +
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ + +
+
+ +
+ + + ${f:h(item.label)} + + +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ + +
+
+ + +
+
+ +
+ +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ + + + ${f:h(d)} + + + +
+
+
+ + +
+
+ +
+ +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+ +
+ <%-- Box Footer --%> + +
+
+
+
+ +
- <%-- Message: END --%> - -
-

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - -
- - - -
- - - -
- - - -
- - - -
- - - -
- - - -
- - - - - ${f:h(item.label)} - - -
- - - -
- - - -
- - - -
- - - -
- - - -
- - - -
- - - -
- - - -
- - - -
- - - -
- - - -
- - - - - - ${f:h(d)} - - - -
- - - -
- - - -
- - - -
- - - -
- "/> -
+
-
- - - - + + + diff --git a/src/main/webapp/WEB-INF/view/admin/dataConfig/confirm.jsp b/src/main/webapp/WEB-INF/view/admin/dataConfig/confirm.jsp index 784adeb9a..4ee2c2f63 100644 --- a/src/main/webapp/WEB-INF/view/admin/dataConfig/confirm.jsp +++ b/src/main/webapp/WEB-INF/view/admin/dataConfig/confirm.jsp @@ -1,164 +1,211 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.data_crawling_configuration" /> + + + +
+ + + + + -
+
- <%-- Message: BEGIN --%> -
- -
-
- -
- <%-- Message: END --%> - -<%-- Confirm Form: BEGIN --%> - - -
- - - - - - - -

-
-
    + <%-- Content Header --%> +
    +

    + +

    +
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - - -
${f:h(id)}
${f:h(name)}
- - -${f:h(hn.label)}
-
-
- -
${f:br(f:h(handlerParameter))}
${f:br(f:h(handlerScript))}
${f:h(boost)}
- - - -${f:h(rt.name)}
-
-
-
- - - ${f:h(rt.name)} - - -
- - - -${f:h(l.name)}
-
-
-
- - - ${f:h(l.name)} - - -
- - -
- - "/> - "/> - - - "/> - "/> - - - "/> - "/> - - - "/> - "/> - "/> - -
+
+ + <%-- Form --%> + + + + + + + + + +
+
+
+ <%-- Box Header --%> +
+

+ + + + + + + + + + + + +

+
+ + + +
+
+ <%-- Box Body --%> +
+ <%-- Message --%> +
+ +
+ +
+
+ +
+ <%-- Form Fields --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
${f:h(id)}
${f:h(name)}
+ + + ${f:h(hn.label)}
+
+
+ +
${f:br(f:h(handlerParameter))}
${f:br(f:h(handlerScript))}
${f:h(boost)}
+ + + + ${f:h(rt.name)}
+
+
+
+ + + ${f:h(rt.name)} + + +
+ + + + ${f:h(l.name)}
+
+
+
+ + + ${f:h(l.name)} + + +
+ + +
+
+ + <%-- Box Footer --%> + +
+
+
+
+ +
-
-<%-- Confirm Form: BEGIN --%> -
- - - + +
+ + + diff --git a/src/main/webapp/WEB-INF/view/admin/dataConfig/edit.jsp b/src/main/webapp/WEB-INF/view/admin/dataConfig/edit.jsp index 0870e6765..3a9395a56 100644 --- a/src/main/webapp/WEB-INF/view/admin/dataConfig/edit.jsp +++ b/src/main/webapp/WEB-INF/view/admin/dataConfig/edit.jsp @@ -1,147 +1,165 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.data_crawling_configuration" /> + + + +
+ + + + + -
+
- <%-- Message: BEGIN --%> -
- -
-
- -
- <%-- Message: END --%> + <%-- Content Header --%> +
+

+ +

+ +
- <%-- Edit Form: BEGIN --%> - - -
+
+ + <%-- Form --%> + + - -

- -

-
-
    -
  • - -
  • - -
  • -
    - -
  • -
    - -
  • -
    - -
  • -
    -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
+
+
+ <%-- Box Header --%> +
+

+ + + + + + +

+
+ + + +
+
+ <%-- Box Body --%> +
+ <%-- Message --%> +
+ +
+ +
+
+ +
+ <%-- Form Fields --%> +
+ + +
+
+ + + + ${f:h(hn.label)} + + +
+
+ + +
+
+ + +
+
+ + +
+
+ + + + ${f:h(rt.name)} + + +
+
+ + + + ${f:h(l.name)} + + +
+
+ + + + + + + + + +
+
-
- - - - - -
- - ${f:h(hn.label)} - -
- - ${f:h(rt.name)} - -
- - ${f:h(l.name)} - -
- - - - - - -
- " /> - " /> - - " /> - " /> -
-
-
- <%-- Edit Form: BEGIN --%> + <%-- Box Footer --%> + +
+
+
+ +
-
-
+ +
+ + + diff --git a/src/main/webapp/WEB-INF/view/admin/dataConfig/error.jsp b/src/main/webapp/WEB-INF/view/admin/dataConfig/error.jsp index 33c2bd3bd..56af0732d 100644 --- a/src/main/webapp/WEB-INF/view/admin/dataConfig/error.jsp +++ b/src/main/webapp/WEB-INF/view/admin/dataConfig/error.jsp @@ -1,19 +1,50 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.data_crawling_configuration" /> + + + +
+ + + + + -
- - -
- +
+
+

+ +

+ +
-
+
- - \ No newline at end of file +
+

Error

+

+ +

+

+ + + +

+
+ +
+
+ + + +
+ + + diff --git a/src/main/webapp/WEB-INF/view/admin/dataConfig/index.jsp b/src/main/webapp/WEB-INF/view/admin/dataConfig/index.jsp index f128fed76..fdf882dd3 100644 --- a/src/main/webapp/WEB-INF/view/admin/dataConfig/index.jsp +++ b/src/main/webapp/WEB-INF/view/admin/dataConfig/index.jsp @@ -1,126 +1,134 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.data_crawling_configuration" /> + + + +
+ + + + + -

- -

+
- <%-- Message: BEGIN --%> -
- -
-
- -
- <%-- Message: END --%> - - <%-- List: BEGIN --%> - -
-
-
    -
  • -
  • - + <%-- Content Header --%> +
    +

    + +

    +
-
+ + - -

- -

-
- - - - - - - - - - - - +
-
- +
+
+
+ <%-- Box Header --%> +
+

+ +

+
+ + + +
+
+ <%-- Box Body --%> +
+ <%-- Message --%> +
+ +
+ +
+
+ +
-
- - - -
 
${f:h(data.name)} - - - - - - - - - -
- <%-- Page Navigation: BEGIN --%> -
- -
- + <%-- List --%> + +

+ +

+
+ + + + + + + + + + + + + + + + +
${f:h(data.name)} + + + + + +
+
+ +
+ <%-- Box Footer --%> + +
- <%-- Page Navigation: END --%> - -
- <%-- List: END --%> -
-
+ +
+ + + + + + + diff --git a/src/main/webapp/WEB-INF/view/admin/fileAuthentication/confirm.jsp b/src/main/webapp/WEB-INF/view/admin/fileAuthentication/confirm.jsp index 10eee1f0a..b99b269a3 100644 --- a/src/main/webapp/WEB-INF/view/admin/fileAuthentication/confirm.jsp +++ b/src/main/webapp/WEB-INF/view/admin/fileAuthentication/confirm.jsp @@ -1,134 +1,172 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.file_authentication_configuration" /> + + + +
+ + + + + -

- -

+
- <%-- Message: BEGIN --%> -
- -
-
- -
- <%-- Message: END --%> - -
-
    + <%-- Content Header --%> +
    +

    + +

    +
-
+ + - <%-- Confirm Form: BEGIN --%> - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
${f:h(hostname)}
${f:h(port)}
- ${f:h(item.label)} -
${f:h(username)}
******
${f:br(f:h(parameters))}
- ${f:h(item.label)} -
- " /> - " /> - - " /> - " /> - - " /> - " /> - - " /> - " /> - " /> -
-
-
- <%-- Confirm Form: BEGIN --%> +
+ <%-- Form --%> + + + + + + + + +
+
+
+ <%-- Box Header --%> +
+

+ + + + + + + + + + + + +

+
+ + + +
+
+ <%-- Box Body --%> +
+ <%-- Message --%> +
+ +
+ +
+
+ +
- - + <%-- Form Fields --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
${f:h(hostname)}
${f:h(port)}
+ ${f:h(item.label)} +
${f:h(username)}
****** +
${f:br(f:h(parameters))}
+ ${f:h(item.label)} +
+ +
+ <%-- Box Footer --%> + +
+
+
+
+ +
+
+ + +
+ + + diff --git a/src/main/webapp/WEB-INF/view/admin/fileAuthentication/edit.jsp b/src/main/webapp/WEB-INF/view/admin/fileAuthentication/edit.jsp index 93f1fcf56..dc1dd5d00 100644 --- a/src/main/webapp/WEB-INF/view/admin/fileAuthentication/edit.jsp +++ b/src/main/webapp/WEB-INF/view/admin/fileAuthentication/edit.jsp @@ -1,125 +1,151 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.file_authentication_configuration" /> + + + +
+ + + + + -

- -

+
- <%-- Message: BEGIN --%> -
- -
-
- -
- <%-- Message: END --%> - -
-
    + <%-- Content Header --%> +
    +

    + +

    +
-
+ + - <%-- Edit Form: BEGIN --%> - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - ${f:h(item.label)} - -
- - ${f:h(item.label)} - -
- " /> - " /> - - " /> - " /> -
-
-
- <%-- Edit Form: BEGIN --%> +
+ <%-- Form --%> + + + + + + + + - - +
+
+
+ <%-- Box Header --%> +
+

+ + + + + + +

+
+ + + +
+
+ <%-- Box Body --%> +
+ <%-- Message --%> +
+ +
+ +
+
+ +
+ + <%-- Form Fields --%> +
+ + +
+
+ + +
+
+ + + + ${f:h(item.label)} + + +
+
+ + +
+
+ + +
+
+ + +
+
+ + + + ${f:h(item.label)} + + +
+
+ + <%-- Box Footer --%> + +
+
+
+
+ +
+
+ + +
+ + + diff --git a/src/main/webapp/WEB-INF/view/admin/fileAuthentication/error.jsp b/src/main/webapp/WEB-INF/view/admin/fileAuthentication/error.jsp index 33d182373..58cf19f69 100644 --- a/src/main/webapp/WEB-INF/view/admin/fileAuthentication/error.jsp +++ b/src/main/webapp/WEB-INF/view/admin/fileAuthentication/error.jsp @@ -1,17 +1,50 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.file_authentication_configuration" /> + + + +
+ + + + + -
- -
- -
+
+
+

+ +

+ +
- - +
+ +
+

Error

+

+ +

+

+ + + +

+
+ +
+
+ + + +
+ + + diff --git a/src/main/webapp/WEB-INF/view/admin/fileAuthentication/index.jsp b/src/main/webapp/WEB-INF/view/admin/fileAuthentication/index.jsp index 1397f04b7..bb03f3b14 100644 --- a/src/main/webapp/WEB-INF/view/admin/fileAuthentication/index.jsp +++ b/src/main/webapp/WEB-INF/view/admin/fileAuthentication/index.jsp @@ -1,130 +1,143 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.file_authentication_configuration" /> + + + +
+ + + + + -

- -

+
- <%-- Message: BEGIN --%> -
- -
-
- -
- <%-- Message: END --%> - - <%-- List: BEGIN --%> -
-
- -
    -
  • -
  • - + <%-- Content Header --%> +
    +

    + +

    +
-
- - - - - -
- -

- -

-
- - - - - - - - - - - - - - - - - - -
 
- - ${f:h(data.hostname)}: - - ${f:h(data.port)}${f:h(data.fileConfig.name)} - - - - - -
- <%-- Page Navigation: BEGIN --%> -
- + + -
- +
+ +
+
+ + + + + + +
+ <%-- Box Header --%> +
+

+ +

+
+ + + +
+
+ <%-- Box Body --%> +
+ <%-- Message --%> +
+ +
+ +
+
+ +
+ + <%-- List --%> + +

+ +

+
+ + + + + + + + + + + + + + + + +
+ + + ${f:h(data.hostname)}: + + + + ${f:h(data.port)} + + ${f:h(data.fileConfig.name)}
+
+ +
+ <%-- Box Footer --%> + +
+
- <%-- Page Navigation: END --%> - + +
- <%-- List: END --%> - - - + +
+ + + diff --git a/src/main/webapp/WEB-INF/view/admin/fileConfig/confirm.jsp b/src/main/webapp/WEB-INF/view/admin/fileConfig/confirm.jsp index ebbc7b9e6..726ee4d33 100644 --- a/src/main/webapp/WEB-INF/view/admin/fileConfig/confirm.jsp +++ b/src/main/webapp/WEB-INF/view/admin/fileConfig/confirm.jsp @@ -50,6 +50,7 @@
+
@@ -230,4 +231,3 @@ - diff --git a/src/main/webapp/WEB-INF/view/admin/fileConfig/edit.jsp b/src/main/webapp/WEB-INF/view/admin/fileConfig/edit.jsp index f6664f76a..6366777bf 100644 --- a/src/main/webapp/WEB-INF/view/admin/fileConfig/edit.jsp +++ b/src/main/webapp/WEB-INF/view/admin/fileConfig/edit.jsp @@ -50,6 +50,7 @@ +
@@ -82,7 +83,7 @@
<%-- Form Fields --%> - + <%-- Form Fields --%>
@@ -192,4 +193,3 @@ - diff --git a/src/main/webapp/WEB-INF/view/admin/labelType/confirm.jsp b/src/main/webapp/WEB-INF/view/admin/labelType/confirm.jsp index 10a2e6a89..0ede9e1c2 100644 --- a/src/main/webapp/WEB-INF/view/admin/labelType/confirm.jsp +++ b/src/main/webapp/WEB-INF/view/admin/labelType/confirm.jsp @@ -1,137 +1,176 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.labeltype_configuration" /> + + + +
+ + + + + -

- -

- <%-- Message: BEGIN --%> -
- -
-
- -
- <%-- Message: END --%> +
-
-
    + <%-- Content Header --%> +
    +

    + +

    +
-
+ + - <%-- Confirm Form: BEGIN --%> - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + +
+ + + +
+ + <%-- Box Body --%> +
+ <%-- Message --%> +
+ +
+ +
+
+ +
+ <%-- Form Fields --%> +
${f:h(name)}
${f:h(value)}
${f:br(f:h(includedPaths))}
${f:br(f:h(excludedPaths))}
- - ${f:h(rt.name)}
+
+ + <%-- Form --%> + + + + + + + + +
+
+
+ <%-- Box Header --%> +
+

+ + - - - - ${f:h(rt.name)} - -

${f:h(sortOrder)}
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
${f:h(name)}
${f:h(value)}
${f:br(f:h(includedPaths))}
${f:br(f:h(excludedPaths))}
+ + + + ${f:h(rt.name)}
+
+
+
+ + + ${f:h(rt.name)} + + +
${f:h(sortOrder)}
+
- - - - - " /> - " /> - - " /> - " /> - - " /> - " /> - - " /> - " /> - " /> - - - - -
- - <%-- Confirm Form: BEGIN --%> + <%-- Box Footer --%> + +
+
+
+ - - + +
+ + +
+ + + diff --git a/src/main/webapp/WEB-INF/view/admin/labelType/edit.jsp b/src/main/webapp/WEB-INF/view/admin/labelType/edit.jsp index 1784edd43..264d5d237 100644 --- a/src/main/webapp/WEB-INF/view/admin/labelType/edit.jsp +++ b/src/main/webapp/WEB-INF/view/admin/labelType/edit.jsp @@ -1,120 +1,142 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.labeltype_configuration" /> + + + +
+ + + + + -

- -

- <%-- Message: BEGIN --%> -
- -
-
- -
- <%-- Message: END --%> +
-
-
    + <%-- Content Header --%> +
    +

    + +

    +
-
+ + - <%-- Edit Form: BEGIN --%> - - -
- - - - - - - - +
-
- - - - - - - - - - - - - - - - - - - - - - - + <%-- Form --%> + + + + + + + + +
+
+
+ <%-- Box Header --%> +
+

+ + + + + + +

+
+ + + +
+
+ <%-- Box Body --%> +
+ <%-- Message --%> +
+ +
+ +
+
+ +
+ <%-- Form Fields --%> +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + + + ${f:h(rt.name)} + + +
+
+ + +
+
+ <%-- Box Footer --%> + +
+
+
+
- - - - - - -
- - ${f:h(rt.name)} - -
- " /> - " /> - - " /> - " /> -
-
-
- <%-- Edit Form: BEGIN --%> - - + +
+ + +
+ + + diff --git a/src/main/webapp/WEB-INF/view/admin/labelType/error.jsp b/src/main/webapp/WEB-INF/view/admin/labelType/error.jsp index bcc7d14a1..0749a1d8e 100644 --- a/src/main/webapp/WEB-INF/view/admin/labelType/error.jsp +++ b/src/main/webapp/WEB-INF/view/admin/labelType/error.jsp @@ -1,20 +1,50 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.labeltype_configuration" /> + + + +
+ + + + + -
- - -
- +
+
+

+ +

+ +
-
+
- - +
+

Error

+

+ +

+

+ + + +

+
+
+
+ + + +
+ + + diff --git a/src/main/webapp/WEB-INF/view/admin/labelType/index.jsp b/src/main/webapp/WEB-INF/view/admin/labelType/index.jsp index cf18e91ad..d4ee1321e 100644 --- a/src/main/webapp/WEB-INF/view/admin/labelType/index.jsp +++ b/src/main/webapp/WEB-INF/view/admin/labelType/index.jsp @@ -1,116 +1,125 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.labeltype_configuration" /> + + + +
+ + + + + -

- -

+
- <%-- Message: BEGIN --%> -
- -
-
- -
- <%-- Message: END --%> - - <%-- List: BEGIN --%> -
-
-
    -
  • -
  • - + <%-- Content Header --%> +
    +

    + +

    +
-
+ + - -

- -

-
- - - - - +
-
- - - - - - - - - - -
 
${f:h(data.name)} - - - - - -
- <%-- Page Navigation: BEGIN --%> -
- -
- +
+
+
+ <%-- Box Header --%> +
+

+ +

+
+ + + +
+
+ <%-- Box Body --%> +
+ <%-- Message --%> +
+ +
+ +
+
+ +
+ + <%-- List --%> + +

+ +

+
+ + + + + + + + + + + + + + +
${f:h(data.name)}
+
+ +
+ <%-- Box Footer --%> + +
- <%-- Page Navigation: END --%> - + +
- <%-- List: END --%> - - - + +
+ + + diff --git a/src/main/webapp/WEB-INF/view/admin/overlappingHost/confirm.jsp b/src/main/webapp/WEB-INF/view/admin/overlappingHost/confirm.jsp index a6f3daa9b..844fa080e 100644 --- a/src/main/webapp/WEB-INF/view/admin/overlappingHost/confirm.jsp +++ b/src/main/webapp/WEB-INF/view/admin/overlappingHost/confirm.jsp @@ -1,110 +1,148 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.overlapping_host_configuration" /> + + + +
+ + + + + -

- -

+
- <%-- Message: BEGIN --%> -
- -
-
- -
- <%-- Message: END --%> - -
-
    + <%-- Content Header --%> +
    +

    + +

    +
-
+ + - <%-- Confirm Form: BEGIN --%> - - -
- - - - - - - - - +
-
- - - - - - - + <%-- Form --%> + + + + + + + + + +
+
+
+ <%-- Box Header --%> +
+

+ + + + + + + + + + + + +

+
+ + + +
+
+ <%-- Box Body --%> +
+ <%-- Message --%> +
+ +
+ +
+
+ +
+ <%-- Form Fields --%> +
${f:h(regularName)}
${f:h(overlappingName)}
+ + + + + + + + + + +
${f:h(regularName)}
${f:h(overlappingName)}
+
- - - - - " /> - " /> - - " /> - " /> - - " /> - " /> - - " /> - " /> - " /> - - - - -
- - <%-- Confirm Form: BEGIN --%> + <%-- Box Footer --%> + +
+
+
+ - - + +
+ + +
+ + + diff --git a/src/main/webapp/WEB-INF/view/admin/overlappingHost/edit.jsp b/src/main/webapp/WEB-INF/view/admin/overlappingHost/edit.jsp index bf08b1805..bfae56ad6 100644 --- a/src/main/webapp/WEB-INF/view/admin/overlappingHost/edit.jsp +++ b/src/main/webapp/WEB-INF/view/admin/overlappingHost/edit.jsp @@ -1,97 +1,122 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.overlapping_host_configuration" /> + + + +
+ + + + + -

- -

+
- <%-- Message: BEGIN --%> -
- -
-
- -
- <%-- Message: END --%> - -
-
    + <%-- Content Header --%> +
    +

    + +

    +
-
+ + - <%-- Edit Form: BEGIN --%> - - -
- - - - - - - - - +
-
- - - - - - - + <%-- Form --%> + + + + + + + + + +
+
+
+ <%-- Box Header --%> +
+

+ + + + + + +

+
+ + + +
+
+ <%-- Box Body --%> +
+ <%-- Message --%> +
+ +
+ +
+
+ +
+ <%-- Form Fields --%> +
+ + +
+
+ + +
-
- - - - - -
- " /> - " /> - - " /> - " /> -
-
-
- <%-- Edit Form: BEGIN --%> + <%-- Box Footer --%> + +
+
+
+ - - + +
+ + +
+ + + diff --git a/src/main/webapp/WEB-INF/view/admin/overlappingHost/error.jsp b/src/main/webapp/WEB-INF/view/admin/overlappingHost/error.jsp index ea83633e1..82494e00e 100644 --- a/src/main/webapp/WEB-INF/view/admin/overlappingHost/error.jsp +++ b/src/main/webapp/WEB-INF/view/admin/overlappingHost/error.jsp @@ -1,20 +1,50 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.overlapping_host_configuration" /> + + + +
+ + + + + -
- - -
- +
+
+

+ +

+ +
-
+
- - +
+

Error

+

+ +

+

+ + + +

+
+
+
+ + + +
+ + + diff --git a/src/main/webapp/WEB-INF/view/admin/overlappingHost/index.jsp b/src/main/webapp/WEB-INF/view/admin/overlappingHost/index.jsp index 020fe2983..962c12ffb 100644 --- a/src/main/webapp/WEB-INF/view/admin/overlappingHost/index.jsp +++ b/src/main/webapp/WEB-INF/view/admin/overlappingHost/index.jsp @@ -1,119 +1,127 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.overlapping_host_configuration" /> + + + +
+ + + + + -

- -

+
- <%-- Message: BEGIN --%> -
- -
-
- -
- <%-- Message: END --%> - - <%-- List: BEGIN --%> -
-
-
    -
  • -
  • - + <%-- Content Header --%> +
    +

    + +

    +
-
+ + - -

- -

-
- - - - - - - - - - - - - - - - - - -
 
${f:h(data.regularName)}${f:h(data.overlappingName)} - - - - - -
- <%-- Page Navigation: BEGIN --%> -
- +
-
- +
+
+
+ <%-- Box Header --%> +
+

+ +

+
+ + + +
+
+ <%-- Box Body --%> +
+ <%-- Message --%> +
+ +
+ +
+
+ +
+ + <%-- List --%> + +

+ +

+
+ + + + + + + + + + + + + + + + +
${f:h(data.regularName)}${f:h(data.overlappingName)}
+
+ +
+ <%-- Box Footer --%> + +
- <%-- Page Navigation: END --%> - -
- <%-- List: END --%> - - +
+
+ + +
+ + + diff --git a/src/main/webapp/WEB-INF/view/admin/requestHeader/confirm.jsp b/src/main/webapp/WEB-INF/view/admin/requestHeader/confirm.jsp index 23c97f59d..d11b3c6d4 100644 --- a/src/main/webapp/WEB-INF/view/admin/requestHeader/confirm.jsp +++ b/src/main/webapp/WEB-INF/view/admin/requestHeader/confirm.jsp @@ -1,112 +1,153 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.request_header_configuration" /> + + + +
+ + + + + -

- -

+
- <%-- Message: BEGIN --%> -
- -
-
- -
- <%-- Message: END --%> - -
-
    + <%-- Content Header --%> +
    +

    + +

    +
-
+ + - <%-- Confirm Form: BEGIN --%> - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
${f:h(name)}
${f:h(value)}
- ${f:h(item.label)} -
- " /> - " /> - - " /> - " /> - - " /> - " /> - - " /> - " /> - " /> -
-
-
- <%-- Confirm Form: BEGIN --%> +
- - + <%-- Form --%> + + + + + + + + +
+
+
+ <%-- Box Header --%> +
+

+ + + + + + + + + + + + +

+
+ + + +
+
+ <%-- Box Body --%> +
+ <%-- Message --%> +
+ +
+ +
+
+ +
+ + <%-- Form Fields --%> + + + + + + + + + + + + + + + +
${f:h(name)}
${f:h(value)}
+ ${f:h(item.label)} +
+ +
+ <%-- Box Footer --%> + +
+
+
+
+ +
+
+ + +
+ + + diff --git a/src/main/webapp/WEB-INF/view/admin/requestHeader/edit.jsp b/src/main/webapp/WEB-INF/view/admin/requestHeader/edit.jsp index be7d96eff..b09e90174 100644 --- a/src/main/webapp/WEB-INF/view/admin/requestHeader/edit.jsp +++ b/src/main/webapp/WEB-INF/view/admin/requestHeader/edit.jsp @@ -1,102 +1,131 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.request_header_configuration" /> + + + +
+ + + + + -

- -

+
- <%-- Message: BEGIN --%> -
- -
-
- -
- <%-- Message: END --%> - -
-
    + <%-- Content Header --%> +
    +

    + +

    +
-
+ + - <%-- Edit Form: BEGIN --%> - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
- - ${f:h(item.label)} - -
- " /> - " /> - - " /> - " /> -
-
-
- <%-- Edit Form: BEGIN --%> +
- - + <%-- Form --%> + + + + + + + + + +
+
+
+ <%-- Box Header --%> +
+

+ + + + + + +

+
+ + + +
+
+ <%-- Box Body --%> +
+ <%-- Message --%> +
+ +
+ +
+
+ +
+ + <%-- Form Fields --%> +
+ + +
+
+ + +
+
+ + + + ${f:h(item.label)} + + +
+
+ + <%-- Box Footer --%> + +
+
+
+
+ +
+
+ + +
+ + + diff --git a/src/main/webapp/WEB-INF/view/admin/requestHeader/error.jsp b/src/main/webapp/WEB-INF/view/admin/requestHeader/error.jsp index 6ef26ff8a..26d64f7bb 100644 --- a/src/main/webapp/WEB-INF/view/admin/requestHeader/error.jsp +++ b/src/main/webapp/WEB-INF/view/admin/requestHeader/error.jsp @@ -1,17 +1,50 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.request_header_configuration" /> + + + +
+ + + + + -
- -
- -
+
+
+

+ +

+ +
- - +
+ +
+

Error

+

+ +

+

+ + + +

+
+ +
+
+ + + +
+ + + diff --git a/src/main/webapp/WEB-INF/view/admin/requestHeader/index.jsp b/src/main/webapp/WEB-INF/view/admin/requestHeader/index.jsp index 1f3523840..03a1d2838 100644 --- a/src/main/webapp/WEB-INF/view/admin/requestHeader/index.jsp +++ b/src/main/webapp/WEB-INF/view/admin/requestHeader/index.jsp @@ -1,124 +1,134 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.request_header_configuration" /> + + + +
+ + + + + -

- -

+
- <%-- Message: BEGIN --%> -
- -
-
- -
- <%-- Message: END --%> - - <%-- List: BEGIN --%> -
-
- -
    -
  • -
  • - + <%-- Content Header --%> +
    +

    + +

    +
-
- - - - - -
- -

- -

-
- - - - - - - - - - - - - - - - - - -
 
${f:h(data.name)}${f:h(data.webConfig.name)} - - - - - -
- <%-- Page Navigation: BEGIN --%> -
- + + -
- +
+ +
+
+ + + + + + +
+ <%-- Box Header --%> +
+

+ +

+
+ + + +
+
+ <%-- Box Body --%> +
+ <%-- Message --%> +
+ +
+ +
+
+ +
+ + <%-- List --%> + +

+ +

+
+ + + + + + + + + + + + + + + + +
${f:h(data.name)}${f:h(data.webConfig.name)}
+
+ +
+ <%-- Box Footer --%> + +
+
- <%-- Page Navigation: END --%> - -
- <%-- List: END --%> - - + +
+ + +
+ + + diff --git a/src/main/webapp/WEB-INF/view/admin/roleType/confirm.jsp b/src/main/webapp/WEB-INF/view/admin/roleType/confirm.jsp index c6372934a..6c27cd6be 100644 --- a/src/main/webapp/WEB-INF/view/admin/roleType/confirm.jsp +++ b/src/main/webapp/WEB-INF/view/admin/roleType/confirm.jsp @@ -1,109 +1,148 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.roletype_configuration" /> + + + +
+ + + + + -

- -

+
- <%-- Message: BEGIN --%> -
- -
-
- -
- <%-- Message: END --%> - -
-
    + <%-- Content Header --%> +
    +

    + +

    +
-
+ + - <%-- Confirm Form: BEGIN --%> - - -
- - - - - - - - - +
-
- - - - - - - + <%-- Form --%> + + + + + + + + + +
+
+
+ <%-- Box Header --%> +
+

+ + + + + + + + + + + + +

+
+ + + +
+
+ <%-- Box Body --%> +
+ <%-- Message --%> +
+ +
+ +
+
+ +
+ <%-- Form Fields --%> +
${f:h(name)}
${f:h(value)}
+ + + + + + + + + + +
${f:h(name)}
${f:h(value)}
+
- - - - - " /> - " /> - - " /> - " /> - - " /> - " /> - - " /> - " /> - " /> - - - - -
- - <%-- Confirm Form: BEGIN --%> + <%-- Box Footer --%> + +
+
+
+ -
-
+ +
+ + +
+ + + diff --git a/src/main/webapp/WEB-INF/view/admin/roleType/edit.jsp b/src/main/webapp/WEB-INF/view/admin/roleType/edit.jsp index 747497666..8b9702b49 100644 --- a/src/main/webapp/WEB-INF/view/admin/roleType/edit.jsp +++ b/src/main/webapp/WEB-INF/view/admin/roleType/edit.jsp @@ -1,96 +1,122 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.roletype_configuration" /> + + + +
+ + + + + -

- -

+
- <%-- Message: BEGIN --%> -
- -
-
- -
- <%-- Message: END --%> - -
-
    + <%-- Content Header --%> +
    +

    + +

    +
-
+ + - <%-- Edit Form: BEGIN --%> - - -
- - - - - - - - - +
-
- - - - - - - + <%-- Form --%> + + + + + + + + + +
+
+
+ <%-- Box Header --%> +
+

+ + + + + + +

+
+ + + +
+
+ <%-- Box Body --%> +
+ <%-- Message --%> +
+ +
+ +
+
+ +
-
- - - - - -
- " /> - " /> - - " /> - " /> -
-
-
- <%-- Edit Form: BEGIN --%> + <%-- Form Fields --%> +
+ + +
+
+ + +
- - + <%-- Box Footer --%> + +
+
+
+ + + + + + + + + + diff --git a/src/main/webapp/WEB-INF/view/admin/roleType/error.jsp b/src/main/webapp/WEB-INF/view/admin/roleType/error.jsp index 4a5a9397d..dfc96d77e 100644 --- a/src/main/webapp/WEB-INF/view/admin/roleType/error.jsp +++ b/src/main/webapp/WEB-INF/view/admin/roleType/error.jsp @@ -1,20 +1,50 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.roletype_configuration" /> + + + +
+ + + + + -
- - -
- +
+
+

+ +

+ +
-
+
- - +
+

Error

+

+ +

+

+ + + +

+
+
+
+ + + +
+ + + diff --git a/src/main/webapp/WEB-INF/view/admin/roleType/index.jsp b/src/main/webapp/WEB-INF/view/admin/roleType/index.jsp index bf17c454e..c9d05da12 100644 --- a/src/main/webapp/WEB-INF/view/admin/roleType/index.jsp +++ b/src/main/webapp/WEB-INF/view/admin/roleType/index.jsp @@ -1,117 +1,125 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.roletype_configuration" /> + + + +
+ + + + + -

- -

+
- <%-- Message: BEGIN --%> -
- -
-
- -
- <%-- Message: END --%> - - <%-- List: BEGIN --%> -
-
-
    -
  • -
  • - + <%-- Content Header --%> +
    +

    + +

    +
-
+ + - -

- -

-
- - - - - +
-
- - - - - - - - - - -
 
${f:h(data.name)} - - - - - -
- <%-- Page Navigation: BEGIN --%> -
- +
+
+
+ <%-- Box Header --%> +
+

+ +

+
+ + + +
+
+ <%-- Box Body --%> +
+ <%-- Message --%> +
+ +
+ +
+
+ +
-
- + <%-- List --%> + +

+ +

+
+ + + + + + + + + + + + + + +
${f:h(data.name)}
+
+ +
+ <%-- Box Footer --%> + +
- <%-- Page Navigation: END --%> - + +
- <%-- List: END --%> - - - + +
+ + + diff --git a/src/main/webapp/WEB-INF/view/admin/suggestBadWord/confirm.jsp b/src/main/webapp/WEB-INF/view/admin/suggestBadWord/confirm.jsp index 284731fa7..90ec842a1 100644 --- a/src/main/webapp/WEB-INF/view/admin/suggestBadWord/confirm.jsp +++ b/src/main/webapp/WEB-INF/view/admin/suggestBadWord/confirm.jsp @@ -1,107 +1,144 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.suggest_bad_word_configuration" /> + + + +
+ + + + + -

- -

+
- <%-- Message: BEGIN --%> -
- -
-
- -
- <%-- Message: END --%> - -
-
    + <%-- Content Header --%> +
    +

    + +

    +
-
+ + - <%-- Confirm Form: BEGIN --%> - - -
- - - - - - - - - - - - - - - - - - -
${f:h(suggestWord)}
- " /> - " /> - - " /> - " /> - - " /> - " /> - - " /> - " /> - " /> -
-
-
- <%-- Confirm Form: BEGIN --%> +
+ + <%-- Form --%> + + + + + + + + +
+
+
+ <%-- Box Header --%> +
+

+ + + + + + + + + + + + +

+
+ + + +
+
+ <%-- Box Body --%> +
+ <%-- Message --%> +
+ +
+ +
+
+ +
+ + <%-- Form Fields --%> + + + + + + + +
${f:h(suggestWord)}
+ +
+ <%-- Box Footer --%> + +
+
+
+
+ +
+
+ + +
+ + + -
-
diff --git a/src/main/webapp/WEB-INF/view/admin/suggestBadWord/download.jsp b/src/main/webapp/WEB-INF/view/admin/suggestBadWord/download.jsp index d36061325..1d52af71f 100644 --- a/src/main/webapp/WEB-INF/view/admin/suggestBadWord/download.jsp +++ b/src/main/webapp/WEB-INF/view/admin/suggestBadWord/download.jsp @@ -1,63 +1,86 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.suggest_bad_word_configuration" /> + + + +
+ + + + + -

- -

+
- <%-- Message: BEGIN --%> -
- -
-
- + <%-- Content Header --%> +
+

+ +

+ +
+ +
+ +
+
+
+ <%-- Box Header --%> +
+

+ +

+
+ + + + + + + + + + + + +
+
+ <%-- Box Body --%> +
+ + + + + + + + +
" type="submit" />
+
+ +
+ <%-- Box Footer --%> + +
+
+
+ +
- <%-- Message: END --%> -
-
    -
  • - -
  • -
  • - -
  • -
  • - -
  • -
  • - -
  • -
-
+ +
+ + + - <%-- Edit Form: BEGIN --%> - -
- - - - - - - -
" /> -
-
-
- <%-- Edit Form: BEGIN --%> - - - diff --git a/src/main/webapp/WEB-INF/view/admin/suggestBadWord/edit.jsp b/src/main/webapp/WEB-INF/view/admin/suggestBadWord/edit.jsp index fb89b37af..2df9240f7 100644 --- a/src/main/webapp/WEB-INF/view/admin/suggestBadWord/edit.jsp +++ b/src/main/webapp/WEB-INF/view/admin/suggestBadWord/edit.jsp @@ -1,95 +1,127 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.suggest_bad_word_configuration" /> + + + +
+ + + + + -

- -

+
- <%-- Message: BEGIN --%> -
- -
-
- -
- <%-- Message: END --%> - -
-
    + <%-- Content Header --%> +
    +

    + +

    +
-
+ + - <%-- Edit Form: BEGIN --%> - - -
- - - - - - - - - - - - - - - - - - -
- " /> - " /> - - " /> - " /> -
-
-
- <%-- Edit Form: BEGIN --%> +
+ + <%-- Form --%> + + + + + + + + +
+
+
+ <%-- Box Header --%> +
+

+ + + + + + +

+
+ + + + + + + + + + + + +
+
+ <%-- Box Body --%> +
+ <%-- Message --%> +
+ +
+ +
+
+ +
+ + <%-- Form Fields --%> +
+ + +
+
+ <%-- Box Footer --%> + +
+
+
+
+ +
+
+ + +
+ + + -
-
diff --git a/src/main/webapp/WEB-INF/view/admin/suggestBadWord/error.jsp b/src/main/webapp/WEB-INF/view/admin/suggestBadWord/error.jsp index 2fdb2c344..2994dafcb 100644 --- a/src/main/webapp/WEB-INF/view/admin/suggestBadWord/error.jsp +++ b/src/main/webapp/WEB-INF/view/admin/suggestBadWord/error.jsp @@ -1,17 +1,50 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.suggest_bad_word_configuration" /> + + + +
+ + + + + -
- -
- -
+
+
+

+ +

+ +
- - +
+ +
+

Error

+

+ +

+

+ + + +

+
+ +
+
+ + + +
+ + + diff --git a/src/main/webapp/WEB-INF/view/admin/suggestBadWord/index.jsp b/src/main/webapp/WEB-INF/view/admin/suggestBadWord/index.jsp index d68e633d9..92c2e936f 100644 --- a/src/main/webapp/WEB-INF/view/admin/suggestBadWord/index.jsp +++ b/src/main/webapp/WEB-INF/view/admin/suggestBadWord/index.jsp @@ -1,120 +1,135 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.suggest_bad_word_configuration" /> + + + +
+ + + + + -

- -

+
- <%-- Message: BEGIN --%> -
- -
-
- -
- <%-- Message: END --%> - - <%-- List: BEGIN --%> -
-
-
    -
  • -
  • - + <%-- Content Header --%> +
    +

    + +

    +
-
- -

- -

-
- - - - - - - - - - - - - - - - -
 
${f:h(data.suggestWord)} - - - - - -
- <%-- Page Navigation: BEGIN --%> -
- + + -
- +
+ +
+
+
+ <%-- Box Header --%> +
+

+ +

+
+ + + + + + + + + + + + +
+
+ <%-- Box Body --%> +
+ <%-- Message --%> +
+ +
+ +
+
+ +
+ + <%-- List --%> + +

+ +

+
+ + + + + + + + + + + + + + +
${f:h(data.suggestWord)}
+
+ +
+ <%-- Box Footer --%> + +
- <%-- Page Navigation: END --%> - -
- <%-- List: END --%> - - + +
+ + +
+ + + + diff --git a/src/main/webapp/WEB-INF/view/admin/suggestBadWord/upload.jsp b/src/main/webapp/WEB-INF/view/admin/suggestBadWord/upload.jsp index d444e539a..486f32d1f 100644 --- a/src/main/webapp/WEB-INF/view/admin/suggestBadWord/upload.jsp +++ b/src/main/webapp/WEB-INF/view/admin/suggestBadWord/upload.jsp @@ -1,69 +1,93 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.suggest_bad_word_configuration" /> + + + +
+ + + + + -

- -

+
- <%-- Message: BEGIN --%> -
- -
-
- + <%-- Content Header --%> +
+

+ +

+ +
+ +
+ +
+
+
+ <%-- Box Header --%> +
+

+ +

+
+ + + + + + + + + + + + +
+
+ <%-- Box Body --%> +
+ + + + + + + + + + + + + +
+ " /> +
+
+ +
+ <%-- Box Footer --%> + +
+
+
+ +
- <%-- Message: END --%> -
-
    -
  • - -
  • -
  • - -
  • -
  • - -
  • -
  • - -
  • -
-
+ +
+ + + - <%-- Edit Form: BEGIN --%> - -
- - - - - - - - - - - - -
- " /> -
-
-
- <%-- Edit Form: BEGIN --%> - - - diff --git a/src/main/webapp/WEB-INF/view/admin/suggestElevateWord/confirm.jsp b/src/main/webapp/WEB-INF/view/admin/suggestElevateWord/confirm.jsp index 7afca5065..b2b7df643 100644 --- a/src/main/webapp/WEB-INF/view/admin/suggestElevateWord/confirm.jsp +++ b/src/main/webapp/WEB-INF/view/admin/suggestElevateWord/confirm.jsp @@ -1,123 +1,160 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.suggest_elevate_word_configuration" /> + + + +
+ + + + + -

- -

+
- <%-- Message: BEGIN --%> -
- -
-
- -
- <%-- Message: END --%> - -
-
    + <%-- Content Header --%> +
    +

    + +

    +
-
+ + - <%-- Confirm Form: BEGIN --%> - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
${f:h(suggestWord)}
${f:h(reading)}
${f:h(targetRole)}
${f:h(targetLabel)}
${f:h(boost)}
- " /> - " /> - - " /> - " /> - - " /> - " /> - - " /> - " /> - " /> -
-
-
- <%-- Confirm Form: BEGIN --%> +
+ + <%-- Form --%> + + + + + + + + +
+
+
+ <%-- Box Header --%> +
+

+ + + + + + + + + + + + +

+
+ + + +
+
+ <%-- Box Body --%> +
+ <%-- Message --%> +
+ +
+ +
+
+ +
+ + <%-- Form Fields --%> + + + + + + + + + + + + + + + + + + + + + + + +
${f:h(suggestWord)}
${f:h(reading)}
${f:h(targetRole)}
${f:h(targetLabel)}
${f:h(boost)}
+ +
+ <%-- Box Footer --%> + +
+
+
+
+ +
+
+ + +
+ + + -
-
diff --git a/src/main/webapp/WEB-INF/view/admin/suggestElevateWord/download.jsp b/src/main/webapp/WEB-INF/view/admin/suggestElevateWord/download.jsp index 3658d6149..e52567662 100644 --- a/src/main/webapp/WEB-INF/view/admin/suggestElevateWord/download.jsp +++ b/src/main/webapp/WEB-INF/view/admin/suggestElevateWord/download.jsp @@ -1,62 +1,86 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.suggest_elevate_word_configuration" /> + + + +
+ + + + + -

- -

+
- <%-- Message: BEGIN --%> -
- -
-
- + <%-- Content Header --%> +
+

+ +

+ +
+ +
+ +
+
+
+ <%-- Box Header --%> +
+

+ +

+
+ + + + + + + + + + + + +
+
+ <%-- Box Body --%> +
+ + + + + + + + +
" type="submit" />
+
+ +
+ <%-- Box Footer --%> + +
+
+
+ +
- <%-- Message: END --%> -
-
    -
  • - -
  • -
  • - -
  • -
  • - -
  • -
  • - -
  • -
-
+ +
+ + + - <%-- Edit Form: BEGIN --%> - -
- - - - - - - -
" /> -
-
-
- <%-- Edit Form: BEGIN --%> - - diff --git a/src/main/webapp/WEB-INF/view/admin/suggestElevateWord/edit.jsp b/src/main/webapp/WEB-INF/view/admin/suggestElevateWord/edit.jsp index 05006ede0..e6a834de7 100644 --- a/src/main/webapp/WEB-INF/view/admin/suggestElevateWord/edit.jsp +++ b/src/main/webapp/WEB-INF/view/admin/suggestElevateWord/edit.jsp @@ -1,111 +1,143 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.suggest_elevate_word_configuration" /> + + + +
+ + + + + -

- -

+
- <%-- Message: BEGIN --%> -
- -
-
- -
- <%-- Message: END --%> - -
-
    + <%-- Content Header --%> +
    +

    + +

    +
-
+ + - <%-- Edit Form: BEGIN --%> - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- " /> - " /> - - " /> - " /> -
-
-
- <%-- Edit Form: BEGIN --%> +
+ + <%-- Form --%> + + + + + + + + +
+
+
+ <%-- Box Header --%> +
+

+ + + + + + +

+
+ + + + + + + + + + + + +
+
+ <%-- Box Body --%> +
+ <%-- Message --%> +
+ +
+ +
+
+ +
+ + <%-- Form Fields --%> +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ <%-- Box Footer --%> + +
+
+
+
+ +
+
+ + +
+ + + -
-
diff --git a/src/main/webapp/WEB-INF/view/admin/suggestElevateWord/error.jsp b/src/main/webapp/WEB-INF/view/admin/suggestElevateWord/error.jsp index 2949384b2..b523b8bad 100644 --- a/src/main/webapp/WEB-INF/view/admin/suggestElevateWord/error.jsp +++ b/src/main/webapp/WEB-INF/view/admin/suggestElevateWord/error.jsp @@ -1,17 +1,50 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.suggest_elevate_word_configuration" /> + + + +
+ + + + + -
- -
- -
+
+
+

+ +

+ +
- - +
+ +
+

Error

+

+ +

+

+ + + +

+
+ +
+
+ + + +
+ + + diff --git a/src/main/webapp/WEB-INF/view/admin/suggestElevateWord/index.jsp b/src/main/webapp/WEB-INF/view/admin/suggestElevateWord/index.jsp index ef660bab7..afab804b3 100644 --- a/src/main/webapp/WEB-INF/view/admin/suggestElevateWord/index.jsp +++ b/src/main/webapp/WEB-INF/view/admin/suggestElevateWord/index.jsp @@ -1,120 +1,135 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.suggest_elevate_word_configuration" /> + + + +
+ + + + + -

- -

+
- <%-- Message: BEGIN --%> -
- -
-
- -
- <%-- Message: END --%> - - <%-- List: BEGIN --%> -
-
-
    -
  • -
  • - + <%-- Content Header --%> +
    +

    + +

    +
-
- -

- -

-
- - - - - - - - - - - - - - - - -
 
${f:h(data.suggestWord)} - - - - - -
- <%-- Page Navigation: BEGIN --%> -
- + + -
- +
+ +
+
+
+ <%-- Box Header --%> +
+

+ +

+
+ + + + + + + + + + + + +
+
+ <%-- Box Body --%> +
+ <%-- Message --%> +
+ +
+ +
+
+ +
+ + <%-- List --%> + +

+ +

+
+ + + + + + + + + + + + + + +
${f:h(data.suggestWord)}
+
+ +
+ <%-- Box Footer --%> + +
- <%-- Page Navigation: END --%> - -
- <%-- List: END --%> - - + +
+ + +
+ + + + diff --git a/src/main/webapp/WEB-INF/view/admin/suggestElevateWord/upload.jsp b/src/main/webapp/WEB-INF/view/admin/suggestElevateWord/upload.jsp index 1dcf8f7ad..22279473c 100644 --- a/src/main/webapp/WEB-INF/view/admin/suggestElevateWord/upload.jsp +++ b/src/main/webapp/WEB-INF/view/admin/suggestElevateWord/upload.jsp @@ -1,68 +1,93 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.suggest_elevate_word_configuration" /> + + + +
+ + + + + -

- -

+
- <%-- Message: BEGIN --%> -
- -
-
- + <%-- Content Header --%> +
+

+ +

+ +
+ +
+ +
+
+
+ <%-- Box Header --%> +
+

+ +

+
+ + + + + + + + + + + + +
+
+ <%-- Box Body --%> +
+ + + + + + + + + + + + + +
+ " /> +
+
+ +
+ <%-- Box Footer --%> + +
+
+
+ +
- <%-- Message: END --%> -
-
    -
  • - -
  • -
  • - -
  • -
  • - -
  • -
  • - -
  • -
-
+ +
+ + + - <%-- Edit Form: BEGIN --%> - -
- - - - - - - - - - - - -
- " /> -
-
-
- <%-- Edit Form: BEGIN --%> - - diff --git a/src/main/webapp/WEB-INF/view/admin/system/index.jsp b/src/main/webapp/WEB-INF/view/admin/system/index.jsp index 1de50b717..e44d19a88 100644 --- a/src/main/webapp/WEB-INF/view/admin/system/index.jsp +++ b/src/main/webapp/WEB-INF/view/admin/system/index.jsp @@ -1,100 +1,119 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + + Fess | <bean:message key="labels.system_title_configuration" /> + + + +
+ + + + + -
- <%-- Message: BEGIN --%> -
- -
-
- -
- <%-- Message: END --%> +
+ <%-- Content Header --%> + <%-- Message --%> +
+ +
+ +
+
+ +
-
-

- -

- - - - - - - -
- ${f:h(clusterName)} ( - - - - ) -
-
+
+
+
- -
-

- -

- - - - - - - - - - - -
- - - - - - - -
- - " /> - - - - - - - - - " /> - -
+
+ <%-- Box Header --%> +
+

+ +

+
+ <%-- Box Body --%> +
+ + + + + + + +
+ ${f:h(clusterName)} + ( + + + + ) +
+
+
+ + +
+ <%-- Box Header --%> +
+

+ +

+
+ <%-- Box Body --%> +
+ <%-- Message --%> + + + + + + + + + + + +
+ + + + + + +
+ + + + " /> + + +
+ + + + + + + " /> +
+
+
+
+
+
+
+
+
+
+
- - -
- - - -
-
+ + + diff --git a/src/main/webapp/WEB-INF/view/admin/systemInfo/index.jsp b/src/main/webapp/WEB-INF/view/admin/systemInfo/index.jsp index 51b89bfb5..47f0dac7d 100644 --- a/src/main/webapp/WEB-INF/view/admin/systemInfo/index.jsp +++ b/src/main/webapp/WEB-INF/view/admin/systemInfo/index.jsp @@ -1,103 +1,103 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.system_info_configuration" /> + + + +
+ + + + + -
+
- <%-- Message: BEGIN --%> -
- -
-
- -
- <%-- Message: END --%> + <%-- Content Header --%> +
+

+ +

+
-
-

- -

- - - - - - -
-
+
-
-

- -

- - - - - - -
-
- -
-

- -

- - - - - - - - - - - -
-
- -
-

- -

- - - - - - -
-
+
+
+
+ <%-- Box Header --%> +
+

+ +

+
+ <%-- Box Body --%> +
+ +
+
+
+ <%-- Box Header --%> +
+

+ +

+
+ <%-- Box Body --%> +
+ +
+
+
+ <%-- Box Header --%> +
+

+ +

+
+ <%-- Box Body --%> +
+ + + + + + +
+
+
+ <%-- Box Header --%> +
+

+ +

+
+ <%-- Box Body --%> +
+ +
+
+
+
+
- - + +
+ + + + diff --git a/src/main/webapp/WEB-INF/view/admin/webAuthentication/confirm.jsp b/src/main/webapp/WEB-INF/view/admin/webAuthentication/confirm.jsp index 11e5823dc..f31401fb6 100644 --- a/src/main/webapp/WEB-INF/view/admin/webAuthentication/confirm.jsp +++ b/src/main/webapp/WEB-INF/view/admin/webAuthentication/confirm.jsp @@ -1,136 +1,176 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.web_authentication_configuration" /> + + + +
+ + + + + -

- -

+
- <%-- Message: BEGIN --%> -
- -
-
- -
- <%-- Message: END --%> - -
-
    + <%-- Content Header --%> +
    +

    + +

    +
-
+ + - <%-- Confirm Form: BEGIN --%> - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
${f:h(hostname)}
${f:h(port)}
${f:h(authRealm)}
- ${f:h(item.label)} -
${f:h(username)}
******
${f:br(f:h(parameters))}
- ${f:h(item.label)} -
- " /> - " /> - - " /> - " /> - - " /> - " /> - - " /> - " /> - " /> -
-
-
- <%-- Confirm Form: BEGIN --%> +
- - + <%-- Form --%> + + + + + + + + +
+
+
+ <%-- Box Header --%> +
+

+ + + + + + + + + + + + +

+
+ + + +
+
+ <%-- Box Body --%> +
+ <%-- Message --%> +
+ +
+ +
+
+ +
+ + <%-- Form Fields --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
${f:h(hostname)}
${f:h(port)}
${f:h(authRealm)}
+ ${f:h(item.label)} +
${f:h(username)}
****** +
${f:br(f:h(parameters))}
+ ${f:h(item.label)} +
+ +
+ <%-- Box Footer --%> + +
+
+
+
+ +
+
+ + +
+ + + diff --git a/src/main/webapp/WEB-INF/view/admin/webAuthentication/edit.jsp b/src/main/webapp/WEB-INF/view/admin/webAuthentication/edit.jsp index b7aa6aeb2..23722f25b 100644 --- a/src/main/webapp/WEB-INF/view/admin/webAuthentication/edit.jsp +++ b/src/main/webapp/WEB-INF/view/admin/webAuthentication/edit.jsp @@ -1,127 +1,155 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.web_authentication_configuration" /> + + + +
+ + + + + -

- -

+
- <%-- Message: BEGIN --%> -
- -
-
- -
- <%-- Message: END --%> - -
-
    + <%-- Content Header --%> +
    +

    + +

    +
-
+ + - <%-- Edit Form: BEGIN --%> - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - ${f:h(item.label)} - -
- - ${f:h(item.label)} - -
- " /> - " /> - - " /> - " /> -
-
-
- <%-- Edit Form: BEGIN --%> +
- - + <%-- Form --%> + + + + + + + + + +
+
+
+ <%-- Box Header --%> +
+

+ + + + + + +

+
+ + + +
+
+ <%-- Box Body --%> +
+ <%-- Message --%> +
+ +
+ +
+
+ +
+ + <%-- Form Fields --%> +
+ + +
+
+ + +
+
+ + +
+
+ + + + ${f:h(item.label)} + + +
+
+ + +
+
+ + +
+
+ + +
+
+ + + + ${f:h(item.label)} + + +
+
+ + <%-- Box Footer --%> + +
+
+
+
+ +
+
+ + +
+ + + diff --git a/src/main/webapp/WEB-INF/view/admin/webAuthentication/error.jsp b/src/main/webapp/WEB-INF/view/admin/webAuthentication/error.jsp index e08600966..8a7857317 100644 --- a/src/main/webapp/WEB-INF/view/admin/webAuthentication/error.jsp +++ b/src/main/webapp/WEB-INF/view/admin/webAuthentication/error.jsp @@ -1,17 +1,50 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.web_authentication_configuration" /> + + + +
+ + + + + -
- -
- -
+
+
+

+ +

+ +
- - +
+ +
+

Error

+

+ +

+

+ + + +

+
+ +
+
+ + + +
+ + + diff --git a/src/main/webapp/WEB-INF/view/admin/webAuthentication/index.jsp b/src/main/webapp/WEB-INF/view/admin/webAuthentication/index.jsp index 7328cba2f..68cf7aa7d 100644 --- a/src/main/webapp/WEB-INF/view/admin/webAuthentication/index.jsp +++ b/src/main/webapp/WEB-INF/view/admin/webAuthentication/index.jsp @@ -1,129 +1,143 @@ -<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> - - - - - - - - - +<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> + + + +Fess | <bean:message key="labels.web_authentication_configuration" /> + + + +
+ + + + + -

- -

- <%-- Message: BEGIN --%> -
- -
-
- -
- <%-- Message: END --%> +
- <%-- List: BEGIN --%> -
-
- -
    -
  • -
  • - + <%-- Content Header --%> +
    +

    + +

    +
-
- - - - - -
- -

- -

-
- - - - - - - - - - - - - - - - - - -
 
- - ${f:h(data.hostname)}: - - ${f:h(data.port)}${f:h(data.webConfig.name)} - - - - - -
- <%-- Page Navigation: BEGIN --%> -
- + + -
- +
+ +
+
+ + + + + + +
+ <%-- Box Header --%> +
+

+ +

+
+ + + +
+
+ <%-- Box Body --%> +
+ <%-- Message --%> +
+ +
+ +
+
+ +
+ + <%-- List --%> + +

+ +

+
+ + + + + + + + + + + + + + + + +
+ + + ${f:h(data.hostname)}: + + + + ${f:h(data.port)} + + ${f:h(data.webConfig.name)}
+
+ +
+ <%-- Box Footer --%> + +
+
- <%-- Page Navigation: END --%> - + +
- <%-- List: END --%> - - - + +
+ + + diff --git a/src/main/webapp/WEB-INF/view/admin/webConfig/confirm.jsp b/src/main/webapp/WEB-INF/view/admin/webConfig/confirm.jsp index acd3e96ae..3bd0143e8 100644 --- a/src/main/webapp/WEB-INF/view/admin/webConfig/confirm.jsp +++ b/src/main/webapp/WEB-INF/view/admin/webConfig/confirm.jsp @@ -50,6 +50,7 @@
+
@@ -234,4 +235,3 @@ - diff --git a/src/main/webapp/WEB-INF/view/admin/webConfig/edit.jsp b/src/main/webapp/WEB-INF/view/admin/webConfig/edit.jsp index 0eecdf704..ee11720fc 100644 --- a/src/main/webapp/WEB-INF/view/admin/webConfig/edit.jsp +++ b/src/main/webapp/WEB-INF/view/admin/webConfig/edit.jsp @@ -10,7 +10,7 @@ - +
@@ -50,6 +50,7 @@ +
@@ -194,4 +195,3 @@ - diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml index d619f7b82..cb0b7305b 100644 --- a/src/main/webapp/WEB-INF/web.xml +++ b/src/main/webapp/WEB-INF/web.xml @@ -58,11 +58,6 @@ org.codelibs.fess.filter.WebApiFilter - - lastaFilter - org.lastaflute.web.LastaFilter - -