#288 fileAuthentication
This commit is contained in:
parent
26fe2a9cf1
commit
36eade2468
6 changed files with 486 additions and 365 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -67,7 +67,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")
|
||||
|
|
|
@ -1,134 +1,172 @@
|
|||
<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%><tiles:insert template="/WEB-INF/view/common/admin/layout.jsp"
|
||||
flush="true">
|
||||
<tiles:put name="title">
|
||||
<bean:message key="labels.file_authentication_configuration" />
|
||||
</tiles:put>
|
||||
<tiles:put name="header" value="/WEB-INF/view/common/admin/header.jsp" />
|
||||
<tiles:put name="footer" value="/WEB-INF/view/common/admin/footer.jsp" />
|
||||
<tiles:put name="menu" value="/WEB-INF/view/common/admin/menu.jsp" />
|
||||
<tiles:put name="menuType" value="fileAuthentication" />
|
||||
<tiles:put name="headerScript" type="string"></tiles:put>
|
||||
<tiles:put name="body" type="string">
|
||||
<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%><!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Fess | <bean:message key="labels.file_authentication_configuration" /></title>
|
||||
<jsp:include page="/WEB-INF/view/common/admin2/head.jsp"></jsp:include>
|
||||
</head>
|
||||
<body class="skin-blue sidebar-mini">
|
||||
<div class="wrapper">
|
||||
<jsp:include page="/WEB-INF/view/common/admin2/header.jsp"></jsp:include>
|
||||
<jsp:include page="/WEB-INF/view/common/admin2/sidebar.jsp">
|
||||
<jsp:param name="menuCategoryType" value="crawl" />
|
||||
<jsp:param name="menuType" value="fileAuthentication" />
|
||||
</jsp:include>
|
||||
|
||||
<h3>
|
||||
<bean:message key="labels.file_authentication_title_confirm" />
|
||||
</h3>
|
||||
<div class="content-wrapper">
|
||||
|
||||
<%-- Message: BEGIN --%>
|
||||
<div>
|
||||
<html:messages id="msg" message="true">
|
||||
<div class="alert-message info"><bean:write name="msg" ignore="true" /></div>
|
||||
</html:messages>
|
||||
<html:errors />
|
||||
</div>
|
||||
<%-- Message: END --%>
|
||||
|
||||
<div>
|
||||
<ul class="pills">
|
||||
<%-- Content Header --%>
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<bean:message key="labels.file_authentication_title_details" />
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><s:link href="index">
|
||||
<bean:message key="labels.file_authentication_link_list" />
|
||||
</s:link></li>
|
||||
<c:if test="${crudMode == 1}">
|
||||
<li class="active"><a href="#"><bean:message
|
||||
key="labels.file_authentication_link_create" /></a></li>
|
||||
<li class="active"><a href="#"><bean:message key="labels.file_authentication_link_create" /></a></li>
|
||||
</c:if>
|
||||
<c:if test="${crudMode == 2}">
|
||||
<li class="active"><a href="#"><bean:message
|
||||
key="labels.file_authentication_link_update" /></a></li>
|
||||
<li class="active"><a href="#"><bean:message key="labels.file_authentication_link_update" /></a></li>
|
||||
</c:if>
|
||||
<c:if test="${crudMode == 3}">
|
||||
<li class="active"><a href="#"><bean:message
|
||||
key="labels.file_authentication_link_delete" /></a></li>
|
||||
<li class="active"><a href="#"><bean:message key="labels.file_authentication_link_delete" /></a></li>
|
||||
</c:if>
|
||||
<c:if test="${crudMode == 4}">
|
||||
<li class="active"><a href="#"><bean:message
|
||||
key="labels.file_authentication_link_confirm" /></a></li>
|
||||
<li class="active"><a href="#"><bean:message key="labels.file_authentication_link_confirm" /></a></li>
|
||||
</c:if>
|
||||
</ul>
|
||||
</div>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<%-- Confirm Form: BEGIN --%>
|
||||
<s:form>
|
||||
<html:hidden property="crudMode" />
|
||||
<div>
|
||||
<c:if test="${crudMode==2 || crudMode==3 || crudMode==4}">
|
||||
<html:hidden property="id" />
|
||||
<html:hidden property="versionNo" />
|
||||
</c:if>
|
||||
<html:hidden property="createdBy" />
|
||||
<html:hidden property="createdTime" />
|
||||
<table class="bordered-table zebra-striped" style="width: 500px;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th style="width: 150px;"><bean:message
|
||||
key="labels.file_authentication_hostname" /></th>
|
||||
<td>${f:h(hostname)}<html:hidden property="hostname" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><bean:message key="labels.file_authentication_port" /></th>
|
||||
<td>${f:h(port)}<html:hidden property="port" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><bean:message key="labels.file_authentication_scheme" /></th>
|
||||
<td><c:forEach var="item" items="${protocolSchemeItems}">
|
||||
<c:if test="${protocolScheme==item.value}">${f:h(item.label)}</c:if>
|
||||
</c:forEach> <html:hidden property="protocolScheme" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><bean:message key="labels.file_authentication_username" /></th>
|
||||
<td>${f:h(username)}<html:hidden property="username" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><bean:message key="labels.file_authentication_password" /></th>
|
||||
<td><c:if test="${password!=''}">******</c:if> <html:hidden
|
||||
property="password" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><bean:message
|
||||
key="labels.file_authentication_parameters" /></th>
|
||||
<td style="width: 345px; word-break: break-all;">${f:br(f:h(parameters))}<html:hidden
|
||||
property="parameters" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><bean:message
|
||||
key="labels.file_authentication_file_crawling_config" /></th>
|
||||
<td><c:forEach var="item" items="${fileConfigItems}">
|
||||
<c:if test="${fileConfigId==item.value}">${f:h(item.label)}</c:if>
|
||||
</c:forEach> <html:hidden property="fileConfigId" /></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2"><c:if test="${crudMode == 1}">
|
||||
<input type="submit" class="btn small" name="create"
|
||||
value="<bean:message key="labels.file_authentication_button_create"/>" />
|
||||
<input type="submit" class="btn small" name="editagain"
|
||||
value="<bean:message key="labels.file_authentication_button_back"/>" />
|
||||
</c:if> <c:if test="${crudMode == 2}">
|
||||
<input type="submit" class="btn small" name="update"
|
||||
value="<bean:message key="labels.file_authentication_button_update"/>" />
|
||||
<input type="submit" class="btn small" name="editagain"
|
||||
value="<bean:message key="labels.file_authentication_button_back"/>" />
|
||||
</c:if> <c:if test="${crudMode == 3}">
|
||||
<input type="submit" class="btn small" name="delete"
|
||||
value="<bean:message key="labels.file_authentication_button_delete"/>" />
|
||||
<input type="submit" class="btn small" name="back"
|
||||
value="<bean:message key="labels.file_authentication_button_back"/>" />
|
||||
</c:if> <c:if test="${crudMode == 4}">
|
||||
<input type="submit" class="btn small" name="back"
|
||||
value="<bean:message key="labels.file_authentication_button_back"/>" />
|
||||
<input type="submit" class="btn small" name="editfromconfirm"
|
||||
value="<bean:message key="labels.file_authentication_button_edit"/>" />
|
||||
<input type="submit" class="btn small" name="deletefromconfirm"
|
||||
value="<bean:message key="labels.file_authentication_button_delete"/>" />
|
||||
</c:if></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
</s:form>
|
||||
<%-- Confirm Form: BEGIN --%>
|
||||
<section class="content">
|
||||
|
||||
<%-- Form --%>
|
||||
<s:form>
|
||||
<html:hidden property="crudMode" />
|
||||
<c:if test="${crudMode==2 || crudMode==3 || crudMode==4}">
|
||||
<html:hidden property="id" />
|
||||
<html:hidden property="versionNo" />
|
||||
</c:if>
|
||||
<html:hidden property="createdBy" />
|
||||
<html:hidden property="createdTime" />
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box">
|
||||
<%-- Box Header --%>
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">
|
||||
<c:if test="${crudMode == 1}">
|
||||
<bean:message key="labels.file_authentication_link_create" />
|
||||
</c:if>
|
||||
<c:if test="${crudMode == 2}">
|
||||
<bean:message key="labels.file_authentication_link_update" />
|
||||
</c:if>
|
||||
<c:if test="${crudMode == 3}">
|
||||
<bean:message key="labels.file_authentication_link_delete" />
|
||||
</c:if>
|
||||
<c:if test="${crudMode == 4}">
|
||||
<bean:message key="labels.file_authentication_link_confirm" />
|
||||
</c:if>
|
||||
</h3>
|
||||
<div class="box-tools pull-right">
|
||||
<span class="label label-default"><s:link href="index">
|
||||
<bean:message key="labels.file_authentication_link_list" />
|
||||
</s:link></span>
|
||||
</div>
|
||||
</div>
|
||||
<%-- Box Body --%>
|
||||
<div class="box-body">
|
||||
<%-- Message --%>
|
||||
<div>
|
||||
<html:messages id="msg" message="true">
|
||||
<div class="alert-message info">
|
||||
<bean:write name="msg" ignore="true" />
|
||||
</div>
|
||||
</html:messages>
|
||||
<html:errors />
|
||||
</div>
|
||||
|
||||
</tiles:put>
|
||||
</tiles:insert>
|
||||
<%-- Form Fields --%>
|
||||
<table class="table table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="col-xs-2"><bean:message key="labels.file_authentication_hostname" /></th>
|
||||
<td>${f:h(hostname)}<html:hidden property="hostname" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><bean:message key="labels.file_authentication_port" /></th>
|
||||
<td>${f:h(port)}<html:hidden property="port" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><bean:message key="labels.file_authentication_scheme" /></th>
|
||||
<td><c:forEach var="item" items="${protocolSchemeItems}">
|
||||
<c:if test="${protocolScheme==item.value}">${f:h(item.label)}</c:if>
|
||||
</c:forEach> <html:hidden property="protocolScheme" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><bean:message key="labels.file_authentication_username" /></th>
|
||||
<td>${f:h(username)}<html:hidden property="username" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><bean:message key="labels.file_authentication_password" /></th>
|
||||
<td><c:if test="${password!=''}">******</c:if>
|
||||
<html:hidden property="password" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><bean:message key="labels.file_authentication_parameters" /></th>
|
||||
<td>${f:br(f:h(parameters))}<html:hidden property="parameters" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><bean:message key="labels.file_authentication_file_crawling_config" /></th>
|
||||
<td><c:forEach var="item" items="${fileConfigItems}">
|
||||
<c:if test="${fileConfigId==item.value}">${f:h(item.label)}</c:if>
|
||||
</c:forEach> <html:hidden property="fileConfigId" /></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<%-- Box Footer --%>
|
||||
<div class="box-footer">
|
||||
<c:if test="${crudMode == 1}">
|
||||
<input type="submit" class="btn" name="editagain" value="<bean:message key="labels.file_authentication_button_back"/>" />
|
||||
<input type="submit" class="btn btn-primary" name="create"
|
||||
value="<bean:message key="labels.file_authentication_button_create"/>"
|
||||
/>
|
||||
</c:if>
|
||||
<c:if test="${crudMode == 2}">
|
||||
<input type="submit" class="btn" name="editagain" value="<bean:message key="labels.file_authentication_button_back"/>" />
|
||||
<input type="submit" class="btn btn-primary" name="update"
|
||||
value="<bean:message key="labels.file_authentication_button_update"/>"
|
||||
/>
|
||||
</c:if>
|
||||
<c:if test="${crudMode == 3}">
|
||||
<input type="submit" class="btn" name="back" value="<bean:message key="labels.file_authentication_button_back"/>" />
|
||||
<input type="submit" class="btn btn-primary" name="delete"
|
||||
value="<bean:message key="labels.file_authentication_button_delete"/>"
|
||||
/>
|
||||
</c:if>
|
||||
<c:if test="${crudMode == 4}">
|
||||
<input type="submit" class="btn" name="back" value="<bean:message key="labels.file_authentication_button_back"/>" />
|
||||
<input type="submit" class="btn" name="editfromconfirm"
|
||||
value="<bean:message key="labels.file_authentication_button_edit"/>"
|
||||
/>
|
||||
<input type="submit" class="btn" name="deletefromconfirm"
|
||||
value="<bean:message key="labels.file_authentication_button_delete"/>"
|
||||
/>
|
||||
</c:if>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</s:form>
|
||||
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<jsp:include page="/WEB-INF/view/common/admin2/footer.jsp"></jsp:include>
|
||||
</div>
|
||||
<jsp:include page="/WEB-INF/view/common/admin2/foot.jsp"></jsp:include>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,125 +1,151 @@
|
|||
<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%><tiles:insert template="/WEB-INF/view/common/admin/layout.jsp"
|
||||
flush="true">
|
||||
<tiles:put name="title">
|
||||
<bean:message key="labels.file_authentication_configuration" />
|
||||
</tiles:put>
|
||||
<tiles:put name="header" value="/WEB-INF/view/common/admin/header.jsp" />
|
||||
<tiles:put name="footer" value="/WEB-INF/view/common/admin/footer.jsp" />
|
||||
<tiles:put name="menu" value="/WEB-INF/view/common/admin/menu.jsp" />
|
||||
<tiles:put name="menuType" value="fileAuthentication" />
|
||||
<tiles:put name="headerScript" type="string"></tiles:put>
|
||||
<tiles:put name="body" type="string">
|
||||
<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%><!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Fess | <bean:message key="labels.file_authentication_configuration" /></title>
|
||||
<jsp:include page="/WEB-INF/view/common/admin2/head.jsp"></jsp:include>
|
||||
</head>
|
||||
<body class="skin-blue sidebar-mini">
|
||||
<div class="wrapper">
|
||||
<jsp:include page="/WEB-INF/view/common/admin2/header.jsp"></jsp:include>
|
||||
<jsp:include page="/WEB-INF/view/common/admin2/sidebar.jsp">
|
||||
<jsp:param name="menuCategoryType" value="crawl" />
|
||||
<jsp:param name="menuType" value="fileAuthentication" />
|
||||
</jsp:include>
|
||||
|
||||
<h3>
|
||||
<bean:message key="labels.file_authentication_title_details" />
|
||||
</h3>
|
||||
<div class="content-wrapper">
|
||||
|
||||
<%-- Message: BEGIN --%>
|
||||
<div>
|
||||
<html:messages id="msg" message="true">
|
||||
<div class="alert-message info"><bean:write name="msg" ignore="true" /></div>
|
||||
</html:messages>
|
||||
<html:errors />
|
||||
</div>
|
||||
<%-- Message: END --%>
|
||||
|
||||
<div>
|
||||
<ul class="pills">
|
||||
<%-- Content Header --%>
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<bean:message key="labels.file_authentication_title_details" />
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><s:link href="index">
|
||||
<bean:message key="labels.file_authentication_link_list" />
|
||||
</s:link></li>
|
||||
<c:if test="${crudMode == 1}">
|
||||
<li class="active"><a href="#"><bean:message
|
||||
key="labels.file_authentication_link_create" /></a></li>
|
||||
<li class="active"><a href="#"><bean:message key="labels.file_authentication_link_create" /></a></li>
|
||||
</c:if>
|
||||
<c:if test="${crudMode == 2}">
|
||||
<li class="active"><a href="#"><bean:message
|
||||
key="labels.file_authentication_link_update" /></a></li>
|
||||
<li class="active"><a href="#"><bean:message key="labels.file_authentication_link_update" /></a></li>
|
||||
</c:if>
|
||||
<c:if test="${crudMode == 3}">
|
||||
<li class="active"><a href="#"><bean:message
|
||||
key="labels.file_authentication_link_delete" /></a></li>
|
||||
<li class="active"><a href="#"><bean:message key="labels.file_authentication_link_delete" /></a></li>
|
||||
</c:if>
|
||||
<c:if test="${crudMode == 4}">
|
||||
<li class="active"><a href="#"><bean:message
|
||||
key="labels.file_authentication_link_confirm" /></a></li>
|
||||
<li class="active"><a href="#"><bean:message key="labels.file_authentication_link_confirm" /></a></li>
|
||||
</c:if>
|
||||
</ul>
|
||||
</div>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<%-- Edit Form: BEGIN --%>
|
||||
<s:form>
|
||||
<html:hidden property="crudMode" />
|
||||
<div>
|
||||
<c:if test="${crudMode==2}">
|
||||
<html:hidden property="id" />
|
||||
<html:hidden property="versionNo" />
|
||||
</c:if>
|
||||
<html:hidden property="createdBy" />
|
||||
<html:hidden property="createdTime" />
|
||||
<table class="bordered-table zebra-striped" style="width: 500px;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th style="width: 150px;"><bean:message
|
||||
key="labels.file_authentication_hostname" /></th>
|
||||
<td><html:text property="hostname" style="width:98%;" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><bean:message key="labels.file_authentication_port" /></th>
|
||||
<td><html:text property="port" style="width:98%;" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><bean:message key="labels.file_authentication_scheme" /></th>
|
||||
<td><html:select property="protocolScheme">
|
||||
<c:forEach var="item" items="${protocolSchemeItems}">
|
||||
<html:option value="${f:u(item.value)}">${f:h(item.label)}</html:option>
|
||||
</c:forEach>
|
||||
</html:select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><bean:message key="labels.file_authentication_username" /></th>
|
||||
<td><html:text property="username" style="width:98%;" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><bean:message key="labels.file_authentication_password" /></th>
|
||||
<td><html:password property="password" style="width:98%;" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><bean:message
|
||||
key="labels.file_authentication_parameters" /></th>
|
||||
<td><html:textarea property="parameters" style="width:98%;"
|
||||
rows="5" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><bean:message
|
||||
key="labels.file_authentication_file_crawling_config" /></th>
|
||||
<td><html:select property="fileConfigId">
|
||||
<c:forEach var="item" items="${fileConfigItems}">
|
||||
<html:option value="${f:u(item.value)}">${f:h(item.label)}</html:option>
|
||||
</c:forEach>
|
||||
</html:select></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2"><c:if test="${crudMode == 1}">
|
||||
<input type="submit" class="btn small" name="confirmfromcreate"
|
||||
value="<bean:message key="labels.file_authentication_button_create"/>" />
|
||||
<input type="submit" class="btn small" name="back"
|
||||
value="<bean:message key="labels.file_authentication_button_back"/>" />
|
||||
</c:if> <c:if test="${crudMode == 2}">
|
||||
<input type="submit" class="btn small" name="confirmfromupdate"
|
||||
value="<bean:message key="labels.file_authentication_button_confirm"/>" />
|
||||
<input type="submit" class="btn small" name="back"
|
||||
value="<bean:message key="labels.file_authentication_button_back"/>" />
|
||||
</c:if></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
</s:form>
|
||||
<%-- Edit Form: BEGIN --%>
|
||||
<section class="content">
|
||||
|
||||
<%-- Form --%>
|
||||
<s:form>
|
||||
<html:hidden property="crudMode" />
|
||||
<c:if test="${crudMode==2}">
|
||||
<html:hidden property="id" />
|
||||
<html:hidden property="versionNo" />
|
||||
</c:if>
|
||||
<html:hidden property="createdBy" />
|
||||
<html:hidden property="createdTime" />
|
||||
|
||||
</tiles:put>
|
||||
</tiles:insert>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box">
|
||||
<%-- Box Header --%>
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">
|
||||
<c:if test="${crudMode == 1}">
|
||||
<bean:message key="labels.file_authentication_link_create" />
|
||||
</c:if>
|
||||
<c:if test="${crudMode == 2}">
|
||||
<bean:message key="labels.file_authentication_link_update" />
|
||||
</c:if>
|
||||
</h3>
|
||||
<div class="box-tools pull-right">
|
||||
<span class="label label-default"><s:link href="index">
|
||||
<bean:message key="labels.file_authentication_link_list" />
|
||||
</s:link></span>
|
||||
</div>
|
||||
</div>
|
||||
<%-- Box Body --%>
|
||||
<div class="box-body">
|
||||
<%-- Message --%>
|
||||
<div>
|
||||
<html:messages id="msg" message="true">
|
||||
<div class="alert-message info">
|
||||
<bean:write name="msg" ignore="true" />
|
||||
</div>
|
||||
</html:messages>
|
||||
<html:errors />
|
||||
</div>
|
||||
|
||||
<%-- Form Fields --%>
|
||||
<div class="form-group">
|
||||
<label for="hostname"><bean:message key="labels.file_authentication_hostname" /></label>
|
||||
<html:text property="hostname" styleClass="form-control" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="port"><bean:message key="labels.file_authentication_port" /></label>
|
||||
<html:text property="port" styleClass="form-control" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="protocolScheme"><bean:message key="labels.file_authentication_scheme" /></label>
|
||||
<html:select property="protocolScheme" styleClass="form-control">
|
||||
<c:forEach var="item" items="${protocolSchemeItems}">
|
||||
<html:option value="${f:u(item.value)}">${f:h(item.label)}</html:option>
|
||||
</c:forEach>
|
||||
</html:select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="username"><bean:message key="labels.file_authentication_username" /></label>
|
||||
<html:text property="username" styleClass="form-control" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password"><bean:message key="labels.file_authentication_password" /></label>
|
||||
<html:password property="password" styleClass="form-control" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="parameters"><bean:message key="labels.file_authentication_parameters" /></label>
|
||||
<html:textarea property="parameters" styleClass="form-control" rows="5" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="fileConfigId"><bean:message key="labels.file_authentication_file_crawling_config" /></label>
|
||||
<html:select property="fileConfigId" styleClass="form-control">
|
||||
<c:forEach var="item" items="${fileConfigItems}">
|
||||
<html:option value="${f:u(item.value)}">${f:h(item.label)}</html:option>
|
||||
</c:forEach>
|
||||
</html:select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%-- Box Footer --%>
|
||||
<div class="box-footer">
|
||||
<c:if test="${crudMode == 1}">
|
||||
<input type="submit" class="btn" name="back" value="<bean:message key="labels.file_authentication_button_back"/>" />
|
||||
<input type="submit" class="btn btn-primary" name="confirmfromcreate"
|
||||
value="<bean:message key="labels.file_authentication_button_create"/>"
|
||||
/>
|
||||
</c:if>
|
||||
<c:if test="${crudMode == 2}">
|
||||
<input type="submit" class="btn" name="back" value="<bean:message key="labels.file_authentication_button_back"/>" />
|
||||
<input type="submit" class="btn btn-primary" name="confirmfromupdate"
|
||||
value="<bean:message key="labels.file_authentication_button_confirm"/>"
|
||||
/>
|
||||
</c:if>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</s:form>
|
||||
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<jsp:include page="/WEB-INF/view/common/admin2/footer.jsp"></jsp:include>
|
||||
</div>
|
||||
<jsp:include page="/WEB-INF/view/common/admin2/foot.jsp"></jsp:include>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,17 +1,50 @@
|
|||
<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%><tiles:insert template="/WEB-INF/view/common/admin/layout.jsp" flush="true">
|
||||
<tiles:put name="title"><bean:message key="labels.file_authentication_configuration" /></tiles:put>
|
||||
<tiles:put name="header" value="/WEB-INF/view/common/admin/header.jsp" />
|
||||
<tiles:put name="footer" value="/WEB-INF/view/common/admin/footer.jsp" />
|
||||
<tiles:put name="menu" value="/WEB-INF/view/common/admin/menu.jsp" />
|
||||
<tiles:put name="menuType" value="fileAuthentication" />
|
||||
<tiles:put name="headerScript" type="string"></tiles:put>
|
||||
<tiles:put name="body" type="string">
|
||||
<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%><!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Fess | <bean:message key="labels.file_authentication_configuration" /></title>
|
||||
<jsp:include page="/WEB-INF/view/common/admin2/head.jsp"></jsp:include>
|
||||
</head>
|
||||
<body class="skin-blue sidebar-mini">
|
||||
<div class="wrapper">
|
||||
<jsp:include page="/WEB-INF/view/common/admin2/header.jsp"></jsp:include>
|
||||
<jsp:include page="/WEB-INF/view/common/admin2/sidebar.jsp">
|
||||
<jsp:param name="menuCategoryType" value="crawl" />
|
||||
<jsp:param name="menuType" value="fileAuthentication" />
|
||||
</jsp:include>
|
||||
|
||||
<div id="main">
|
||||
<html:errors/>
|
||||
<br>
|
||||
<s:link href="index"><bean:message key="labels.file_authentication_button_back"/></s:link>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<bean:message key="labels.wizard_start_title" />
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li class="active"><s:link href="/admin/fileAuthentication/">
|
||||
<bean:message key="labels.file_authentication_link_list" />
|
||||
</s:link></li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
</tiles:put>
|
||||
</tiles:insert>
|
||||
<section class="content">
|
||||
|
||||
<div class="callout callout-danger lead">
|
||||
<h4>Error</h4>
|
||||
<p>
|
||||
<html:errors />
|
||||
</p>
|
||||
<p>
|
||||
<s:link href="index">
|
||||
<bean:message key="labels.file_authentication_button_back" />
|
||||
</s:link>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<jsp:include page="/WEB-INF/view/common/admin2/footer.jsp"></jsp:include>
|
||||
|
||||
</div>
|
||||
<jsp:include page="/WEB-INF/view/common/admin2/foot.jsp"></jsp:include>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,130 +1,143 @@
|
|||
<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%><tiles:insert template="/WEB-INF/view/common/admin/layout.jsp"
|
||||
flush="true">
|
||||
<tiles:put name="title">
|
||||
<bean:message key="labels.file_authentication_configuration" />
|
||||
</tiles:put>
|
||||
<tiles:put name="header" value="/WEB-INF/view/common/admin/header.jsp" />
|
||||
<tiles:put name="footer" value="/WEB-INF/view/common/admin/footer.jsp" />
|
||||
<tiles:put name="menu" value="/WEB-INF/view/common/admin/menu.jsp" />
|
||||
<tiles:put name="menuType" value="fileAuthentication" />
|
||||
<tiles:put name="headerScript" type="string"></tiles:put>
|
||||
<tiles:put name="body" type="string">
|
||||
<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%><!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Fess | <bean:message key="labels.file_authentication_configuration" /></title>
|
||||
<jsp:include page="/WEB-INF/view/common/admin2/head.jsp"></jsp:include>
|
||||
</head>
|
||||
<body class="skin-blue sidebar-mini">
|
||||
<div class="wrapper">
|
||||
<jsp:include page="/WEB-INF/view/common/admin2/header.jsp"></jsp:include>
|
||||
<jsp:include page="/WEB-INF/view/common/admin2/sidebar.jsp">
|
||||
<jsp:param name="menuCategoryType" value="crawl" />
|
||||
<jsp:param name="menuType" value="fileAuthentication" />
|
||||
</jsp:include>
|
||||
|
||||
<h3>
|
||||
<bean:message key="labels.file_authentication_title_details" />
|
||||
</h3>
|
||||
<div class="content-wrapper">
|
||||
|
||||
<%-- Message: BEGIN --%>
|
||||
<div>
|
||||
<html:messages id="msg" message="true">
|
||||
<div class="alert-message info"><bean:write name="msg" ignore="true" /></div>
|
||||
</html:messages>
|
||||
<html:errors />
|
||||
</div>
|
||||
<%-- Message: END --%>
|
||||
|
||||
<%-- List: BEGIN --%>
|
||||
<div class="list-table">
|
||||
<div>
|
||||
<c:if test="${displayCreateLink}">
|
||||
<ul class="pills">
|
||||
<li class="active"><a href="#"><bean:message
|
||||
key="labels.file_authentication_link_list" /></a></li>
|
||||
<li><s:link href="createpage">
|
||||
<bean:message key="labels.file_authentication_link_create_new" />
|
||||
<%-- Content Header --%>
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<bean:message key="labels.file_authentication_configuration" />
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li class="active"><s:link href="index">
|
||||
<bean:message key="labels.file_authentication_link_list" />
|
||||
</s:link></li>
|
||||
</ul>
|
||||
</c:if>
|
||||
<c:if test="${!displayCreateLink}">
|
||||
<s:link href="../fileConfig/index" styleClass="btn primary">
|
||||
<bean:message key="labels.file_authentication_create_file_config" />
|
||||
</s:link>
|
||||
</c:if>
|
||||
</div>
|
||||
<c:if test="${displayCreateLink && fileAuthenticationPager.allRecordCount == 0}">
|
||||
<p class="alert-message warning">
|
||||
<bean:message key="labels.list_could_not_find_crud_table" />
|
||||
</p>
|
||||
</c:if>
|
||||
<c:if test="${displayCreateLink && fileAuthenticationPager.allRecordCount > 0}">
|
||||
<table class="bordered-table zebra-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align: center; width: 200px;"><bean:message
|
||||
key="labels.file_authentication_list_hostname" /></th>
|
||||
<th style="text-align: center;"><bean:message
|
||||
key="labels.file_authentication_list_file_crawling_config" /></th>
|
||||
<th style="text-align: center; width: 150px;"> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach var="data" varStatus="s"
|
||||
items="${fileAuthenticationItems}">
|
||||
<tr class="${s.index % 2 == 0 ? 'row1' : 'row2'}">
|
||||
<td><c:if test="${data.hostname==null||data.hostname==''}">
|
||||
<bean:message key="labels.file_authentication_any" />
|
||||
</c:if>${f:h(data.hostname)}:<c:if test="${data.port==-1}">
|
||||
<bean:message key="labels.file_authentication_any" />
|
||||
</c:if> <c:if test="${data.port!=-1}">${f:h(data.port)}</c:if></td>
|
||||
<td>${f:h(data.fileConfig.name)}</td>
|
||||
<td style="text-align: center;"><s:link
|
||||
href="confirmpage/4/${f:u(data.id)}">
|
||||
<bean:message key="labels.file_authentication_link_details" />
|
||||
</s:link> <s:link href="editpage/2/${f:u(data.id)}">
|
||||
<bean:message key="labels.file_authentication_link_edit" />
|
||||
</s:link> <s:link href="deletepage/3/${f:u(data.id)}">
|
||||
<bean:message key="labels.file_authentication_link_delete" />
|
||||
</s:link></td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</tbody>
|
||||
</table>
|
||||
<%-- Page Navigation: BEGIN --%>
|
||||
<div class="row center">
|
||||
<div class="pagination">
|
||||
<ul>
|
||||
<c:if test="${fileAuthenticationPager.existPrePage}">
|
||||
<li class="prev"><s:link
|
||||
href="list/${fileAuthenticationPager.currentPageNumber - 1}">
|
||||
<bean:message key="labels.file_authentication_link_prev_page" />
|
||||
</s:link></li>
|
||||
</c:if>
|
||||
<c:if test="${!fileAuthenticationPager.existPrePage}">
|
||||
<li class="prev disabled"><a href="#"><bean:message
|
||||
key="labels.file_authentication_link_prev_page" /></a></li>
|
||||
</c:if>
|
||||
<c:forEach var="p" varStatus="s"
|
||||
items="${fileAuthenticationPager.pageNumberList}">
|
||||
<li
|
||||
<c:if test="${p == fileAuthenticationPager.currentPageNumber}">class="active"</c:if>>
|
||||
<s:link href="list/${p}">${p}</s:link>
|
||||
</li>
|
||||
</c:forEach>
|
||||
<c:if test="${fileAuthenticationPager.existNextPage}">
|
||||
<li class="next"><s:link
|
||||
href="list/${fileAuthenticationPager.currentPageNumber + 1}">
|
||||
<bean:message key="labels.file_authentication_link_next_page" />
|
||||
</s:link></li>
|
||||
</c:if>
|
||||
<c:if test="${!fileAuthenticationPager.existNextPage}">
|
||||
<li class="next disabled"><a href="#"><bean:message
|
||||
key="labels.file_authentication_link_next_page" /></a></li>
|
||||
</c:if>
|
||||
</ul>
|
||||
</div>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<div>
|
||||
<span><bean:message key="labels.pagination_page_guide_msg"
|
||||
arg0="${f:h(fileAuthenticationPager.currentPageNumber)}"
|
||||
arg1="${f:h(fileAuthenticationPager.allPageCount)}"
|
||||
arg2="${f:h(fileAuthenticationPager.allRecordCount)}" /></span>
|
||||
<section class="content">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<c:if test="${!displayCreateLink}">
|
||||
<s:link href="../fileConfig/index" styleClass="btn btn-primary">
|
||||
<bean:message key="labels.file_authentication_create_file_config" />
|
||||
</s:link>
|
||||
</c:if>
|
||||
<c:if test="${displayCreateLink}">
|
||||
<div class="box">
|
||||
<%-- Box Header --%>
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">
|
||||
<bean:message key="labels.file_authentication_link_list" />
|
||||
</h3>
|
||||
<div class="box-tools pull-right">
|
||||
<span class="label label-default"><s:link href="createpage">
|
||||
<bean:message key="labels.file_authentication_link_create_new" />
|
||||
</s:link></span>
|
||||
</div>
|
||||
</div>
|
||||
<%-- Box Body --%>
|
||||
<div class="box-body">
|
||||
<%-- Message --%>
|
||||
<div>
|
||||
<html:messages id="msg" message="true">
|
||||
<div class="alert-message info">
|
||||
<bean:write name="msg" ignore="true" />
|
||||
</div>
|
||||
</html:messages>
|
||||
<html:errors />
|
||||
</div>
|
||||
|
||||
<%-- List --%>
|
||||
<c:if test="${fileAuthenticationPager.allRecordCount == 0}">
|
||||
<p class="alert-message warning">
|
||||
<bean:message key="labels.list_could_not_find_crud_table" />
|
||||
</p>
|
||||
</c:if>
|
||||
<c:if test="${fileAuthenticationPager.allRecordCount > 0}">
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><bean:message key="labels.file_authentication_list_hostname" /></th>
|
||||
<th><bean:message key="labels.file_authentication_list_file_crawling_config" /></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach var="data" varStatus="s" items="${fileAuthenticationItems}">
|
||||
<tr class="${s.index % 2 == 0 ? 'row1' : 'row2'}" data-href="confirmpage/4/${f:u(data.id)}">
|
||||
<td><c:if test="${data.hostname==null||data.hostname==''}">
|
||||
<bean:message key="labels.file_authentication_any" />
|
||||
</c:if>
|
||||
${f:h(data.hostname)}:
|
||||
<c:if test="${data.port==-1}">
|
||||
<bean:message key="labels.file_authentication_any" />
|
||||
</c:if> <c:if test="${data.port!=-1}">
|
||||
${f:h(data.port)}
|
||||
</c:if>
|
||||
</td>
|
||||
<td>${f:h(data.fileConfig.name)}</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</tbody>
|
||||
</table>
|
||||
</c:if>
|
||||
|
||||
</div>
|
||||
<%-- Box Footer --%>
|
||||
<div class="box-footer">
|
||||
<%-- Paging Info --%>
|
||||
<span><bean:message key="labels.pagination_page_guide_msg" arg0="${f:h(fileAuthenticationPager.currentPageNumber)}"
|
||||
arg1="${f:h(fileAuthenticationPager.allPageCount)}" arg2="${f:h(fileAuthenticationPager.allRecordCount)}"
|
||||
/></span>
|
||||
|
||||
<%-- Paging Navigation --%>
|
||||
<ul class="pagination pagination-sm no-margin pull-right">
|
||||
<c:if test="${fileAuthenticationPager.existPrePage}">
|
||||
<li class="prev"><s:link href="list/${fileAuthenticationPager.currentPageNumber - 1}">
|
||||
<bean:message key="labels.file_authentication_link_prev_page" />
|
||||
</s:link></li>
|
||||
</c:if>
|
||||
<c:if test="${!fileAuthenticationPager.existPrePage}">
|
||||
<li class="prev disabled"><a href="#"><bean:message key="labels.file_authentication_link_prev_page" /></a></li>
|
||||
</c:if>
|
||||
<c:forEach var="p" varStatus="s" items="${fileAuthenticationPager.pageNumberList}">
|
||||
<li <c:if test="${p == fileAuthenticationPager.currentPageNumber}">class="active"</c:if>><s:link href="list/${p}">${p}</s:link>
|
||||
</li>
|
||||
</c:forEach>
|
||||
<c:if test="${fileAuthenticationPager.existNextPage}">
|
||||
<li class="next"><s:link href="list/${fileAuthenticationPager.currentPageNumber + 1}">
|
||||
<bean:message key="labels.file_authentication_link_next_page" />
|
||||
</s:link></li>
|
||||
</c:if>
|
||||
<c:if test="${!fileAuthenticationPager.existNextPage}">
|
||||
<li class="next disabled"><a href="#"><bean:message key="labels.file_authentication_link_next_page" /></a></li>
|
||||
</c:if>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</c:if>
|
||||
</div>
|
||||
</div>
|
||||
<%-- Page Navigation: END --%>
|
||||
</c:if>
|
||||
|
||||
</section>
|
||||
</div>
|
||||
<%-- List: END --%>
|
||||
|
||||
|
||||
</tiles:put>
|
||||
</tiles:insert>
|
||||
<jsp:include page="/WEB-INF/view/common/admin2/footer.jsp"></jsp:include>
|
||||
</div>
|
||||
<jsp:include page="/WEB-INF/view/common/admin2/foot.jsp"></jsp:include>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Reference in a new issue