fix #279
This commit is contained in:
parent
b6fe751582
commit
4df41c5d0d
401 changed files with 13459 additions and 12268 deletions
5
pom.xml
5
pom.xml
|
@ -277,11 +277,6 @@
|
|||
<artifactId>${databaseArtifactId}</artifactId>
|
||||
<version>${databaseVersion}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.codelibs.fess</groupId>
|
||||
<artifactId>fess-db-${database}</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>jstl</groupId>
|
||||
<artifactId>jstl</artifactId>
|
||||
|
|
|
@ -1,31 +1,6 @@
|
|||
{
|
||||
".fess_config" : {
|
||||
"aliases" : { },
|
||||
"mappings" : {
|
||||
"user_info" : {
|
||||
"_all" : {
|
||||
"enabled" : false
|
||||
},
|
||||
"_id" : {
|
||||
"path" : "id"
|
||||
},
|
||||
"properties" : {
|
||||
"code" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
},
|
||||
"createdTime" : {
|
||||
"type" : "long"
|
||||
},
|
||||
"id" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
},
|
||||
"updatedTime" : {
|
||||
"type" : "long"
|
||||
}
|
||||
}
|
||||
},
|
||||
"web_config_to_label" : {
|
||||
"_all" : {
|
||||
"enabled" : false
|
||||
|
@ -338,62 +313,6 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"search_log" : {
|
||||
"_all" : {
|
||||
"enabled" : false
|
||||
},
|
||||
"_id" : {
|
||||
"path" : "id"
|
||||
},
|
||||
"properties" : {
|
||||
"accessType" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
},
|
||||
"clientIp" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
},
|
||||
"hitCount" : {
|
||||
"type" : "long"
|
||||
},
|
||||
"id" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
},
|
||||
"queryOffset" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
"queryPageSize" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
"referer" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
},
|
||||
"requestedTime" : {
|
||||
"type" : "long"
|
||||
},
|
||||
"responseTime" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
"searchWord" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
},
|
||||
"userAgent" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
},
|
||||
"userId" : {
|
||||
"type" : "long"
|
||||
},
|
||||
"userSessionId" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
}
|
||||
}
|
||||
},
|
||||
"web_authentication" : {
|
||||
"_all" : {
|
||||
"enabled" : false
|
||||
|
@ -594,32 +513,6 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"search_field_log" : {
|
||||
"_all" : {
|
||||
"enabled" : false
|
||||
},
|
||||
"_id" : {
|
||||
"path" : "id"
|
||||
},
|
||||
"properties" : {
|
||||
"id" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
},
|
||||
"name" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
},
|
||||
"searchLogId" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
},
|
||||
"value" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
}
|
||||
}
|
||||
},
|
||||
"data_config" : {
|
||||
"_all" : {
|
||||
"enabled" : false
|
||||
|
@ -918,31 +811,6 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"favorite_log" : {
|
||||
"_all" : {
|
||||
"enabled" : false
|
||||
},
|
||||
"_id" : {
|
||||
"path" : "id"
|
||||
},
|
||||
"properties" : {
|
||||
"createdTime" : {
|
||||
"type" : "long"
|
||||
},
|
||||
"id" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
},
|
||||
"url" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
},
|
||||
"userInfoId" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
}
|
||||
}
|
||||
},
|
||||
"file_config_to_label" : {
|
||||
"_all" : {
|
||||
"enabled" : false
|
||||
|
@ -1054,8 +922,7 @@
|
|||
"type" : "boolean"
|
||||
},
|
||||
"crawler" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
"type" : "boolean"
|
||||
},
|
||||
"createdBy" : {
|
||||
"type" : "string",
|
||||
|
@ -1189,45 +1056,14 @@
|
|||
"index" : "not_analyzed"
|
||||
}
|
||||
}
|
||||
},
|
||||
"click_log" : {
|
||||
"_all" : {
|
||||
"enabled" : false
|
||||
},
|
||||
"_id" : {
|
||||
"path" : "id"
|
||||
},
|
||||
"properties" : {
|
||||
"id" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
},
|
||||
"requestedTime" : {
|
||||
"type" : "long"
|
||||
},
|
||||
"searchLogId" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
},
|
||||
"url" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"settings" : {
|
||||
"index" : {
|
||||
"refresh_interval" : "1s",
|
||||
"creation_date" : "1435803297459",
|
||||
"number_of_shards" : "5",
|
||||
"number_of_replicas" : "0",
|
||||
"version" : {
|
||||
"created" : "1060099"
|
||||
},
|
||||
"uuid" : "fv6Ry_sJQK6lc93JEXDm_A"
|
||||
"number_of_shards" : "2",
|
||||
"number_of_replicas" : "0"
|
||||
}
|
||||
},
|
||||
"warmers" : { }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
174
src/main/config/es/search_log.json
Normal file
174
src/main/config/es/search_log.json
Normal file
|
@ -0,0 +1,174 @@
|
|||
{
|
||||
"search_log" : {
|
||||
"aliases" : {
|
||||
"search_log_search" : {},
|
||||
"search_log_index" : {}
|
||||
},
|
||||
"mappings" : {
|
||||
"user_info" : {
|
||||
"_all" : {
|
||||
"enabled" : false
|
||||
},
|
||||
"_id" : {
|
||||
"path" : "id"
|
||||
},
|
||||
"properties" : {
|
||||
"code" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
},
|
||||
"createdTime" : {
|
||||
"type" : "long"
|
||||
},
|
||||
"id" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
},
|
||||
"updatedTime" : {
|
||||
"type" : "long"
|
||||
}
|
||||
}
|
||||
},
|
||||
"search_log" : {
|
||||
"_all" : {
|
||||
"enabled" : false
|
||||
},
|
||||
"_id" : {
|
||||
"path" : "id"
|
||||
},
|
||||
"properties" : {
|
||||
"accessType" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
},
|
||||
"clientIp" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
},
|
||||
"hitCount" : {
|
||||
"type" : "long"
|
||||
},
|
||||
"id" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
},
|
||||
"queryOffset" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
"queryPageSize" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
"referer" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
},
|
||||
"requestedTime" : {
|
||||
"type" : "long"
|
||||
},
|
||||
"responseTime" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
"searchWord" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
},
|
||||
"userAgent" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
},
|
||||
"userInfoId" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
},
|
||||
"userSessionId" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
}
|
||||
}
|
||||
},
|
||||
"search_field_log" : {
|
||||
"_all" : {
|
||||
"enabled" : false
|
||||
},
|
||||
"_id" : {
|
||||
"path" : "id"
|
||||
},
|
||||
"properties" : {
|
||||
"id" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
},
|
||||
"name" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
},
|
||||
"searchLogId" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
},
|
||||
"value" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
}
|
||||
}
|
||||
},
|
||||
"favorite_log" : {
|
||||
"_all" : {
|
||||
"enabled" : false
|
||||
},
|
||||
"_id" : {
|
||||
"path" : "id"
|
||||
},
|
||||
"properties" : {
|
||||
"createdTime" : {
|
||||
"type" : "long"
|
||||
},
|
||||
"id" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
},
|
||||
"url" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
},
|
||||
"userInfoId" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
}
|
||||
}
|
||||
},
|
||||
"click_log" : {
|
||||
"_all" : {
|
||||
"enabled" : false
|
||||
},
|
||||
"_id" : {
|
||||
"path" : "id"
|
||||
},
|
||||
"properties" : {
|
||||
"id" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
},
|
||||
"requestedTime" : {
|
||||
"type" : "long"
|
||||
},
|
||||
"searchLogId" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
},
|
||||
"url" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"settings" : {
|
||||
"index" : {
|
||||
"refresh_interval" : "1m",
|
||||
"number_of_shards" : "10",
|
||||
"number_of_replicas" : "0"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -40,9 +40,9 @@ public class Constants extends CoreLibConstants {
|
|||
|
||||
public static final String FALSE = "false";
|
||||
|
||||
public static final String T = "T";
|
||||
public static final Boolean T = true;
|
||||
|
||||
public static final String F = "F";
|
||||
public static final Boolean F = false;
|
||||
|
||||
public static final String ON = "on";
|
||||
|
||||
|
@ -238,6 +238,14 @@ public class Constants extends CoreLibConstants {
|
|||
|
||||
public static final String SEARCH_LOG_ACCESS_TYPE = "searchLogAccessType";
|
||||
|
||||
public static final String SEARCH_LOG_ACCESS_TYPE_JSON = "json";
|
||||
|
||||
public static final String SEARCH_LOG_ACCESS_TYPE_XML = "xml";
|
||||
|
||||
public static final String SEARCH_LOG_ACCESS_TYPE_WEB = "web";
|
||||
|
||||
public static final String SEARCH_LOG_ACCESS_TYPE_OTHER = "other";
|
||||
|
||||
public static final String RESULTS_PER_PAGE = "resultsPerPage";
|
||||
|
||||
public static final String USER_CODE = "userCode";
|
||||
|
@ -315,4 +323,6 @@ public class Constants extends CoreLibConstants {
|
|||
|
||||
public static final String PROCESS_TYPE_BOTH = "B";
|
||||
|
||||
public static final long ONE_DAY_IN_MILLIS = 24L * 60L * 60L * 1000L;
|
||||
|
||||
}
|
||||
|
|
|
@ -38,7 +38,6 @@ import org.codelibs.fess.api.WebApiManager;
|
|||
import org.codelibs.fess.api.WebApiRequest;
|
||||
import org.codelibs.fess.api.WebApiResponse;
|
||||
import org.codelibs.fess.client.FessEsClient;
|
||||
import org.codelibs.fess.db.allcommon.CDef;
|
||||
import org.codelibs.fess.entity.PingResponse;
|
||||
import org.codelibs.fess.util.ComponentUtil;
|
||||
import org.codelibs.fess.util.FacetResponse;
|
||||
|
@ -124,7 +123,7 @@ public class JsonApiManager extends BaseApiManager implements WebApiManager {
|
|||
String errMsg = StringUtil.EMPTY;
|
||||
String query = null;
|
||||
final StringBuilder buf = new StringBuilder(1000);
|
||||
request.setAttribute(Constants.SEARCH_LOG_ACCESS_TYPE, CDef.AccessType.Json);
|
||||
request.setAttribute(Constants.SEARCH_LOG_ACCESS_TYPE, Constants.SEARCH_LOG_ACCESS_TYPE_JSON);
|
||||
final String queryId = request.getParameter("queryId");
|
||||
try {
|
||||
chain.doFilter(new WebApiRequest(request, SEARCH_API), new WebApiResponse(response));
|
||||
|
|
|
@ -36,7 +36,6 @@ import org.codelibs.fess.api.WebApiManager;
|
|||
import org.codelibs.fess.api.WebApiRequest;
|
||||
import org.codelibs.fess.api.WebApiResponse;
|
||||
import org.codelibs.fess.client.FessEsClient;
|
||||
import org.codelibs.fess.db.allcommon.CDef;
|
||||
import org.codelibs.fess.entity.PingResponse;
|
||||
import org.codelibs.fess.util.ComponentUtil;
|
||||
import org.codelibs.fess.util.FacetResponse;
|
||||
|
@ -112,7 +111,7 @@ public class XmlApiManager extends BaseApiManager implements WebApiManager {
|
|||
String errMsg = StringUtil.EMPTY;
|
||||
final StringBuilder buf = new StringBuilder(1000);
|
||||
String query = null;
|
||||
request.setAttribute(Constants.SEARCH_LOG_ACCESS_TYPE, CDef.AccessType.Xml);
|
||||
request.setAttribute(Constants.SEARCH_LOG_ACCESS_TYPE, Constants.SEARCH_LOG_ACCESS_TYPE_XML);
|
||||
final String queryId = request.getParameter("queryId");
|
||||
try {
|
||||
chain.doFilter(new WebApiRequest(request, SEARCH_API), new WebApiResponse(response));
|
||||
|
|
|
@ -33,6 +33,7 @@ public class LocalDateTimeConverter implements Converter {
|
|||
this.pattern = pattern;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getAsObject(String value) {
|
||||
if (StringUtil.isEmpty(value)) {
|
||||
return null;
|
||||
|
@ -40,10 +41,12 @@ public class LocalDateTimeConverter implements Converter {
|
|||
return LocalDateTime.parse(value, DateTimeFormatter.ofPattern(pattern));
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getAsString(Object value) {
|
||||
return ((LocalDateTime) value).format(DateTimeFormatter.ofPattern(pattern));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isTarget(Class clazz) {
|
||||
return clazz == LocalDateTime.class;
|
||||
}
|
||||
|
|
|
@ -317,6 +317,7 @@ public class FessEsClient implements Client {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@DestroyMethod
|
||||
public void close() {
|
||||
try {
|
||||
|
@ -715,353 +716,440 @@ public class FessEsClient implements Client {
|
|||
// Elasticsearch Client
|
||||
//
|
||||
|
||||
@Override
|
||||
public <Request extends ActionRequest, Response extends ActionResponse, RequestBuilder extends ActionRequestBuilder<Request, Response, RequestBuilder, Client>> ActionFuture<Response> execute(
|
||||
Action<Request, Response, RequestBuilder, Client> action, Request request) {
|
||||
return client.execute(action, request);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <Request extends ActionRequest, Response extends ActionResponse, RequestBuilder extends ActionRequestBuilder<Request, Response, RequestBuilder, Client>> void execute(
|
||||
Action<Request, Response, RequestBuilder, Client> action, Request request, ActionListener<Response> listener) {
|
||||
client.execute(action, request, listener);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <Request extends ActionRequest, Response extends ActionResponse, RequestBuilder extends ActionRequestBuilder<Request, Response, RequestBuilder, Client>> RequestBuilder prepareExecute(
|
||||
Action<Request, Response, RequestBuilder, Client> action) {
|
||||
return client.prepareExecute(action);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ThreadPool threadPool() {
|
||||
return client.threadPool();
|
||||
}
|
||||
|
||||
@Override
|
||||
public AdminClient admin() {
|
||||
return client.admin();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionFuture<IndexResponse> index(IndexRequest request) {
|
||||
return client.index(request);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void index(IndexRequest request, ActionListener<IndexResponse> listener) {
|
||||
client.index(request, listener);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IndexRequestBuilder prepareIndex() {
|
||||
return client.prepareIndex();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionFuture<UpdateResponse> update(UpdateRequest request) {
|
||||
return client.update(request);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update(UpdateRequest request, ActionListener<UpdateResponse> listener) {
|
||||
client.update(request, listener);
|
||||
}
|
||||
|
||||
@Override
|
||||
public UpdateRequestBuilder prepareUpdate() {
|
||||
return client.prepareUpdate();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UpdateRequestBuilder prepareUpdate(String index, String type, String id) {
|
||||
return client.prepareUpdate(index, type, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IndexRequestBuilder prepareIndex(String index, String type) {
|
||||
return client.prepareIndex(index, type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IndexRequestBuilder prepareIndex(String index, String type, String id) {
|
||||
return client.prepareIndex(index, type, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionFuture<DeleteResponse> delete(DeleteRequest request) {
|
||||
return client.delete(request);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void delete(DeleteRequest request, ActionListener<DeleteResponse> listener) {
|
||||
client.delete(request, listener);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DeleteRequestBuilder prepareDelete() {
|
||||
return client.prepareDelete();
|
||||
}
|
||||
|
||||
@Override
|
||||
public DeleteRequestBuilder prepareDelete(String index, String type, String id) {
|
||||
return client.prepareDelete(index, type, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionFuture<BulkResponse> bulk(BulkRequest request) {
|
||||
return client.bulk(request);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void bulk(BulkRequest request, ActionListener<BulkResponse> listener) {
|
||||
client.bulk(request, listener);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BulkRequestBuilder prepareBulk() {
|
||||
return client.prepareBulk();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionFuture<DeleteByQueryResponse> deleteByQuery(DeleteByQueryRequest request) {
|
||||
return client.deleteByQuery(request);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteByQuery(DeleteByQueryRequest request, ActionListener<DeleteByQueryResponse> listener) {
|
||||
client.deleteByQuery(request, listener);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DeleteByQueryRequestBuilder prepareDeleteByQuery(String... indices) {
|
||||
return client.prepareDeleteByQuery(indices);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionFuture<GetResponse> get(GetRequest request) {
|
||||
return client.get(request);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void get(GetRequest request, ActionListener<GetResponse> listener) {
|
||||
client.get(request, listener);
|
||||
}
|
||||
|
||||
@Override
|
||||
public GetRequestBuilder prepareGet() {
|
||||
return client.prepareGet();
|
||||
}
|
||||
|
||||
@Override
|
||||
public GetRequestBuilder prepareGet(String index, String type, String id) {
|
||||
return client.prepareGet(index, type, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PutIndexedScriptRequestBuilder preparePutIndexedScript() {
|
||||
return client.preparePutIndexedScript();
|
||||
}
|
||||
|
||||
@Override
|
||||
public PutIndexedScriptRequestBuilder preparePutIndexedScript(String scriptLang, String id, String source) {
|
||||
return client.preparePutIndexedScript(scriptLang, id, source);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteIndexedScript(DeleteIndexedScriptRequest request, ActionListener<DeleteIndexedScriptResponse> listener) {
|
||||
client.deleteIndexedScript(request, listener);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionFuture<DeleteIndexedScriptResponse> deleteIndexedScript(DeleteIndexedScriptRequest request) {
|
||||
return client.deleteIndexedScript(request);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DeleteIndexedScriptRequestBuilder prepareDeleteIndexedScript() {
|
||||
return client.prepareDeleteIndexedScript();
|
||||
}
|
||||
|
||||
@Override
|
||||
public DeleteIndexedScriptRequestBuilder prepareDeleteIndexedScript(String scriptLang, String id) {
|
||||
return client.prepareDeleteIndexedScript(scriptLang, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void putIndexedScript(PutIndexedScriptRequest request, ActionListener<PutIndexedScriptResponse> listener) {
|
||||
client.putIndexedScript(request, listener);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionFuture<PutIndexedScriptResponse> putIndexedScript(PutIndexedScriptRequest request) {
|
||||
return client.putIndexedScript(request);
|
||||
}
|
||||
|
||||
@Override
|
||||
public GetIndexedScriptRequestBuilder prepareGetIndexedScript() {
|
||||
return client.prepareGetIndexedScript();
|
||||
}
|
||||
|
||||
@Override
|
||||
public GetIndexedScriptRequestBuilder prepareGetIndexedScript(String scriptLang, String id) {
|
||||
return client.prepareGetIndexedScript(scriptLang, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getIndexedScript(GetIndexedScriptRequest request, ActionListener<GetIndexedScriptResponse> listener) {
|
||||
client.getIndexedScript(request, listener);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionFuture<GetIndexedScriptResponse> getIndexedScript(GetIndexedScriptRequest request) {
|
||||
return client.getIndexedScript(request);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionFuture<MultiGetResponse> multiGet(MultiGetRequest request) {
|
||||
return client.multiGet(request);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void multiGet(MultiGetRequest request, ActionListener<MultiGetResponse> listener) {
|
||||
client.multiGet(request, listener);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MultiGetRequestBuilder prepareMultiGet() {
|
||||
return client.prepareMultiGet();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionFuture<CountResponse> count(CountRequest request) {
|
||||
return client.count(request);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void count(CountRequest request, ActionListener<CountResponse> listener) {
|
||||
client.count(request, listener);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CountRequestBuilder prepareCount(String... indices) {
|
||||
return client.prepareCount(indices);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionFuture<ExistsResponse> exists(ExistsRequest request) {
|
||||
return client.exists(request);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void exists(ExistsRequest request, ActionListener<ExistsResponse> listener) {
|
||||
client.exists(request, listener);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ExistsRequestBuilder prepareExists(String... indices) {
|
||||
return client.prepareExists(indices);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionFuture<SuggestResponse> suggest(SuggestRequest request) {
|
||||
return client.suggest(request);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void suggest(SuggestRequest request, ActionListener<SuggestResponse> listener) {
|
||||
client.suggest(request, listener);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SuggestRequestBuilder prepareSuggest(String... indices) {
|
||||
return client.prepareSuggest(indices);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionFuture<SearchResponse> search(SearchRequest request) {
|
||||
return client.search(request);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void search(SearchRequest request, ActionListener<SearchResponse> listener) {
|
||||
client.search(request, listener);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SearchRequestBuilder prepareSearch(String... indices) {
|
||||
return client.prepareSearch(indices);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionFuture<SearchResponse> searchScroll(SearchScrollRequest request) {
|
||||
return client.searchScroll(request);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void searchScroll(SearchScrollRequest request, ActionListener<SearchResponse> listener) {
|
||||
client.searchScroll(request, listener);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SearchScrollRequestBuilder prepareSearchScroll(String scrollId) {
|
||||
return client.prepareSearchScroll(scrollId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionFuture<MultiSearchResponse> multiSearch(MultiSearchRequest request) {
|
||||
return client.multiSearch(request);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void multiSearch(MultiSearchRequest request, ActionListener<MultiSearchResponse> listener) {
|
||||
client.multiSearch(request, listener);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MultiSearchRequestBuilder prepareMultiSearch() {
|
||||
return client.prepareMultiSearch();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionFuture<SearchResponse> moreLikeThis(MoreLikeThisRequest request) {
|
||||
return client.moreLikeThis(request);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void moreLikeThis(MoreLikeThisRequest request, ActionListener<SearchResponse> listener) {
|
||||
client.moreLikeThis(request, listener);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MoreLikeThisRequestBuilder prepareMoreLikeThis(String index, String type, String id) {
|
||||
return client.prepareMoreLikeThis(index, type, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionFuture<TermVectorResponse> termVector(TermVectorRequest request) {
|
||||
return client.termVector(request);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void termVector(TermVectorRequest request, ActionListener<TermVectorResponse> listener) {
|
||||
client.termVector(request, listener);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TermVectorRequestBuilder prepareTermVector() {
|
||||
return client.prepareTermVector();
|
||||
}
|
||||
|
||||
@Override
|
||||
public TermVectorRequestBuilder prepareTermVector(String index, String type, String id) {
|
||||
return client.prepareTermVector(index, type, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionFuture<MultiTermVectorsResponse> multiTermVectors(MultiTermVectorsRequest request) {
|
||||
return client.multiTermVectors(request);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void multiTermVectors(MultiTermVectorsRequest request, ActionListener<MultiTermVectorsResponse> listener) {
|
||||
client.multiTermVectors(request, listener);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MultiTermVectorsRequestBuilder prepareMultiTermVectors() {
|
||||
return client.prepareMultiTermVectors();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionFuture<PercolateResponse> percolate(PercolateRequest request) {
|
||||
return client.percolate(request);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void percolate(PercolateRequest request, ActionListener<PercolateResponse> listener) {
|
||||
client.percolate(request, listener);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PercolateRequestBuilder preparePercolate() {
|
||||
return client.preparePercolate();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionFuture<MultiPercolateResponse> multiPercolate(MultiPercolateRequest request) {
|
||||
return client.multiPercolate(request);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void multiPercolate(MultiPercolateRequest request, ActionListener<MultiPercolateResponse> listener) {
|
||||
client.multiPercolate(request, listener);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MultiPercolateRequestBuilder prepareMultiPercolate() {
|
||||
return client.prepareMultiPercolate();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ExplainRequestBuilder prepareExplain(String index, String type, String id) {
|
||||
return client.prepareExplain(index, type, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionFuture<ExplainResponse> explain(ExplainRequest request) {
|
||||
return client.explain(request);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void explain(ExplainRequest request, ActionListener<ExplainResponse> listener) {
|
||||
client.explain(request, listener);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ClearScrollRequestBuilder prepareClearScroll() {
|
||||
return client.prepareClearScroll();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionFuture<ClearScrollResponse> clearScroll(ClearScrollRequest request) {
|
||||
return client.clearScroll(request);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clearScroll(ClearScrollRequest request, ActionListener<ClearScrollResponse> listener) {
|
||||
client.clearScroll(request, listener);
|
||||
}
|
||||
|
||||
@Override
|
||||
public FieldStatsRequestBuilder prepareFieldStats() {
|
||||
return client.prepareFieldStats();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionFuture<FieldStatsResponse> fieldStats(FieldStatsRequest request) {
|
||||
return client.fieldStats(request);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void fieldStats(FieldStatsRequest request, ActionListener<FieldStatsResponse> listener) {
|
||||
client.fieldStats(request, listener);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Settings settings() {
|
||||
return client.settings();
|
||||
}
|
||||
|
|
|
@ -1,30 +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.db.exbhv;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.BsBoostDocumentRuleBhv;
|
||||
|
||||
/**
|
||||
* The behavior of BOOST_DOCUMENT_RULE.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class BoostDocumentRuleBhv extends BsBoostDocumentRuleBhv {
|
||||
}
|
|
@ -1,30 +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.db.exbhv;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.BsClickLogBhv;
|
||||
|
||||
/**
|
||||
* The behavior of CLICK_LOG.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class ClickLogBhv extends BsClickLogBhv {
|
||||
}
|
|
@ -1,30 +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.db.exbhv;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.BsCrawlingSessionBhv;
|
||||
|
||||
/**
|
||||
* The behavior of CRAWLING_SESSION.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class CrawlingSessionBhv extends BsCrawlingSessionBhv {
|
||||
}
|
|
@ -1,30 +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.db.exbhv;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.BsCrawlingSessionInfoBhv;
|
||||
|
||||
/**
|
||||
* The behavior of CRAWLING_SESSION_INFO.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class CrawlingSessionInfoBhv extends BsCrawlingSessionInfoBhv {
|
||||
}
|
|
@ -1,30 +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.db.exbhv;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.BsDataConfigToLabelTypeMappingBhv;
|
||||
|
||||
/**
|
||||
* The behavior of DATA_CONFIG_TO_LABEL_TYPE_MAPPING.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class DataConfigToLabelTypeMappingBhv extends BsDataConfigToLabelTypeMappingBhv {
|
||||
}
|
|
@ -1,30 +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.db.exbhv;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.BsDataConfigToRoleTypeMappingBhv;
|
||||
|
||||
/**
|
||||
* The behavior of DATA_CONFIG_TO_ROLE_TYPE_MAPPING.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class DataConfigToRoleTypeMappingBhv extends BsDataConfigToRoleTypeMappingBhv {
|
||||
}
|
|
@ -1,30 +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.db.exbhv;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.BsDataCrawlingConfigBhv;
|
||||
|
||||
/**
|
||||
* The behavior of DATA_CRAWLING_CONFIG.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class DataCrawlingConfigBhv extends BsDataCrawlingConfigBhv {
|
||||
}
|
|
@ -1,30 +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.db.exbhv;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.BsFailureUrlBhv;
|
||||
|
||||
/**
|
||||
* The behavior of FAILURE_URL.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class FailureUrlBhv extends BsFailureUrlBhv {
|
||||
}
|
|
@ -1,30 +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.db.exbhv;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.BsFavoriteLogBhv;
|
||||
|
||||
/**
|
||||
* The behavior of FAVORITE_LOG.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class FavoriteLogBhv extends BsFavoriteLogBhv {
|
||||
}
|
|
@ -1,30 +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.db.exbhv;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.BsFileAuthenticationBhv;
|
||||
|
||||
/**
|
||||
* The behavior of FILE_AUTHENTICATION.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class FileAuthenticationBhv extends BsFileAuthenticationBhv {
|
||||
}
|
|
@ -1,30 +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.db.exbhv;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.BsFileConfigToLabelTypeMappingBhv;
|
||||
|
||||
/**
|
||||
* The behavior of FILE_CONFIG_TO_LABEL_TYPE_MAPPING.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class FileConfigToLabelTypeMappingBhv extends BsFileConfigToLabelTypeMappingBhv {
|
||||
}
|
|
@ -1,30 +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.db.exbhv;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.BsFileConfigToRoleTypeMappingBhv;
|
||||
|
||||
/**
|
||||
* The behavior of FILE_CONFIG_TO_ROLE_TYPE_MAPPING.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class FileConfigToRoleTypeMappingBhv extends BsFileConfigToRoleTypeMappingBhv {
|
||||
}
|
|
@ -1,30 +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.db.exbhv;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.BsFileCrawlingConfigBhv;
|
||||
|
||||
/**
|
||||
* The behavior of FILE_CRAWLING_CONFIG.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class FileCrawlingConfigBhv extends BsFileCrawlingConfigBhv {
|
||||
}
|
|
@ -1,30 +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.db.exbhv;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.BsJobLogBhv;
|
||||
|
||||
/**
|
||||
* The behavior of JOB_LOG.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class JobLogBhv extends BsJobLogBhv {
|
||||
}
|
|
@ -1,30 +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.db.exbhv;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.BsKeyMatchBhv;
|
||||
|
||||
/**
|
||||
* The behavior of KEY_MATCH.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class KeyMatchBhv extends BsKeyMatchBhv {
|
||||
}
|
|
@ -1,30 +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.db.exbhv;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.BsLabelTypeBhv;
|
||||
|
||||
/**
|
||||
* The behavior of LABEL_TYPE.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class LabelTypeBhv extends BsLabelTypeBhv {
|
||||
}
|
|
@ -1,30 +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.db.exbhv;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.BsLabelTypeToRoleTypeMappingBhv;
|
||||
|
||||
/**
|
||||
* The behavior of LABEL_TYPE_TO_ROLE_TYPE_MAPPING.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class LabelTypeToRoleTypeMappingBhv extends BsLabelTypeToRoleTypeMappingBhv {
|
||||
}
|
|
@ -1,30 +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.db.exbhv;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.BsOverlappingHostBhv;
|
||||
|
||||
/**
|
||||
* The behavior of OVERLAPPING_HOST.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class OverlappingHostBhv extends BsOverlappingHostBhv {
|
||||
}
|
|
@ -1,30 +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.db.exbhv;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.BsPathMappingBhv;
|
||||
|
||||
/**
|
||||
* The behavior of PATH_MAPPING.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class PathMappingBhv extends BsPathMappingBhv {
|
||||
}
|
|
@ -1,30 +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.db.exbhv;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.BsRequestHeaderBhv;
|
||||
|
||||
/**
|
||||
* The behavior of REQUEST_HEADER.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class RequestHeaderBhv extends BsRequestHeaderBhv {
|
||||
}
|
|
@ -1,30 +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.db.exbhv;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.BsRoleTypeBhv;
|
||||
|
||||
/**
|
||||
* The behavior of ROLE_TYPE.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class RoleTypeBhv extends BsRoleTypeBhv {
|
||||
}
|
|
@ -1,30 +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.db.exbhv;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.BsScheduledJobBhv;
|
||||
|
||||
/**
|
||||
* The behavior of SCHEDULED_JOB.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class ScheduledJobBhv extends BsScheduledJobBhv {
|
||||
}
|
|
@ -1,30 +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.db.exbhv;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.BsSearchFieldLogBhv;
|
||||
|
||||
/**
|
||||
* The behavior of SEARCH_FIELD_LOG.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class SearchFieldLogBhv extends BsSearchFieldLogBhv {
|
||||
}
|
|
@ -1,30 +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.db.exbhv;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.BsSearchLogBhv;
|
||||
|
||||
/**
|
||||
* The behavior of SEARCH_LOG.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class SearchLogBhv extends BsSearchLogBhv {
|
||||
}
|
|
@ -1,30 +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.db.exbhv;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.BsSuggestBadWordBhv;
|
||||
|
||||
/**
|
||||
* The behavior of SUGGEST_BAD_WORD.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class SuggestBadWordBhv extends BsSuggestBadWordBhv {
|
||||
}
|
|
@ -1,30 +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.db.exbhv;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.BsSuggestElevateWordBhv;
|
||||
|
||||
/**
|
||||
* The behavior of SUGGEST_ELEVATE_WORD.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class SuggestElevateWordBhv extends BsSuggestElevateWordBhv {
|
||||
}
|
|
@ -1,30 +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.db.exbhv;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.BsUserInfoBhv;
|
||||
|
||||
/**
|
||||
* The behavior of USER_INFO.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class UserInfoBhv extends BsUserInfoBhv {
|
||||
}
|
|
@ -1,30 +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.db.exbhv;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.BsWebAuthenticationBhv;
|
||||
|
||||
/**
|
||||
* The behavior of WEB_AUTHENTICATION.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class WebAuthenticationBhv extends BsWebAuthenticationBhv {
|
||||
}
|
|
@ -1,30 +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.db.exbhv;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.BsWebConfigToLabelTypeMappingBhv;
|
||||
|
||||
/**
|
||||
* The behavior of WEB_CONFIG_TO_LABEL_TYPE_MAPPING.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class WebConfigToLabelTypeMappingBhv extends BsWebConfigToLabelTypeMappingBhv {
|
||||
}
|
|
@ -1,30 +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.db.exbhv;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.BsWebConfigToRoleTypeMappingBhv;
|
||||
|
||||
/**
|
||||
* The behavior of WEB_CONFIG_TO_ROLE_TYPE_MAPPING.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class WebConfigToRoleTypeMappingBhv extends BsWebConfigToRoleTypeMappingBhv {
|
||||
}
|
|
@ -1,30 +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.db.exbhv;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.BsWebCrawlingConfigBhv;
|
||||
|
||||
/**
|
||||
* The behavior of WEB_CRAWLING_CONFIG.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class WebCrawlingConfigBhv extends BsWebCrawlingConfigBhv {
|
||||
}
|
|
@ -1,33 +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.db.exbhv.pmbean;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.pmbean.BsClickUrlRankingPmb;
|
||||
|
||||
/**
|
||||
* <!-- df:beginClassDescription -->
|
||||
* The typed parameter-bean of ClickUrlRanking. <span style="color: #AD4747">(typed to entity, auto-paging)</span><br />
|
||||
* This is related to "<span style="color: #AD4747">selectClickUrlRanking</span>" on ClickLogBhv. <br />
|
||||
* <!-- df:endClassDescription -->
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class ClickUrlRankingPmb extends BsClickUrlRankingPmb {
|
||||
}
|
|
@ -1,33 +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.db.exbhv.pmbean;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.pmbean.BsClientIpRankingPmb;
|
||||
|
||||
/**
|
||||
* <!-- df:beginClassDescription -->
|
||||
* The typed parameter-bean of ClientIpRanking. <span style="color: #AD4747">(typed to entity, auto-paging)</span><br />
|
||||
* This is related to "<span style="color: #AD4747">selectClientIpRanking</span>" on SearchLogBhv. <br />
|
||||
* <!-- df:endClassDescription -->
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class ClientIpRankingPmb extends BsClientIpRankingPmb {
|
||||
}
|
|
@ -1,33 +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.db.exbhv.pmbean;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.pmbean.BsFavoriteUrlCountPmb;
|
||||
|
||||
/**
|
||||
* <!-- df:beginClassDescription -->
|
||||
* The typed parameter-bean of FavoriteUrlCount. <span style="color: #AD4747">(typed to entity, auto-paging)</span><br />
|
||||
* This is related to "<span style="color: #AD4747">selectFavoriteUrlCount</span>" on FavoriteLogBhv. <br />
|
||||
* <!-- df:endClassDescription -->
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class FavoriteUrlCountPmb extends BsFavoriteUrlCountPmb {
|
||||
}
|
|
@ -1,33 +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.db.exbhv.pmbean;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.pmbean.BsFavoriteUrlRankingPmb;
|
||||
|
||||
/**
|
||||
* <!-- df:beginClassDescription -->
|
||||
* The typed parameter-bean of FavoriteUrlRanking. <span style="color: #AD4747">(typed to entity, auto-paging)</span><br />
|
||||
* This is related to "<span style="color: #AD4747">selectFavoriteUrlRanking</span>" on FavoriteLogBhv. <br />
|
||||
* <!-- df:endClassDescription -->
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class FavoriteUrlRankingPmb extends BsFavoriteUrlRankingPmb {
|
||||
}
|
|
@ -1,33 +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.db.exbhv.pmbean;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.pmbean.BsGroupedFieldNamePmb;
|
||||
|
||||
/**
|
||||
* <!-- df:beginClassDescription -->
|
||||
* The typed parameter-bean of GroupedFieldName. <span style="color: #AD4747">(typed to entity, auto-paging)</span><br />
|
||||
* This is related to "<span style="color: #AD4747">selectGroupedFieldName</span>" on SearchFieldLogBhv. <br />
|
||||
* <!-- df:endClassDescription -->
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class GroupedFieldNamePmb extends BsGroupedFieldNamePmb {
|
||||
}
|
|
@ -1,33 +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.db.exbhv.pmbean;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.pmbean.BsHotSearchWordPmb;
|
||||
|
||||
/**
|
||||
* <!-- df:beginClassDescription -->
|
||||
* The typed parameter-bean of HotSearchWord. <span style="color: #AD4747">(typed to entity, auto-paging)</span><br />
|
||||
* This is related to "<span style="color: #AD4747">selectHotSearchWord</span>" on SearchLogBhv. <br />
|
||||
* <!-- df:endClassDescription -->
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class HotSearchWordPmb extends BsHotSearchWordPmb {
|
||||
}
|
|
@ -1,33 +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.db.exbhv.pmbean;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.pmbean.BsRefererRankingPmb;
|
||||
|
||||
/**
|
||||
* <!-- df:beginClassDescription -->
|
||||
* The typed parameter-bean of RefererRanking. <span style="color: #AD4747">(typed to entity, auto-paging)</span><br />
|
||||
* This is related to "<span style="color: #AD4747">selectRefererRanking</span>" on SearchLogBhv. <br />
|
||||
* <!-- df:endClassDescription -->
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class RefererRankingPmb extends BsRefererRankingPmb {
|
||||
}
|
|
@ -1,33 +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.db.exbhv.pmbean;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.pmbean.BsSearchFieldRankingPmb;
|
||||
|
||||
/**
|
||||
* <!-- df:beginClassDescription -->
|
||||
* The typed parameter-bean of SearchFieldRanking. <span style="color: #AD4747">(typed to entity, auto-paging)</span><br />
|
||||
* This is related to "<span style="color: #AD4747">selectSearchFieldRanking</span>" on SearchLogBhv. <br />
|
||||
* <!-- df:endClassDescription -->
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class SearchFieldRankingPmb extends BsSearchFieldRankingPmb {
|
||||
}
|
|
@ -1,33 +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.db.exbhv.pmbean;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.pmbean.BsSearchQueryRankingPmb;
|
||||
|
||||
/**
|
||||
* <!-- df:beginClassDescription -->
|
||||
* The typed parameter-bean of SearchQueryRanking. <span style="color: #AD4747">(typed to entity, auto-paging)</span><br />
|
||||
* This is related to "<span style="color: #AD4747">selectSearchQueryRanking</span>" on SearchLogBhv. <br />
|
||||
* <!-- df:endClassDescription -->
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class SearchQueryRankingPmb extends BsSearchQueryRankingPmb {
|
||||
}
|
|
@ -1,33 +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.db.exbhv.pmbean;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.pmbean.BsSearchWordRankingPmb;
|
||||
|
||||
/**
|
||||
* <!-- df:beginClassDescription -->
|
||||
* The typed parameter-bean of SearchWordRanking. <span style="color: #AD4747">(typed to entity, auto-paging)</span><br />
|
||||
* This is related to "<span style="color: #AD4747">selectSearchWordRanking</span>" on SearchLogBhv. <br />
|
||||
* <!-- df:endClassDescription -->
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class SearchWordRankingPmb extends BsSearchWordRankingPmb {
|
||||
}
|
|
@ -1,33 +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.db.exbhv.pmbean;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.pmbean.BsSolrQueryRankingPmb;
|
||||
|
||||
/**
|
||||
* <!-- df:beginClassDescription -->
|
||||
* The typed parameter-bean of SolrQueryRanking. <span style="color: #AD4747">(typed to entity, auto-paging)</span><br />
|
||||
* This is related to "<span style="color: #AD4747">selectSolrQueryRanking</span>" on SearchLogBhv. <br />
|
||||
* <!-- df:endClassDescription -->
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class SolrQueryRankingPmb extends BsSolrQueryRankingPmb {
|
||||
}
|
|
@ -1,33 +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.db.exbhv.pmbean;
|
||||
|
||||
import org.codelibs.fess.db.bsbhv.pmbean.BsUserAgentRankingPmb;
|
||||
|
||||
/**
|
||||
* <!-- df:beginClassDescription -->
|
||||
* The typed parameter-bean of UserAgentRanking. <span style="color: #AD4747">(typed to entity, auto-paging)</span><br />
|
||||
* This is related to "<span style="color: #AD4747">selectUserAgentRanking</span>" on SearchLogBhv. <br />
|
||||
* <!-- df:endClassDescription -->
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class UserAgentRankingPmb extends BsUserAgentRankingPmb {
|
||||
}
|
|
@ -1,33 +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.db.exentity;
|
||||
|
||||
import org.codelibs.fess.db.bsentity.BsBoostDocumentRule;
|
||||
|
||||
/**
|
||||
* The entity of BOOST_DOCUMENT_RULE.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class BoostDocumentRule extends BsBoostDocumentRule {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
|
@ -1,92 +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.db.exentity;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import org.codelibs.fess.Constants;
|
||||
import org.codelibs.fess.db.bsentity.BsClickLog;
|
||||
|
||||
/**
|
||||
* The entity of CLICK_LOG.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class ClickLog extends BsClickLog {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private LocalDateTime queryRequestedTime;
|
||||
|
||||
private String userSessionId;
|
||||
|
||||
private String docId;
|
||||
|
||||
private long clickCount;
|
||||
|
||||
public String getUserSessionId() {
|
||||
return userSessionId;
|
||||
}
|
||||
|
||||
public void setUserSessionId(final String userSessionId) {
|
||||
this.userSessionId = userSessionId;
|
||||
}
|
||||
|
||||
public LocalDateTime getQueryRequestedTime() {
|
||||
return queryRequestedTime;
|
||||
}
|
||||
|
||||
public void setQueryRequestedTime(final LocalDateTime queryRequestedTime) {
|
||||
this.queryRequestedTime = queryRequestedTime;
|
||||
}
|
||||
|
||||
public String getRequestedTimeForList() {
|
||||
final SimpleDateFormat sdf = new SimpleDateFormat(Constants.DEFAULT_DATETIME_FORMAT);
|
||||
if (getRequestedTime() != null) {
|
||||
return sdf.format(getRequestedTime());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public String getDocId() {
|
||||
return docId;
|
||||
}
|
||||
|
||||
public void setDocId(final String docId) {
|
||||
this.docId = docId;
|
||||
}
|
||||
|
||||
public long getClickCount() {
|
||||
return clickCount;
|
||||
}
|
||||
|
||||
public void setClickCount(final long clickCount) {
|
||||
this.clickCount = clickCount;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "ClickLog [queryRequestedTime=" + queryRequestedTime + ", userSessionId=" + userSessionId + ", docId=" + docId
|
||||
+ ", clickCount=" + clickCount + ", _id=" + _id + ", _searchId=" + _searchId + ", _url=" + _url + ", _requestedTime="
|
||||
+ _requestedTime + "]";
|
||||
}
|
||||
}
|
|
@ -1,40 +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.db.exentity;
|
||||
|
||||
import org.codelibs.fess.db.bsentity.BsCrawlingSession;
|
||||
|
||||
/**
|
||||
* The entity of CRAWLING_SESSION.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class CrawlingSession extends BsCrawlingSession {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public CrawlingSession() {
|
||||
}
|
||||
|
||||
public CrawlingSession(final String sessionId) {
|
||||
setSessionId(sessionId);
|
||||
}
|
||||
}
|
|
@ -1,49 +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.db.exentity;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
import org.codelibs.fess.db.bsentity.BsCrawlingSessionInfo;
|
||||
import org.seasar.struts.util.MessageResourcesUtil;
|
||||
import org.seasar.struts.util.RequestUtil;
|
||||
|
||||
/**
|
||||
* The entity of CRAWLING_SESSION_INFO.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class CrawlingSessionInfo extends BsCrawlingSessionInfo {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
// MySQL: public String getKey() {return super.getIdKey();}
|
||||
// MySQL: public void setKey(String key) {super.setIdKey(key);}
|
||||
|
||||
public String getKeyMsg() {
|
||||
final Locale locale = RequestUtil.getRequest().getLocale();
|
||||
final String message = MessageResourcesUtil.getMessage(locale, "labels.crawling_session_" + getKey());
|
||||
if (message == null || message.startsWith("???")) {
|
||||
return getKey();
|
||||
}
|
||||
return message;
|
||||
}
|
||||
}
|
|
@ -1,33 +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.db.exentity;
|
||||
|
||||
import org.codelibs.fess.db.bsentity.BsDataConfigToLabelTypeMapping;
|
||||
|
||||
/**
|
||||
* The entity of DATA_CONFIG_TO_LABEL_TYPE_MAPPING.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class DataConfigToLabelTypeMapping extends BsDataConfigToLabelTypeMapping {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
|
@ -1,33 +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.db.exentity;
|
||||
|
||||
import org.codelibs.fess.db.bsentity.BsDataConfigToRoleTypeMapping;
|
||||
|
||||
/**
|
||||
* The entity of DATA_CONFIG_TO_ROLE_TYPE_MAPPING.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class DataConfigToRoleTypeMapping extends BsDataConfigToRoleTypeMapping {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
|
@ -1,336 +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.db.exentity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import org.apache.http.auth.AuthScheme;
|
||||
import org.apache.http.auth.AuthScope;
|
||||
import org.apache.http.auth.Credentials;
|
||||
import org.apache.http.auth.NTCredentials;
|
||||
import org.apache.http.auth.UsernamePasswordCredentials;
|
||||
import org.apache.http.impl.auth.BasicScheme;
|
||||
import org.apache.http.impl.auth.DigestScheme;
|
||||
import org.apache.http.impl.auth.NTLMScheme;
|
||||
import org.codelibs.core.lang.StringUtil;
|
||||
import org.codelibs.fess.Constants;
|
||||
import org.codelibs.fess.db.bsentity.BsDataCrawlingConfig;
|
||||
import org.codelibs.fess.util.ParameterUtil;
|
||||
import org.codelibs.robot.client.S2RobotClientFactory;
|
||||
import org.codelibs.robot.client.http.Authentication;
|
||||
import org.codelibs.robot.client.http.HcHttpClient;
|
||||
import org.codelibs.robot.client.http.impl.AuthenticationImpl;
|
||||
import org.codelibs.robot.client.http.ntlm.JcifsEngine;
|
||||
import org.codelibs.robot.client.smb.SmbAuthentication;
|
||||
import org.codelibs.robot.client.smb.SmbClient;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* The entity of DATA_CRAWLING_CONFIG.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class DataCrawlingConfig extends BsDataCrawlingConfig implements CrawlingConfig {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(DataCrawlingConfig.class);
|
||||
|
||||
private static final String S2ROBOT_WEB_HEADER_PREFIX = "s2robot.web.header.";
|
||||
|
||||
private static final String S2ROBOT_WEB_AUTH = "s2robot.web.auth";
|
||||
|
||||
private static final String S2ROBOT_USERAGENT = "s2robot.useragent";
|
||||
|
||||
private static final String S2ROBOT_PARAM_PREFIX = "s2robot.param.";
|
||||
|
||||
private static final Object S2ROBOT_FILE_AUTH = "s2robot.file.auth";
|
||||
|
||||
private String[] labelTypeIds;
|
||||
|
||||
private String[] roleTypeIds;
|
||||
|
||||
protected Pattern[] includedDocPathPatterns;
|
||||
|
||||
protected Pattern[] excludedDocPathPatterns;
|
||||
|
||||
private Map<String, String> handlerParameterMap;
|
||||
|
||||
private Map<String, String> handlerScriptMap;
|
||||
|
||||
public DataCrawlingConfig() {
|
||||
super();
|
||||
setBoost(BigDecimal.ONE);
|
||||
}
|
||||
|
||||
public String[] getLabelTypeIds() {
|
||||
if (labelTypeIds == null) {
|
||||
return StringUtil.EMPTY_STRINGS;
|
||||
}
|
||||
return labelTypeIds;
|
||||
}
|
||||
|
||||
public void setLabelTypeIds(final String[] labelTypeIds) {
|
||||
this.labelTypeIds = labelTypeIds;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getLabelTypeValues() {
|
||||
final List<String> values = new ArrayList<String>();
|
||||
final List<DataConfigToLabelTypeMapping> list = getDataConfigToLabelTypeMappingList();
|
||||
if (list != null && !list.isEmpty()) {
|
||||
for (final DataConfigToLabelTypeMapping mapping : list) {
|
||||
mapping.getLabelType().ifPresent(entity -> {
|
||||
values.add(entity.getValue());
|
||||
});
|
||||
}
|
||||
}
|
||||
return values.toArray(new String[values.size()]);
|
||||
}
|
||||
|
||||
public String[] getRoleTypeIds() {
|
||||
if (roleTypeIds == null) {
|
||||
return StringUtil.EMPTY_STRINGS;
|
||||
}
|
||||
return roleTypeIds;
|
||||
}
|
||||
|
||||
public void setRoleTypeIds(final String[] roleTypeIds) {
|
||||
this.roleTypeIds = roleTypeIds;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getRoleTypeValues() {
|
||||
final List<String> values = new ArrayList<String>();
|
||||
final List<DataConfigToRoleTypeMapping> list = getDataConfigToRoleTypeMappingList();
|
||||
if (list != null && !list.isEmpty()) {
|
||||
for (final DataConfigToRoleTypeMapping mapping : list) {
|
||||
mapping.getRoleType().ifPresent(entity -> {
|
||||
values.add(entity.getValue());
|
||||
});
|
||||
}
|
||||
}
|
||||
return values.toArray(new String[values.size()]);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDocumentBoost() {
|
||||
return Float.valueOf(getBoost().floatValue()).toString();
|
||||
}
|
||||
|
||||
public String getBoostValue() {
|
||||
if (_boost != null) {
|
||||
return Integer.toString(_boost.intValue());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setBoostValue(final String value) {
|
||||
if (value != null) {
|
||||
try {
|
||||
_boost = new BigDecimal(value);
|
||||
} catch (final Exception e) {}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getIndexingTarget(final String input) {
|
||||
// always return true
|
||||
return Constants.TRUE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getConfigId() {
|
||||
return ConfigType.DATA.getConfigId(getId());
|
||||
}
|
||||
|
||||
public Map<String, String> getHandlerParameterMap() {
|
||||
if (handlerParameterMap == null) {
|
||||
handlerParameterMap = ParameterUtil.parse(getHandlerParameter());
|
||||
}
|
||||
return handlerParameterMap;
|
||||
}
|
||||
|
||||
public Map<String, String> getHandlerScriptMap() {
|
||||
if (handlerScriptMap == null) {
|
||||
handlerScriptMap = ParameterUtil.parse(getHandlerScript());
|
||||
}
|
||||
return handlerScriptMap;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initializeClientFactory(final S2RobotClientFactory robotClientFactory) {
|
||||
final Map<String, String> paramMap = getHandlerParameterMap();
|
||||
|
||||
final Map<String, Object> factoryParamMap = new HashMap<String, Object>();
|
||||
robotClientFactory.setInitParameterMap(factoryParamMap);
|
||||
|
||||
// parameters
|
||||
for (final Map.Entry<String, String> entry : paramMap.entrySet()) {
|
||||
final String key = entry.getKey();
|
||||
if (key.startsWith(S2ROBOT_PARAM_PREFIX)) {
|
||||
factoryParamMap.put(key.substring(S2ROBOT_PARAM_PREFIX.length()), entry.getValue());
|
||||
}
|
||||
}
|
||||
|
||||
// user agent
|
||||
final String userAgent = paramMap.get(S2ROBOT_USERAGENT);
|
||||
if (StringUtil.isNotBlank(userAgent)) {
|
||||
factoryParamMap.put(HcHttpClient.USER_AGENT_PROPERTY, userAgent);
|
||||
}
|
||||
|
||||
// web auth
|
||||
final String webAuthStr = paramMap.get(S2ROBOT_WEB_AUTH);
|
||||
if (StringUtil.isNotBlank(webAuthStr)) {
|
||||
final String[] webAuthNames = webAuthStr.split(",");
|
||||
final List<Authentication> basicAuthList = new ArrayList<Authentication>();
|
||||
for (final String webAuthName : webAuthNames) {
|
||||
final String scheme = paramMap.get(S2ROBOT_WEB_AUTH + "." + webAuthName + ".scheme");
|
||||
final String hostname = paramMap.get(S2ROBOT_WEB_AUTH + "." + webAuthName + ".host");
|
||||
final String port = paramMap.get(S2ROBOT_WEB_AUTH + "." + webAuthName + ".port");
|
||||
final String realm = paramMap.get(S2ROBOT_WEB_AUTH + "." + webAuthName + ".realm");
|
||||
final String username = paramMap.get(S2ROBOT_WEB_AUTH + "." + webAuthName + ".username");
|
||||
final String password = paramMap.get(S2ROBOT_WEB_AUTH + "." + webAuthName + ".password");
|
||||
|
||||
if (StringUtil.isEmpty(username)) {
|
||||
logger.warn("username is empty. webAuth:" + webAuthName);
|
||||
continue;
|
||||
}
|
||||
|
||||
AuthScheme authScheme = null;
|
||||
if (Constants.BASIC.equals(scheme)) {
|
||||
authScheme = new BasicScheme();
|
||||
} else if (Constants.DIGEST.equals(scheme)) {
|
||||
authScheme = new DigestScheme();
|
||||
} else if (Constants.NTLM.equals(scheme)) {
|
||||
authScheme = new NTLMScheme(new JcifsEngine());
|
||||
}
|
||||
|
||||
AuthScope authScope;
|
||||
if (StringUtil.isBlank(hostname)) {
|
||||
authScope = AuthScope.ANY;
|
||||
} else {
|
||||
int p = AuthScope.ANY_PORT;
|
||||
if (StringUtil.isNotBlank(port)) {
|
||||
try {
|
||||
p = Integer.parseInt(port);
|
||||
} catch (final NumberFormatException e) {
|
||||
logger.warn("Failed to parse " + port, e);
|
||||
}
|
||||
}
|
||||
|
||||
String r = realm;
|
||||
if (StringUtil.isBlank(realm)) {
|
||||
r = AuthScope.ANY_REALM;
|
||||
}
|
||||
|
||||
String s = scheme;
|
||||
if (StringUtil.isBlank(scheme) || Constants.NTLM.equals(scheme)) {
|
||||
s = AuthScope.ANY_SCHEME;
|
||||
}
|
||||
authScope = new AuthScope(hostname, p, r, s);
|
||||
}
|
||||
|
||||
Credentials credentials;
|
||||
if (Constants.NTLM.equals(scheme)) {
|
||||
final String workstation = paramMap.get(S2ROBOT_WEB_AUTH + "." + webAuthName + ".workstation");
|
||||
final String domain = paramMap.get(S2ROBOT_WEB_AUTH + "." + webAuthName + ".domain");
|
||||
credentials =
|
||||
new NTCredentials(username, password == null ? StringUtil.EMPTY : password,
|
||||
workstation == null ? StringUtil.EMPTY : workstation, domain == null ? StringUtil.EMPTY : domain);
|
||||
} else {
|
||||
credentials = new UsernamePasswordCredentials(username, password == null ? StringUtil.EMPTY : password);
|
||||
}
|
||||
|
||||
basicAuthList.add(new AuthenticationImpl(authScope, credentials, authScheme));
|
||||
}
|
||||
factoryParamMap.put(HcHttpClient.BASIC_AUTHENTICATIONS_PROPERTY,
|
||||
basicAuthList.toArray(new Authentication[basicAuthList.size()]));
|
||||
}
|
||||
|
||||
// request header
|
||||
final List<org.codelibs.robot.client.http.RequestHeader> rhList = new ArrayList<org.codelibs.robot.client.http.RequestHeader>();
|
||||
int count = 1;
|
||||
String headerName = paramMap.get(S2ROBOT_WEB_HEADER_PREFIX + count + ".name");
|
||||
while (StringUtil.isNotBlank(headerName)) {
|
||||
final String headerValue = paramMap.get(S2ROBOT_WEB_HEADER_PREFIX + count + ".value");
|
||||
rhList.add(new org.codelibs.robot.client.http.RequestHeader(headerName, headerValue));
|
||||
count++;
|
||||
headerName = paramMap.get(S2ROBOT_WEB_HEADER_PREFIX + count + ".name");
|
||||
}
|
||||
if (!rhList.isEmpty()) {
|
||||
factoryParamMap.put(HcHttpClient.REQUERT_HEADERS_PROPERTY,
|
||||
rhList.toArray(new org.codelibs.robot.client.http.RequestHeader[rhList.size()]));
|
||||
}
|
||||
|
||||
// file auth
|
||||
final String fileAuthStr = paramMap.get(S2ROBOT_FILE_AUTH);
|
||||
if (StringUtil.isNotBlank(fileAuthStr)) {
|
||||
final String[] fileAuthNames = fileAuthStr.split(",");
|
||||
final List<SmbAuthentication> smbAuthList = new ArrayList<SmbAuthentication>();
|
||||
for (final String fileAuthName : fileAuthNames) {
|
||||
final String scheme = paramMap.get(S2ROBOT_FILE_AUTH + "." + fileAuthName + ".scheme");
|
||||
if (Constants.SAMBA.equals(scheme)) {
|
||||
final String domain = paramMap.get(S2ROBOT_FILE_AUTH + "." + fileAuthName + ".domain");
|
||||
final String hostname = paramMap.get(S2ROBOT_FILE_AUTH + "." + fileAuthName + ".host");
|
||||
final String port = paramMap.get(S2ROBOT_FILE_AUTH + "." + fileAuthName + ".port");
|
||||
final String username = paramMap.get(S2ROBOT_FILE_AUTH + "." + fileAuthName + ".username");
|
||||
final String password = paramMap.get(S2ROBOT_FILE_AUTH + "." + fileAuthName + ".password");
|
||||
|
||||
if (StringUtil.isEmpty(username)) {
|
||||
logger.warn("username is empty. fileAuth:" + fileAuthName);
|
||||
continue;
|
||||
}
|
||||
|
||||
final SmbAuthentication smbAuth = new SmbAuthentication();
|
||||
smbAuth.setDomain(domain == null ? StringUtil.EMPTY : domain);
|
||||
smbAuth.setServer(hostname);
|
||||
if (StringUtil.isNotBlank(port)) {
|
||||
try {
|
||||
smbAuth.setPort(Integer.parseInt(port));
|
||||
} catch (final NumberFormatException e) {
|
||||
logger.warn("Failed to parse " + port, e);
|
||||
}
|
||||
}
|
||||
smbAuth.setUsername(username);
|
||||
smbAuth.setPassword(password == null ? StringUtil.EMPTY : password);
|
||||
smbAuthList.add(smbAuth);
|
||||
}
|
||||
}
|
||||
if (!smbAuthList.isEmpty()) {
|
||||
factoryParamMap.put(SmbClient.SMB_AUTHENTICATIONS_PROPERTY, smbAuthList.toArray(new SmbAuthentication[smbAuthList.size()]));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, String> getConfigParameterMap(final ConfigName name) {
|
||||
return Collections.emptyMap();
|
||||
}
|
||||
}
|
|
@ -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.db.exentity;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
|
||||
import org.codelibs.core.lang.StringUtil;
|
||||
import org.codelibs.fess.Constants;
|
||||
import org.codelibs.fess.db.bsentity.BsFailureUrl;
|
||||
import org.codelibs.fess.util.ComponentUtil;
|
||||
|
||||
/**
|
||||
* The entity of FAILURE_URL.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class FailureUrl extends BsFailureUrl {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public String getLastAccessTimeForList() {
|
||||
final SimpleDateFormat sdf = new SimpleDateFormat(Constants.DEFAULT_DATETIME_FORMAT);
|
||||
if (getLastAccessTime() != null) {
|
||||
return sdf.format(getLastAccessTime());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public String getWebConfigName() {
|
||||
final CrawlingConfig crawlingConfig = ComponentUtil.getCrawlingConfigHelper().getCrawlingConfig(getConfigId());
|
||||
if (crawlingConfig != null) {
|
||||
return crawlingConfig.getName();
|
||||
}
|
||||
return StringUtil.EMPTY;
|
||||
}
|
||||
|
||||
public String getFileConfigName() {
|
||||
final CrawlingConfig crawlingConfig = ComponentUtil.getCrawlingConfigHelper().getCrawlingConfig(getConfigId());
|
||||
if (crawlingConfig != null) {
|
||||
return crawlingConfig.getName();
|
||||
}
|
||||
return StringUtil.EMPTY;
|
||||
}
|
||||
|
||||
public String getDataConfigName() {
|
||||
final CrawlingConfig crawlingConfig = ComponentUtil.getCrawlingConfigHelper().getCrawlingConfig(getConfigId());
|
||||
if (crawlingConfig != null) {
|
||||
return crawlingConfig.getName();
|
||||
}
|
||||
return StringUtil.EMPTY;
|
||||
}
|
||||
}
|
|
@ -1,33 +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.db.exentity;
|
||||
|
||||
import org.codelibs.fess.db.bsentity.BsFavoriteLog;
|
||||
|
||||
/**
|
||||
* The entity of FAVORITE_LOG.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class FavoriteLog extends BsFavoriteLog {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
|
@ -1,33 +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.db.exentity;
|
||||
|
||||
import org.codelibs.fess.db.bsentity.BsFileAuthentication;
|
||||
|
||||
/**
|
||||
* The entity of FILE_AUTHENTICATION.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class FileAuthentication extends BsFileAuthentication {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
|
@ -1,33 +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.db.exentity;
|
||||
|
||||
import org.codelibs.fess.db.bsentity.BsFileConfigToLabelTypeMapping;
|
||||
|
||||
/**
|
||||
* The entity of FILE_CONFIG_TO_LABEL_TYPE_MAPPING.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class FileConfigToLabelTypeMapping extends BsFileConfigToLabelTypeMapping {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
|
@ -1,33 +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.db.exentity;
|
||||
|
||||
import org.codelibs.fess.db.bsentity.BsFileConfigToRoleTypeMapping;
|
||||
|
||||
/**
|
||||
* The entity of FILE_CONFIG_TO_ROLE_TYPE_MAPPING.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class FileConfigToRoleTypeMapping extends BsFileConfigToRoleTypeMapping {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
|
@ -1,249 +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.db.exentity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import org.codelibs.core.lang.StringUtil;
|
||||
import org.codelibs.fess.Constants;
|
||||
import org.codelibs.fess.db.bsentity.BsFileCrawlingConfig;
|
||||
import org.codelibs.fess.helper.SystemHelper;
|
||||
import org.codelibs.fess.service.FileAuthenticationService;
|
||||
import org.codelibs.fess.util.ComponentUtil;
|
||||
import org.codelibs.fess.util.ParameterUtil;
|
||||
import org.codelibs.robot.client.S2RobotClientFactory;
|
||||
import org.codelibs.robot.client.smb.SmbAuthentication;
|
||||
import org.codelibs.robot.client.smb.SmbClient;
|
||||
import org.seasar.framework.container.SingletonS2Container;
|
||||
|
||||
/**
|
||||
* The entity of FILE_CRAWLING_CONFIG.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class FileCrawlingConfig extends BsFileCrawlingConfig implements CrawlingConfig {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private String[] labelTypeIds;
|
||||
|
||||
private String[] roleTypeIds;
|
||||
|
||||
protected volatile Pattern[] includedDocPathPatterns;
|
||||
|
||||
protected volatile Pattern[] excludedDocPathPatterns;
|
||||
|
||||
protected volatile Map<ConfigName, Map<String, String>> configParameterMap;
|
||||
|
||||
public FileCrawlingConfig() {
|
||||
super();
|
||||
setBoost(BigDecimal.ONE);
|
||||
}
|
||||
|
||||
public String[] getLabelTypeIds() {
|
||||
if (labelTypeIds == null) {
|
||||
return StringUtil.EMPTY_STRINGS;
|
||||
}
|
||||
return labelTypeIds;
|
||||
}
|
||||
|
||||
public void setLabelTypeIds(final String[] labelTypeIds) {
|
||||
this.labelTypeIds = labelTypeIds;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getLabelTypeValues() {
|
||||
final List<String> values = new ArrayList<String>();
|
||||
final List<FileConfigToLabelTypeMapping> list = getFileConfigToLabelTypeMappingList();
|
||||
if (list != null && !list.isEmpty()) {
|
||||
for (final FileConfigToLabelTypeMapping mapping : list) {
|
||||
mapping.getLabelType().ifPresent(entity -> {
|
||||
values.add(entity.getValue());
|
||||
});
|
||||
}
|
||||
}
|
||||
return values.toArray(new String[values.size()]);
|
||||
}
|
||||
|
||||
public String[] getRoleTypeIds() {
|
||||
if (roleTypeIds == null) {
|
||||
return StringUtil.EMPTY_STRINGS;
|
||||
}
|
||||
return roleTypeIds;
|
||||
}
|
||||
|
||||
public void setRoleTypeIds(final String[] roleTypeIds) {
|
||||
this.roleTypeIds = roleTypeIds;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getRoleTypeValues() {
|
||||
final List<String> values = new ArrayList<String>();
|
||||
final List<FileConfigToRoleTypeMapping> list = getFileConfigToRoleTypeMappingList();
|
||||
if (list != null && !list.isEmpty()) {
|
||||
for (final FileConfigToRoleTypeMapping mapping : list) {
|
||||
mapping.getRoleType().ifPresent(entity -> {
|
||||
values.add(entity.getValue());
|
||||
});
|
||||
}
|
||||
}
|
||||
return values.toArray(new String[values.size()]);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDocumentBoost() {
|
||||
return Float.valueOf(getBoost().floatValue()).toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getIndexingTarget(final String input) {
|
||||
if (includedDocPathPatterns == null || excludedDocPathPatterns == null) {
|
||||
initDocPathPattern();
|
||||
}
|
||||
|
||||
if (includedDocPathPatterns.length == 0 && excludedDocPathPatterns.length == 0) {
|
||||
return Constants.TRUE;
|
||||
}
|
||||
|
||||
for (final Pattern pattern : includedDocPathPatterns) {
|
||||
if (pattern.matcher(input).matches()) {
|
||||
return Constants.TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
for (final Pattern pattern : excludedDocPathPatterns) {
|
||||
if (pattern.matcher(input).matches()) {
|
||||
return Constants.FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
return Constants.TRUE;
|
||||
|
||||
}
|
||||
|
||||
protected synchronized void initDocPathPattern() {
|
||||
final SystemHelper systemHelper = ComponentUtil.getSystemHelper();
|
||||
|
||||
if (includedDocPathPatterns == null) {
|
||||
if (StringUtil.isNotBlank(getIncludedDocPaths())) {
|
||||
final List<Pattern> pathPatterList = new ArrayList<Pattern>();
|
||||
final String[] paths = getIncludedDocPaths().split("[\r\n]");
|
||||
for (final String u : paths) {
|
||||
if (StringUtil.isNotBlank(u) && !u.trim().startsWith("#")) {
|
||||
pathPatterList.add(Pattern.compile(systemHelper.encodeUrlFilter(u.trim())));
|
||||
}
|
||||
}
|
||||
includedDocPathPatterns = pathPatterList.toArray(new Pattern[pathPatterList.size()]);
|
||||
} else {
|
||||
includedDocPathPatterns = new Pattern[0];
|
||||
}
|
||||
}
|
||||
|
||||
if (excludedDocPathPatterns == null) {
|
||||
if (StringUtil.isNotBlank(getExcludedDocPaths())) {
|
||||
final List<Pattern> pathPatterList = new ArrayList<Pattern>();
|
||||
final String[] paths = getExcludedDocPaths().split("[\r\n]");
|
||||
for (final String u : paths) {
|
||||
if (StringUtil.isNotBlank(u) && !u.trim().startsWith("#")) {
|
||||
pathPatterList.add(Pattern.compile(systemHelper.encodeUrlFilter(u.trim())));
|
||||
}
|
||||
}
|
||||
excludedDocPathPatterns = pathPatterList.toArray(new Pattern[pathPatterList.size()]);
|
||||
} else if (includedDocPathPatterns.length > 0) {
|
||||
excludedDocPathPatterns = new Pattern[] { Pattern.compile(".*") };
|
||||
} else {
|
||||
excludedDocPathPatterns = new Pattern[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public String getBoostValue() {
|
||||
if (_boost != null) {
|
||||
return Integer.toString(_boost.intValue());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setBoostValue(final String value) {
|
||||
if (value != null) {
|
||||
try {
|
||||
_boost = new BigDecimal(value);
|
||||
} catch (final Exception e) {}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getConfigId() {
|
||||
return ConfigType.FILE.getConfigId(getId());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initializeClientFactory(final S2RobotClientFactory clientFactory) {
|
||||
final FileAuthenticationService fileAuthenticationService = SingletonS2Container.getComponent(FileAuthenticationService.class);
|
||||
|
||||
// Parameters
|
||||
final Map<String, Object> paramMap = new HashMap<String, Object>();
|
||||
clientFactory.setInitParameterMap(paramMap);
|
||||
|
||||
final Map<String, String> clientConfigMap = getConfigParameterMap(ConfigName.CLIENT);
|
||||
if (clientConfigMap != null) {
|
||||
paramMap.putAll(clientConfigMap);
|
||||
}
|
||||
|
||||
// auth params
|
||||
final List<FileAuthentication> fileAuthList = fileAuthenticationService.getFileAuthenticationList(getId());
|
||||
final List<SmbAuthentication> smbAuthList = new ArrayList<SmbAuthentication>();
|
||||
for (final FileAuthentication fileAuth : fileAuthList) {
|
||||
if (Constants.SAMBA.equals(fileAuth.getProtocolScheme())) {
|
||||
final SmbAuthentication smbAuth = new SmbAuthentication();
|
||||
final Map<String, String> map = ParameterUtil.parse(fileAuth.getParameters());
|
||||
final String domain = map.get("domain");
|
||||
smbAuth.setDomain(domain == null ? StringUtil.EMPTY : domain);
|
||||
smbAuth.setServer(fileAuth.getHostname());
|
||||
smbAuth.setPort(fileAuth.getPort());
|
||||
smbAuth.setUsername(fileAuth.getUsername());
|
||||
smbAuth.setPassword(fileAuth.getPassword());
|
||||
smbAuthList.add(smbAuth);
|
||||
}
|
||||
}
|
||||
paramMap.put(SmbClient.SMB_AUTHENTICATIONS_PROPERTY, smbAuthList.toArray(new SmbAuthentication[smbAuthList.size()]));
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, String> getConfigParameterMap(final ConfigName name) {
|
||||
if (configParameterMap == null) {
|
||||
configParameterMap = ParameterUtil.createConfigParameterMap(getConfigParameter());
|
||||
}
|
||||
|
||||
final Map<String, String> configMap = configParameterMap.get(name);
|
||||
if (configMap == null) {
|
||||
return Collections.emptyMap();
|
||||
}
|
||||
return configMap;
|
||||
}
|
||||
}
|
|
@ -1,54 +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.db.exentity;
|
||||
|
||||
import org.codelibs.fess.Constants;
|
||||
import org.codelibs.fess.db.bsentity.BsJobLog;
|
||||
import org.codelibs.fess.util.ComponentUtil;
|
||||
|
||||
/**
|
||||
* The entity of JOB_LOG.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class JobLog extends BsJobLog {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private ScheduledJob scheduledJob;
|
||||
|
||||
public JobLog() {
|
||||
}
|
||||
|
||||
public JobLog(final ScheduledJob scheduledJob) {
|
||||
this.scheduledJob = scheduledJob;
|
||||
setJobName(scheduledJob.getName());
|
||||
setScriptType(scheduledJob.getScriptType());
|
||||
setScriptData(scheduledJob.getScriptData());
|
||||
setTarget(scheduledJob.getTarget());
|
||||
setStartTime(ComponentUtil.getSystemHelper().getCurrentTime());
|
||||
setJobStatus(Constants.RUNNING);
|
||||
}
|
||||
|
||||
public ScheduledJob getScheduledJob() {
|
||||
return scheduledJob;
|
||||
}
|
||||
}
|
|
@ -1,55 +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.db.exentity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import org.codelibs.fess.db.bsentity.BsKeyMatch;
|
||||
|
||||
/**
|
||||
* The entity of KEY_MATCH.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class KeyMatch extends BsKeyMatch {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public KeyMatch() {
|
||||
super();
|
||||
setBoost(BigDecimal.ONE);
|
||||
}
|
||||
|
||||
public String getBoostValue() {
|
||||
if (_boost != null) {
|
||||
return Integer.toString(_boost.intValue());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setBoostValue(final String value) {
|
||||
if (value != null) {
|
||||
try {
|
||||
_boost = new BigDecimal(value);
|
||||
} catch (final Exception e) {}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,65 +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.db.exentity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.codelibs.core.lang.StringUtil;
|
||||
import org.codelibs.fess.db.bsentity.BsLabelType;
|
||||
|
||||
/**
|
||||
* The entity of LABEL_TYPE.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class LabelType extends BsLabelType {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private String[] roleTypeIds;
|
||||
|
||||
private List<String> roleValueList;
|
||||
|
||||
public String[] getRoleTypeIds() {
|
||||
if (roleTypeIds == null) {
|
||||
return StringUtil.EMPTY_STRINGS;
|
||||
}
|
||||
return roleTypeIds;
|
||||
}
|
||||
|
||||
public void setRoleTypeIds(final String[] roleTypeIds) {
|
||||
this.roleTypeIds = roleTypeIds;
|
||||
}
|
||||
|
||||
public List<String> getRoleValueList() {
|
||||
if (roleValueList == null) {
|
||||
roleValueList = new ArrayList<String>();
|
||||
for (final LabelTypeToRoleTypeMapping mapping : getLabelTypeToRoleTypeMappingList()) {
|
||||
mapping.getRoleType().ifPresent(entity -> {
|
||||
roleValueList.add(entity.getValue());
|
||||
});
|
||||
}
|
||||
}
|
||||
return roleValueList;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,33 +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.db.exentity;
|
||||
|
||||
import org.codelibs.fess.db.bsentity.BsLabelTypeToRoleTypeMapping;
|
||||
|
||||
/**
|
||||
* The entity of LABEL_TYPE_TO_ROLE_TYPE_MAPPING.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class LabelTypeToRoleTypeMapping extends BsLabelTypeToRoleTypeMapping {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
|
@ -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.db.exentity;
|
||||
|
||||
import org.codelibs.fess.db.bsentity.BsOverlappingHost;
|
||||
|
||||
/**
|
||||
* The entity of OVERLAPPING_HOST.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class OverlappingHost extends BsOverlappingHost {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public String convert(final String url) {
|
||||
final String targetStr = getOverlappingName().replaceAll("\\.", "\\\\.");
|
||||
return url.replaceFirst("://" + targetStr + "$", "://" + getRegularName()).replaceFirst("://" + targetStr + "([:/])",
|
||||
"://" + getRegularName() + "$1");
|
||||
}
|
||||
}
|
|
@ -1,45 +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.db.exentity;
|
||||
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import org.codelibs.fess.db.bsentity.BsPathMapping;
|
||||
|
||||
/**
|
||||
* The entity of PATH_MAPPING.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class PathMapping extends BsPathMapping {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Pattern regexPattern;
|
||||
|
||||
public Matcher getMatcher(final CharSequence input) {
|
||||
if (regexPattern == null) {
|
||||
regexPattern = Pattern.compile(getRegex());
|
||||
}
|
||||
return regexPattern.matcher(input);
|
||||
}
|
||||
}
|
|
@ -1,37 +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.db.exentity;
|
||||
|
||||
import org.codelibs.fess.db.bsentity.BsRequestHeader;
|
||||
|
||||
/**
|
||||
* The entity of REQUEST_HEADER.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class RequestHeader extends BsRequestHeader {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public org.codelibs.robot.client.http.RequestHeader getS2RobotRequestHeader() {
|
||||
return new org.codelibs.robot.client.http.RequestHeader(getName(), getValue());
|
||||
}
|
||||
}
|
|
@ -1,33 +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.db.exentity;
|
||||
|
||||
import org.codelibs.fess.db.bsentity.BsRoleType;
|
||||
|
||||
/**
|
||||
* The entity of ROLE_TYPE.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class RoleType extends BsRoleType {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
|
@ -1,57 +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.db.exentity;
|
||||
|
||||
import org.codelibs.fess.Constants;
|
||||
import org.codelibs.fess.db.bsentity.BsScheduledJob;
|
||||
import org.codelibs.fess.job.TriggeredJob;
|
||||
import org.codelibs.fess.util.ComponentUtil;
|
||||
|
||||
/**
|
||||
* The entity of SCHEDULED_JOB.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class ScheduledJob extends BsScheduledJob {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public boolean isLoggingEnabled() {
|
||||
return Constants.T.equals(getJobLogging());
|
||||
}
|
||||
|
||||
public boolean isCrawlerJob() {
|
||||
return Constants.T.equals(getCrawler());
|
||||
}
|
||||
|
||||
public boolean isEnabled() {
|
||||
return Constants.T.equals(getAvailable());
|
||||
}
|
||||
|
||||
public boolean isRunning() {
|
||||
return ComponentUtil.getJobHelper().getJobExecutoer(getId()) != null;
|
||||
}
|
||||
|
||||
public void start() {
|
||||
final ScheduledJob scheduledJob = this;
|
||||
new Thread(() -> new TriggeredJob().execute(scheduledJob)).start();
|
||||
}
|
||||
}
|
|
@ -1,33 +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.db.exentity;
|
||||
|
||||
import org.codelibs.fess.db.bsentity.BsSearchFieldLog;
|
||||
|
||||
/**
|
||||
* The entity of SEARCH_FIELD_LOG.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class SearchFieldLog extends BsSearchFieldLog {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
|
@ -1,63 +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.db.exentity;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
|
||||
import org.codelibs.core.lang.StringUtil;
|
||||
import org.codelibs.fess.Constants;
|
||||
import org.codelibs.fess.db.bsentity.BsSearchLog;
|
||||
|
||||
/**
|
||||
* The entity of SEARCH_LOG.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class SearchLog extends BsSearchLog {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public String getRequestedTimeForList() {
|
||||
final SimpleDateFormat sdf = new SimpleDateFormat(Constants.DEFAULT_DATETIME_FORMAT);
|
||||
if (getRequestedTime() != null) {
|
||||
return sdf.format(getRequestedTime());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void addSearchFieldLogValue(final String name, final String value) {
|
||||
if (StringUtil.isNotBlank(name) && StringUtil.isNotBlank(value)) {
|
||||
final SearchFieldLog fieldLog = new SearchFieldLog();
|
||||
fieldLog.setName(name);
|
||||
fieldLog.setValue(value);
|
||||
getSearchFieldLogList().add(fieldLog);
|
||||
}
|
||||
}
|
||||
|
||||
public void setSearchQuery(final String query) {
|
||||
addSearchFieldLogValue(Constants.SEARCH_FIELD_LOG_SEARCH_QUERY, query);
|
||||
}
|
||||
|
||||
public void setSolrQuery(final String solrQuery) {
|
||||
addSearchFieldLogValue(Constants.SEARCH_FIELD_LOG_SOLR_QUERY, solrQuery);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,33 +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.db.exentity;
|
||||
|
||||
import org.codelibs.fess.db.bsentity.BsSuggestBadWord;
|
||||
|
||||
/**
|
||||
* The entity of SUGGEST_BAD_WORD.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class SuggestBadWord extends BsSuggestBadWord {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
|
@ -1,55 +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.db.exentity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import org.codelibs.fess.db.bsentity.BsSuggestElevateWord;
|
||||
|
||||
/**
|
||||
* The entity of SUGGEST_ELEVATE_WORD.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class SuggestElevateWord extends BsSuggestElevateWord {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public SuggestElevateWord() {
|
||||
super();
|
||||
setBoost(BigDecimal.ONE);
|
||||
}
|
||||
|
||||
public String getBoostValue() {
|
||||
if (_boost != null) {
|
||||
return Integer.toString(_boost.intValue());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setBoostValue(final String value) {
|
||||
if (value != null) {
|
||||
try {
|
||||
_boost = new BigDecimal(value);
|
||||
} catch (final Exception e) {}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,33 +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.db.exentity;
|
||||
|
||||
import org.codelibs.fess.db.bsentity.BsUserInfo;
|
||||
|
||||
/**
|
||||
* The entity of USER_INFO.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class UserInfo extends BsUserInfo {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
|
@ -1,107 +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.db.exentity;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.http.auth.AuthScheme;
|
||||
import org.apache.http.auth.AuthScope;
|
||||
import org.apache.http.auth.Credentials;
|
||||
import org.apache.http.auth.NTCredentials;
|
||||
import org.apache.http.auth.UsernamePasswordCredentials;
|
||||
import org.apache.http.impl.auth.BasicScheme;
|
||||
import org.apache.http.impl.auth.DigestScheme;
|
||||
import org.apache.http.impl.auth.NTLMScheme;
|
||||
import org.codelibs.core.lang.StringUtil;
|
||||
import org.codelibs.fess.Constants;
|
||||
import org.codelibs.fess.db.bsentity.BsWebAuthentication;
|
||||
import org.codelibs.fess.util.ParameterUtil;
|
||||
import org.codelibs.robot.RobotSystemException;
|
||||
import org.codelibs.robot.client.http.Authentication;
|
||||
import org.codelibs.robot.client.http.impl.AuthenticationImpl;
|
||||
import org.codelibs.robot.client.http.ntlm.JcifsEngine;
|
||||
|
||||
/**
|
||||
* The entity of WEB_AUTHENTICATION.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class WebAuthentication extends BsWebAuthentication {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Authentication getAuthentication() {
|
||||
return new AuthenticationImpl(getAuthScope(), getCredentials(), getAuthScheme());
|
||||
}
|
||||
|
||||
private AuthScheme getAuthScheme() {
|
||||
if (Constants.BASIC.equals(getProtocolScheme())) {
|
||||
return new BasicScheme();
|
||||
} else if (Constants.DIGEST.equals(getProtocolScheme())) {
|
||||
return new DigestScheme();
|
||||
} else if (Constants.NTLM.equals(getProtocolScheme())) {
|
||||
return new NTLMScheme(new JcifsEngine());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private AuthScope getAuthScope() {
|
||||
if (StringUtil.isBlank(getHostname())) {
|
||||
return AuthScope.ANY;
|
||||
}
|
||||
|
||||
int p;
|
||||
if (getPort() == null) {
|
||||
p = AuthScope.ANY_PORT;
|
||||
} else {
|
||||
p = getPort().intValue();
|
||||
}
|
||||
|
||||
String r = getAuthRealm();
|
||||
if (StringUtil.isBlank(r)) {
|
||||
r = AuthScope.ANY_REALM;
|
||||
}
|
||||
|
||||
String s = getProtocolScheme();
|
||||
if (StringUtil.isBlank(s) || Constants.NTLM.equals(s)) {
|
||||
s = AuthScope.ANY_SCHEME;
|
||||
}
|
||||
|
||||
return new AuthScope(getHostname(), p, r, s);
|
||||
}
|
||||
|
||||
private Credentials getCredentials() {
|
||||
if (StringUtil.isEmpty(getUsername())) {
|
||||
throw new RobotSystemException("username is empty.");
|
||||
}
|
||||
|
||||
if (Constants.NTLM.equals(getProtocolScheme())) {
|
||||
final Map<String, String> parameterMap = ParameterUtil.parse(getParameters());
|
||||
final String workstation = parameterMap.get("workstation");
|
||||
final String domain = parameterMap.get("domain");
|
||||
return new NTCredentials(getUsername(), getPassword(), workstation == null ? StringUtil.EMPTY : workstation,
|
||||
domain == null ? StringUtil.EMPTY : domain);
|
||||
}
|
||||
|
||||
return new UsernamePasswordCredentials(getUsername(), getPassword() == null ? StringUtil.EMPTY : getPassword());
|
||||
}
|
||||
|
||||
}
|
|
@ -1,33 +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.db.exentity;
|
||||
|
||||
import org.codelibs.fess.db.bsentity.BsWebConfigToLabelTypeMapping;
|
||||
|
||||
/**
|
||||
* The entity of WEB_CONFIG_TO_LABEL_TYPE_MAPPING.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class WebConfigToLabelTypeMapping extends BsWebConfigToLabelTypeMapping {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
|
@ -1,33 +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.db.exentity;
|
||||
|
||||
import org.codelibs.fess.db.bsentity.BsWebConfigToRoleTypeMapping;
|
||||
|
||||
/**
|
||||
* The entity of WEB_CONFIG_TO_ROLE_TYPE_MAPPING.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class WebConfigToRoleTypeMapping extends BsWebConfigToRoleTypeMapping {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
|
@ -1,257 +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.db.exentity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import org.codelibs.core.lang.StringUtil;
|
||||
import org.codelibs.fess.Constants;
|
||||
import org.codelibs.fess.db.bsentity.BsWebCrawlingConfig;
|
||||
import org.codelibs.fess.service.RequestHeaderService;
|
||||
import org.codelibs.fess.service.WebAuthenticationService;
|
||||
import org.codelibs.fess.util.ParameterUtil;
|
||||
import org.codelibs.robot.client.S2RobotClientFactory;
|
||||
import org.codelibs.robot.client.http.Authentication;
|
||||
import org.codelibs.robot.client.http.HcHttpClient;
|
||||
import org.seasar.framework.container.SingletonS2Container;
|
||||
|
||||
/**
|
||||
* The entity of WEB_CRAWLING_CONFIG.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class WebCrawlingConfig extends BsWebCrawlingConfig implements CrawlingConfig {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private String[] labelTypeIds;
|
||||
|
||||
private String[] roleTypeIds;
|
||||
|
||||
protected volatile Pattern[] includedDocUrlPatterns;
|
||||
|
||||
protected volatile Pattern[] excludedDocUrlPatterns;
|
||||
|
||||
protected volatile Map<ConfigName, Map<String, String>> configParameterMap;
|
||||
|
||||
public WebCrawlingConfig() {
|
||||
super();
|
||||
setBoost(BigDecimal.ONE);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.codelibs.fess.db.exentity.CrawlingConfig#getLabelTypeIds()
|
||||
*/
|
||||
public String[] getLabelTypeIds() {
|
||||
if (labelTypeIds == null) {
|
||||
return StringUtil.EMPTY_STRINGS;
|
||||
}
|
||||
return labelTypeIds;
|
||||
}
|
||||
|
||||
public void setLabelTypeIds(final String[] labelTypeIds) {
|
||||
this.labelTypeIds = labelTypeIds;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getLabelTypeValues() {
|
||||
final List<String> values = new ArrayList<String>();
|
||||
final List<WebConfigToLabelTypeMapping> list = getWebConfigToLabelTypeMappingList();
|
||||
if (list != null && !list.isEmpty()) {
|
||||
for (final WebConfigToLabelTypeMapping mapping : list) {
|
||||
mapping.getLabelType().ifPresent(entity -> {
|
||||
values.add(entity.getValue());
|
||||
});
|
||||
}
|
||||
}
|
||||
return values.toArray(new String[values.size()]);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.codelibs.fess.db.exentity.CrawlingConfig#getRoleTypeIds()
|
||||
*/
|
||||
public String[] getRoleTypeIds() {
|
||||
if (roleTypeIds == null) {
|
||||
return StringUtil.EMPTY_STRINGS;
|
||||
}
|
||||
return roleTypeIds;
|
||||
}
|
||||
|
||||
public void setRoleTypeIds(final String[] roleTypeIds) {
|
||||
this.roleTypeIds = roleTypeIds;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getRoleTypeValues() {
|
||||
final List<String> values = new ArrayList<String>();
|
||||
final List<WebConfigToRoleTypeMapping> list = getWebConfigToRoleTypeMappingList();
|
||||
if (list != null && !list.isEmpty()) {
|
||||
for (final WebConfigToRoleTypeMapping mapping : list) {
|
||||
mapping.getRoleType().ifPresent(entity -> {
|
||||
values.add(entity.getValue());
|
||||
});
|
||||
}
|
||||
}
|
||||
return values.toArray(new String[values.size()]);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDocumentBoost() {
|
||||
return Float.valueOf(getBoost().floatValue()).toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getIndexingTarget(final String input) {
|
||||
if (includedDocUrlPatterns == null || excludedDocUrlPatterns == null) {
|
||||
initDocUrlPattern();
|
||||
}
|
||||
|
||||
if (includedDocUrlPatterns.length == 0 && excludedDocUrlPatterns.length == 0) {
|
||||
return Constants.TRUE;
|
||||
}
|
||||
|
||||
for (final Pattern pattern : includedDocUrlPatterns) {
|
||||
if (pattern.matcher(input).matches()) {
|
||||
return Constants.TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
for (final Pattern pattern : excludedDocUrlPatterns) {
|
||||
if (pattern.matcher(input).matches()) {
|
||||
return Constants.FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
return Constants.TRUE;
|
||||
}
|
||||
|
||||
protected synchronized void initDocUrlPattern() {
|
||||
|
||||
if (includedDocUrlPatterns == null) {
|
||||
if (StringUtil.isNotBlank(getIncludedDocUrls())) {
|
||||
final List<Pattern> urlPatterList = new ArrayList<Pattern>();
|
||||
final String[] urls = getIncludedDocUrls().split("[\r\n]");
|
||||
for (final String u : urls) {
|
||||
if (StringUtil.isNotBlank(u) && !u.trim().startsWith("#")) {
|
||||
urlPatterList.add(Pattern.compile(u.trim()));
|
||||
}
|
||||
}
|
||||
includedDocUrlPatterns = urlPatterList.toArray(new Pattern[urlPatterList.size()]);
|
||||
} else {
|
||||
includedDocUrlPatterns = new Pattern[0];
|
||||
}
|
||||
}
|
||||
|
||||
if (excludedDocUrlPatterns == null) {
|
||||
if (StringUtil.isNotBlank(getExcludedDocUrls())) {
|
||||
final List<Pattern> urlPatterList = new ArrayList<Pattern>();
|
||||
final String[] urls = getExcludedDocUrls().split("[\r\n]");
|
||||
for (final String u : urls) {
|
||||
if (StringUtil.isNotBlank(u) && !u.trim().startsWith("#")) {
|
||||
urlPatterList.add(Pattern.compile(u.trim()));
|
||||
}
|
||||
}
|
||||
excludedDocUrlPatterns = urlPatterList.toArray(new Pattern[urlPatterList.size()]);
|
||||
} else if (includedDocUrlPatterns.length > 0) {
|
||||
excludedDocUrlPatterns = new Pattern[] { Pattern.compile(".*") };
|
||||
} else {
|
||||
excludedDocUrlPatterns = new Pattern[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public String getBoostValue() {
|
||||
if (_boost != null) {
|
||||
return Integer.toString(_boost.intValue());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setBoostValue(final String value) {
|
||||
if (value != null) {
|
||||
try {
|
||||
_boost = new BigDecimal(value);
|
||||
} catch (final Exception e) {}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getConfigId() {
|
||||
return ConfigType.WEB.getConfigId(getId());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initializeClientFactory(final S2RobotClientFactory clientFactory) {
|
||||
final WebAuthenticationService webAuthenticationService = SingletonS2Container.getComponent(WebAuthenticationService.class);
|
||||
final RequestHeaderService requestHeaderService = SingletonS2Container.getComponent(RequestHeaderService.class);
|
||||
|
||||
// HttpClient Parameters
|
||||
final Map<String, Object> paramMap = new HashMap<String, Object>();
|
||||
clientFactory.setInitParameterMap(paramMap);
|
||||
|
||||
final Map<String, String> clientConfigMap = getConfigParameterMap(ConfigName.CLIENT);
|
||||
if (clientConfigMap != null) {
|
||||
paramMap.putAll(clientConfigMap);
|
||||
}
|
||||
|
||||
final String userAgent = getUserAgent();
|
||||
if (StringUtil.isNotBlank(userAgent)) {
|
||||
paramMap.put(HcHttpClient.USER_AGENT_PROPERTY, userAgent);
|
||||
}
|
||||
|
||||
final List<WebAuthentication> webAuthList = webAuthenticationService.getWebAuthenticationList(getId());
|
||||
final List<Authentication> basicAuthList = new ArrayList<Authentication>();
|
||||
for (final WebAuthentication webAuth : webAuthList) {
|
||||
basicAuthList.add(webAuth.getAuthentication());
|
||||
}
|
||||
paramMap.put(HcHttpClient.BASIC_AUTHENTICATIONS_PROPERTY, basicAuthList.toArray(new Authentication[basicAuthList.size()]));
|
||||
|
||||
/* TODO CONFIG
|
||||
// request header
|
||||
final List<RequestHeader> requestHeaderList = requestHeaderService.getRequestHeaderList(getId());
|
||||
final List<org.codelibs.robot.client.http.RequestHeader> rhList = new ArrayList<org.codelibs.robot.client.http.RequestHeader>();
|
||||
for (final RequestHeader requestHeader : requestHeaderList) {
|
||||
rhList.add(requestHeader.getS2RobotRequestHeader());
|
||||
}
|
||||
paramMap.put(HcHttpClient.REQUERT_HEADERS_PROPERTY, rhList.toArray(new org.codelibs.robot.client.http.RequestHeader[rhList.size()]));
|
||||
*/
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, String> getConfigParameterMap(final ConfigName name) {
|
||||
if (configParameterMap == null) {
|
||||
configParameterMap = ParameterUtil.createConfigParameterMap(getConfigParameter());
|
||||
}
|
||||
|
||||
final Map<String, String> configMap = configParameterMap.get(name);
|
||||
if (configMap == null) {
|
||||
return Collections.emptyMap();
|
||||
}
|
||||
return configMap;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,33 +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.db.exentity.customize;
|
||||
|
||||
import org.codelibs.fess.db.bsentity.customize.BsClickUrlRanking;
|
||||
|
||||
/**
|
||||
* The entity of ClickUrlRanking.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class ClickUrlRanking extends BsClickUrlRanking {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
|
@ -1,33 +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.db.exentity.customize;
|
||||
|
||||
import org.codelibs.fess.db.bsentity.customize.BsClientIpRanking;
|
||||
|
||||
/**
|
||||
* The entity of ClientIpRanking.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class ClientIpRanking extends BsClientIpRanking {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
|
@ -1,33 +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.db.exentity.customize;
|
||||
|
||||
import org.codelibs.fess.db.bsentity.customize.BsFavoriteUrlCount;
|
||||
|
||||
/**
|
||||
* The entity of FavoriteUrlCount.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class FavoriteUrlCount extends BsFavoriteUrlCount {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
|
@ -1,33 +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.db.exentity.customize;
|
||||
|
||||
import org.codelibs.fess.db.bsentity.customize.BsFavoriteUrlRanking;
|
||||
|
||||
/**
|
||||
* The entity of FavoriteUrlRanking.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class FavoriteUrlRanking extends BsFavoriteUrlRanking {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
|
@ -1,33 +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.db.exentity.customize;
|
||||
|
||||
import org.codelibs.fess.db.bsentity.customize.BsGroupedFieldName;
|
||||
|
||||
/**
|
||||
* The entity of GroupedFieldName.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class GroupedFieldName extends BsGroupedFieldName {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
|
@ -1,33 +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.db.exentity.customize;
|
||||
|
||||
import org.codelibs.fess.db.bsentity.customize.BsHotSearchWord;
|
||||
|
||||
/**
|
||||
* The entity of HotSearchWord.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class HotSearchWord extends BsHotSearchWord {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
|
@ -1,33 +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.db.exentity.customize;
|
||||
|
||||
import org.codelibs.fess.db.bsentity.customize.BsRefererRanking;
|
||||
|
||||
/**
|
||||
* The entity of RefererRanking.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class RefererRanking extends BsRefererRanking {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
|
@ -1,33 +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.db.exentity.customize;
|
||||
|
||||
import org.codelibs.fess.db.bsentity.customize.BsSearchFieldRanking;
|
||||
|
||||
/**
|
||||
* The entity of SearchFieldRanking.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class SearchFieldRanking extends BsSearchFieldRanking {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
|
@ -1,33 +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.db.exentity.customize;
|
||||
|
||||
import org.codelibs.fess.db.bsentity.customize.BsSearchQueryRanking;
|
||||
|
||||
/**
|
||||
* The entity of SearchQueryRanking.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class SearchQueryRanking extends BsSearchQueryRanking {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
|
@ -1,33 +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.db.exentity.customize;
|
||||
|
||||
import org.codelibs.fess.db.bsentity.customize.BsSearchWordRanking;
|
||||
|
||||
/**
|
||||
* The entity of SearchWordRanking.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class SearchWordRanking extends BsSearchWordRanking {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
|
@ -1,33 +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.db.exentity.customize;
|
||||
|
||||
import org.codelibs.fess.db.bsentity.customize.BsSolrQueryRanking;
|
||||
|
||||
/**
|
||||
* The entity of SolrQueryRanking.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class SolrQueryRanking extends BsSolrQueryRanking {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
|
@ -1,33 +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.db.exentity.customize;
|
||||
|
||||
import org.codelibs.fess.db.bsentity.customize.BsUserAgentRanking;
|
||||
|
||||
/**
|
||||
* The entity of UserAgentRanking.
|
||||
* <p>
|
||||
* You can implement your original methods here.
|
||||
* This class remains when re-generating.
|
||||
* </p>
|
||||
* @author DBFlute(AutoGenerator)
|
||||
*/
|
||||
public class UserAgentRanking extends BsUserAgentRanking {
|
||||
|
||||
/** Serial version UID. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
|
@ -18,11 +18,11 @@ package org.codelibs.fess.ds;
|
|||
|
||||
import java.util.Map;
|
||||
|
||||
import org.codelibs.fess.db.exentity.DataCrawlingConfig;
|
||||
import org.codelibs.fess.es.exentity.DataConfig;
|
||||
|
||||
public interface DataStore {
|
||||
|
||||
void store(DataCrawlingConfig config, IndexUpdateCallback callback, Map<String, String> initParamMap);
|
||||
void store(DataConfig config, IndexUpdateCallback callback, Map<String, String> initParamMap);
|
||||
|
||||
void stop();
|
||||
|
||||
|
|
|
@ -16,20 +16,19 @@
|
|||
|
||||
package org.codelibs.fess.ds.impl;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.codelibs.core.lang.StringUtil;
|
||||
import org.codelibs.fess.Constants;
|
||||
import org.codelibs.fess.db.exentity.DataCrawlingConfig;
|
||||
import org.codelibs.fess.ds.DataStore;
|
||||
import org.codelibs.fess.ds.IndexUpdateCallback;
|
||||
import org.codelibs.fess.es.exentity.DataConfig;
|
||||
import org.codelibs.fess.helper.CrawlingSessionHelper;
|
||||
import org.codelibs.fess.helper.FieldHelper;
|
||||
import org.codelibs.fess.taglib.FessFunctions;
|
||||
import org.codelibs.fess.util.ComponentUtil;
|
||||
import org.seasar.framework.util.OgnlUtil;
|
||||
import org.slf4j.Logger;
|
||||
|
@ -49,11 +48,11 @@ public abstract class AbstractDataStoreImpl implements DataStore {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void store(final DataCrawlingConfig config, final IndexUpdateCallback callback, final Map<String, String> initParamMap) {
|
||||
public void store(final DataConfig config, final IndexUpdateCallback callback, final Map<String, String> initParamMap) {
|
||||
final Map<String, String> configParamMap = config.getHandlerParameterMap();
|
||||
final Map<String, String> configScriptMap = config.getHandlerScriptMap();
|
||||
final CrawlingSessionHelper crawlingSessionHelper = ComponentUtil.getCrawlingSessionHelper();
|
||||
final LocalDateTime documentExpires = crawlingSessionHelper.getDocumentExpires();
|
||||
final Long documentExpires = crawlingSessionHelper.getDocumentExpires();
|
||||
final FieldHelper fieldHelper = ComponentUtil.getFieldHelper();
|
||||
|
||||
initParamMap.putAll(configParamMap);
|
||||
|
@ -69,7 +68,7 @@ public abstract class AbstractDataStoreImpl implements DataStore {
|
|||
}
|
||||
// expires
|
||||
if (documentExpires != null) {
|
||||
defaultDataMap.put(fieldHelper.expiresField, FessFunctions.formatDate(documentExpires));
|
||||
defaultDataMap.put(fieldHelper.expiresField, new Date(documentExpires));
|
||||
}
|
||||
// segment
|
||||
defaultDataMap.put(fieldHelper.segmentField, initParamMap.get(Constants.SESSION_ID));
|
||||
|
@ -144,6 +143,6 @@ public abstract class AbstractDataStoreImpl implements DataStore {
|
|||
} catch (final Exception e) {}
|
||||
}
|
||||
|
||||
protected abstract void storeData(DataCrawlingConfig dataConfig, IndexUpdateCallback callback, Map<String, String> paramMap,
|
||||
protected abstract void storeData(DataConfig dataConfig, IndexUpdateCallback callback, Map<String, String> paramMap,
|
||||
Map<String, String> scriptMap, Map<String, Object> defaultDataMap);
|
||||
}
|
||||
|
|
|
@ -31,10 +31,10 @@ import java.util.regex.Pattern;
|
|||
import org.apache.commons.io.IOUtils;
|
||||
import org.codelibs.core.lang.StringUtil;
|
||||
import org.codelibs.fess.Constants;
|
||||
import org.codelibs.fess.db.exentity.DataCrawlingConfig;
|
||||
import org.codelibs.fess.ds.DataStoreCrawlingException;
|
||||
import org.codelibs.fess.ds.DataStoreException;
|
||||
import org.codelibs.fess.ds.IndexUpdateCallback;
|
||||
import org.codelibs.fess.es.exentity.DataConfig;
|
||||
import org.codelibs.fess.service.FailureUrlService;
|
||||
import org.codelibs.robot.RobotCrawlAccessException;
|
||||
import org.codelibs.robot.RobotMultipleCrawlAccessException;
|
||||
|
@ -152,7 +152,7 @@ public class CsvDataStoreImpl extends AbstractDataStoreImpl {
|
|||
}
|
||||
|
||||
@Override
|
||||
protected void storeData(final DataCrawlingConfig dataConfig, final IndexUpdateCallback callback, final Map<String, String> paramMap,
|
||||
protected void storeData(final DataConfig dataConfig, final IndexUpdateCallback callback, final Map<String, String> paramMap,
|
||||
final Map<String, String> scriptMap, final Map<String, Object> defaultDataMap) {
|
||||
|
||||
final long readInterval = getReadInterval(paramMap);
|
||||
|
@ -173,7 +173,7 @@ public class CsvDataStoreImpl extends AbstractDataStoreImpl {
|
|||
}
|
||||
}
|
||||
|
||||
protected void processCsv(final DataCrawlingConfig dataConfig, final IndexUpdateCallback callback, final Map<String, String> paramMap,
|
||||
protected void processCsv(final DataConfig dataConfig, final IndexUpdateCallback callback, final Map<String, String> paramMap,
|
||||
final Map<String, String> scriptMap, final Map<String, Object> defaultDataMap, final CsvConfig csvConfig, final File csvFile,
|
||||
final long readInterval, final String csvFileEncoding, final boolean hasHeaderLine) {
|
||||
logger.info("Loading " + csvFile.getAbsolutePath());
|
||||
|
|
|
@ -29,9 +29,9 @@ import java.util.Set;
|
|||
|
||||
import org.codelibs.core.lang.StringUtil;
|
||||
import org.codelibs.fess.FessSystemException;
|
||||
import org.codelibs.fess.db.exentity.DataCrawlingConfig;
|
||||
import org.codelibs.fess.ds.DataStoreException;
|
||||
import org.codelibs.fess.ds.IndexUpdateCallback;
|
||||
import org.codelibs.fess.es.exentity.DataConfig;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
@ -77,7 +77,7 @@ public class DatabaseDataStoreImpl extends AbstractDataStoreImpl {
|
|||
}
|
||||
|
||||
@Override
|
||||
protected void storeData(final DataCrawlingConfig config, final IndexUpdateCallback callback, final Map<String, String> paramMap,
|
||||
protected void storeData(final DataConfig config, final IndexUpdateCallback callback, final Map<String, String> paramMap,
|
||||
final Map<String, String> scriptMap, final Map<String, Object> defaultDataMap) {
|
||||
|
||||
final long readInterval = getReadInterval(paramMap);
|
||||
|
|
|
@ -24,10 +24,10 @@ import java.util.Map;
|
|||
|
||||
import org.codelibs.fess.Constants;
|
||||
import org.codelibs.fess.client.FessEsClient;
|
||||
import org.codelibs.fess.db.exentity.DataCrawlingConfig;
|
||||
import org.codelibs.fess.ds.DataStoreCrawlingException;
|
||||
import org.codelibs.fess.ds.DataStoreException;
|
||||
import org.codelibs.fess.ds.IndexUpdateCallback;
|
||||
import org.codelibs.fess.es.exentity.DataConfig;
|
||||
import org.codelibs.fess.helper.CrawlingSessionHelper;
|
||||
import org.codelibs.fess.helper.FieldHelper;
|
||||
import org.codelibs.fess.helper.IndexingHelper;
|
||||
|
@ -90,7 +90,7 @@ public class FileListDataStoreImpl extends CsvDataStoreImpl {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void store(final DataCrawlingConfig config, final IndexUpdateCallback callback, final Map<String, String> initParamMap) {
|
||||
public void store(final DataConfig config, final IndexUpdateCallback callback, final Map<String, String> initParamMap) {
|
||||
|
||||
robotClientFactory = SingletonS2Container.getComponent(S2RobotClientFactory.class);
|
||||
|
||||
|
@ -100,7 +100,7 @@ public class FileListDataStoreImpl extends CsvDataStoreImpl {
|
|||
}
|
||||
|
||||
@Override
|
||||
protected void storeData(final DataCrawlingConfig dataConfig, final IndexUpdateCallback callback, final Map<String, String> paramMap,
|
||||
protected void storeData(final DataConfig dataConfig, final IndexUpdateCallback callback, final Map<String, String> paramMap,
|
||||
final Map<String, String> scriptMap, final Map<String, Object> defaultDataMap) {
|
||||
|
||||
final FileListIndexUpdateCallback fileListIndexUpdateCallback = new FileListIndexUpdateCallback(callback);
|
||||
|
@ -109,7 +109,7 @@ public class FileListDataStoreImpl extends CsvDataStoreImpl {
|
|||
}
|
||||
|
||||
@Override
|
||||
protected void processCsv(final DataCrawlingConfig dataConfig, final IndexUpdateCallback callback, final Map<String, String> paramMap,
|
||||
protected void processCsv(final DataConfig dataConfig, final IndexUpdateCallback callback, final Map<String, String> paramMap,
|
||||
final Map<String, String> scriptMap, final Map<String, Object> defaultDataMap, final CsvConfig csvConfig, final File csvFile,
|
||||
final long readInterval, final String csvFileEncoding, final boolean hasHeaderLine) {
|
||||
try {
|
||||
|
|
|
@ -1,7 +1,12 @@
|
|||
package org.codelibs.fess.es.bsbhv;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.ListIterator;
|
||||
import java.util.Map;
|
||||
import java.util.function.Function;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
|
@ -12,12 +17,17 @@ import org.codelibs.fess.es.cbean.bs.AbstractConditionBean;
|
|||
import org.codelibs.fess.es.cbean.result.EsPagingResultBean;
|
||||
import org.dbflute.Entity;
|
||||
import org.dbflute.bhv.AbstractBehaviorWritable;
|
||||
import org.dbflute.bhv.readable.EntityRowHandler;
|
||||
import org.dbflute.bhv.writable.DeleteOption;
|
||||
import org.dbflute.bhv.writable.InsertOption;
|
||||
import org.dbflute.bhv.writable.UpdateOption;
|
||||
import org.dbflute.cbean.ConditionBean;
|
||||
import org.dbflute.cbean.coption.CursorSelectOption;
|
||||
import org.dbflute.cbean.result.ListResultBean;
|
||||
import org.dbflute.exception.IllegalBehaviorStateException;
|
||||
import org.elasticsearch.action.bulk.BulkItemResponse;
|
||||
import org.elasticsearch.action.bulk.BulkRequestBuilder;
|
||||
import org.elasticsearch.action.bulk.BulkResponse;
|
||||
import org.elasticsearch.action.count.CountRequestBuilder;
|
||||
import org.elasticsearch.action.delete.DeleteRequestBuilder;
|
||||
import org.elasticsearch.action.delete.DeleteResponse;
|
||||
|
@ -25,41 +35,60 @@ import org.elasticsearch.action.index.IndexRequestBuilder;
|
|||
import org.elasticsearch.action.index.IndexResponse;
|
||||
import org.elasticsearch.action.search.SearchRequestBuilder;
|
||||
import org.elasticsearch.action.search.SearchResponse;
|
||||
import org.elasticsearch.action.search.SearchType;
|
||||
import org.elasticsearch.action.update.UpdateRequestBuilder;
|
||||
import org.elasticsearch.client.Client;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.elasticsearch.search.SearchHits;
|
||||
|
||||
/**
|
||||
* @author FreeGen
|
||||
*/
|
||||
public abstract class AbstractBehavior<ENTITY extends Entity, CB extends ConditionBean> extends AbstractBehaviorWritable<ENTITY, CB> {
|
||||
|
||||
@Resource
|
||||
protected Client client;
|
||||
|
||||
protected abstract String asIndexEsName();
|
||||
protected int sizeForDelete = 100;
|
||||
|
||||
protected String scrollForDelete = "1m";
|
||||
|
||||
protected int sizeForCursor = 100;
|
||||
|
||||
protected String scrollForCursor = "1m";
|
||||
|
||||
protected abstract String asEsIndex();
|
||||
|
||||
protected abstract String asEsIndexType();
|
||||
|
||||
protected abstract String asEsSearchType();
|
||||
|
||||
protected abstract <RESULT extends ENTITY> RESULT createEntity(Map<String, Object> source, Class<? extends RESULT> entityType);
|
||||
|
||||
@Override
|
||||
protected int delegateSelectCountUniquely(ConditionBean cb) {
|
||||
protected int delegateSelectCountUniquely(final ConditionBean cb) {
|
||||
// TODO check response and cast problem
|
||||
CountRequestBuilder builder = client.prepareCount(asIndexEsName()).setTypes(asTableDbName());
|
||||
final CountRequestBuilder builder = client.prepareCount(asEsIndex()).setTypes(asEsSearchType());
|
||||
return (int) ((AbstractConditionBean) cb).build(builder).execute().actionGet().getCount();
|
||||
}
|
||||
|
||||
protected <RESULT extends ENTITY> List<RESULT> delegateSelectList(ConditionBean cb, Class<? extends RESULT> entityType) {
|
||||
@Override
|
||||
protected <RESULT extends ENTITY> List<RESULT> delegateSelectList(final ConditionBean cb, final Class<? extends RESULT> entityType) {
|
||||
// TODO check response
|
||||
SearchRequestBuilder builder = client.prepareSearch(asIndexEsName()).setTypes(asTableDbName());
|
||||
final SearchRequestBuilder builder = client.prepareSearch(asEsIndex()).setTypes(asEsSearchType());
|
||||
if (cb.isFetchScopeEffective()) {
|
||||
builder.setFrom(cb.getFetchStartIndex());
|
||||
builder.setSize(cb.getFetchSize());
|
||||
}
|
||||
((AbstractConditionBean) cb).request().build(builder);
|
||||
SearchResponse response = ((AbstractConditionBean) cb).build(builder).execute().actionGet();
|
||||
final SearchResponse response = ((AbstractConditionBean) cb).build(builder).execute().actionGet();
|
||||
|
||||
EsPagingResultBean<RESULT> list = new EsPagingResultBean<>();
|
||||
SearchHits searchHits = response.getHits();
|
||||
final EsPagingResultBean<RESULT> list = new EsPagingResultBean<>();
|
||||
final SearchHits searchHits = response.getHits();
|
||||
searchHits.forEach(hit -> {
|
||||
Map<String, Object> source = hit.getSource();
|
||||
RESULT entity = createEntity(source, entityType);
|
||||
DocMeta docMeta = ((AbstractEntity) entity).asDocMeta();
|
||||
final Map<String, Object> source = hit.getSource();
|
||||
final RESULT entity = createEntity(source, entityType);
|
||||
final DocMeta docMeta = ((AbstractEntity) entity).asDocMeta();
|
||||
docMeta.id(hit.getId());
|
||||
docMeta.version(hit.getVersion());
|
||||
list.add(entity);
|
||||
|
@ -78,14 +107,86 @@ public abstract class AbstractBehavior<ENTITY extends Entity, CB extends Conditi
|
|||
return list;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <RESULT extends ENTITY> void helpSelectCursorHandlingByPaging(CB cb, EntityRowHandler<RESULT> handler,
|
||||
Class<? extends RESULT> entityType, CursorSelectOption option) {
|
||||
delegateSelectCursor(cb, handler, entityType);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <RESULT extends ENTITY> void delegateSelectCursor(final ConditionBean cb, final EntityRowHandler<RESULT> handler,
|
||||
final Class<? extends RESULT> entityType) {
|
||||
delegateBulkRequest(cb, searchHits -> {
|
||||
searchHits.forEach(hit -> {
|
||||
if (handler.isBreakCursor()) {
|
||||
return;
|
||||
}
|
||||
final Map<String, Object> source = hit.getSource();
|
||||
final RESULT entity = createEntity(source, entityType);
|
||||
final DocMeta docMeta = ((AbstractEntity) entity).asDocMeta();
|
||||
docMeta.id(hit.getId());
|
||||
docMeta.version(hit.getVersion());
|
||||
handler.handle(entity);
|
||||
});
|
||||
|
||||
return !handler.isBreakCursor();
|
||||
});
|
||||
}
|
||||
|
||||
protected <RESULT extends ENTITY> void delegateSelectBulk(final ConditionBean cb, final EntityRowHandler<List<RESULT>> handler,
|
||||
final Class<? extends RESULT> entityType) {
|
||||
assertCBStateValid(cb);
|
||||
assertObjectNotNull("entityRowHandler", handler);
|
||||
assertSpecifyDerivedReferrerEntityProperty(cb, entityType);
|
||||
assertObjectNotNull("entityRowHandler", handler);
|
||||
delegateBulkRequest(cb, searchHits -> {
|
||||
List<RESULT> list = new ArrayList<>();
|
||||
searchHits.forEach(hit -> {
|
||||
final Map<String, Object> source = hit.getSource();
|
||||
final RESULT entity = createEntity(source, entityType);
|
||||
final DocMeta docMeta = ((AbstractEntity) entity).asDocMeta();
|
||||
docMeta.id(hit.getId());
|
||||
docMeta.version(hit.getVersion());
|
||||
list.add(entity);
|
||||
});
|
||||
|
||||
handler.handle(list);
|
||||
return !handler.isBreakCursor();
|
||||
});
|
||||
}
|
||||
|
||||
protected void delegateBulkRequest(final ConditionBean cb, Function<SearchHits, Boolean> handler) {
|
||||
final SearchRequestBuilder builder =
|
||||
client.prepareSearch(asEsIndex()).setTypes(asEsIndexType()).setSearchType(SearchType.SCAN).setScroll(scrollForCursor)
|
||||
.setSize(sizeForCursor);
|
||||
((AbstractConditionBean) cb).request().build(builder);
|
||||
final SearchResponse response = ((AbstractConditionBean) cb).build(builder).execute().actionGet();
|
||||
|
||||
String scrollId = response.getScrollId();
|
||||
while (scrollId != null) {
|
||||
final SearchResponse scrollResponse = client.prepareSearchScroll(scrollId).setScroll(scrollForDelete).execute().actionGet();
|
||||
scrollId = scrollResponse.getScrollId();
|
||||
final SearchHits searchHits = scrollResponse.getHits();
|
||||
final SearchHit[] hits = searchHits.getHits();
|
||||
if (hits.length == 0) {
|
||||
scrollId = null;
|
||||
break;
|
||||
}
|
||||
|
||||
if (!handler.apply(searchHits)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Number doReadNextVal() {
|
||||
String msg = "This table is NOT related to sequence: " + asTableDbName();
|
||||
final String msg = "This table is NOT related to sequence: " + asEsIndexType();
|
||||
throw new UnsupportedOperationException(msg);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <RESULT extends Entity> ListResultBean<RESULT> createListResultBean(ConditionBean cb, List<RESULT> selectedList) {
|
||||
protected <RESULT extends Entity> ListResultBean<RESULT> createListResultBean(final ConditionBean cb, final List<RESULT> selectedList) {
|
||||
if (selectedList instanceof EsPagingResultBean) {
|
||||
return (ListResultBean<RESULT>) selectedList;
|
||||
}
|
||||
|
@ -93,48 +194,161 @@ public abstract class AbstractBehavior<ENTITY extends Entity, CB extends Conditi
|
|||
}
|
||||
|
||||
@Override
|
||||
protected int delegateInsert(Entity entity, InsertOption<? extends ConditionBean> option) {
|
||||
AbstractEntity esEntity = (AbstractEntity) entity;
|
||||
IndexRequestBuilder builder = client.prepareIndex(asIndexEsName(), asTableDbName()).setSource(esEntity.toSource());
|
||||
RequestOptionCall<IndexRequestBuilder> indexOption = esEntity.asDocMeta().indexOption();
|
||||
if (indexOption != null) {
|
||||
indexOption.callback(builder);
|
||||
}
|
||||
IndexResponse response = builder.execute().actionGet();
|
||||
protected int delegateInsert(final Entity entity, final InsertOption<? extends ConditionBean> option) {
|
||||
final AbstractEntity esEntity = (AbstractEntity) entity;
|
||||
IndexRequestBuilder builder = createInsertRequest(esEntity);
|
||||
|
||||
final IndexResponse response = builder.execute().actionGet();
|
||||
esEntity.asDocMeta().id(response.getId());
|
||||
return response.isCreated() ? 1 : 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int delegateUpdate(Entity entity, UpdateOption<? extends ConditionBean> option) {
|
||||
AbstractEntity esEntity = (AbstractEntity) entity;
|
||||
IndexRequestBuilder builder =
|
||||
client.prepareIndex(asIndexEsName(), asTableDbName(), esEntity.asDocMeta().id()).setSource(esEntity.toSource());
|
||||
RequestOptionCall<IndexRequestBuilder> indexOption = esEntity.asDocMeta().indexOption();
|
||||
protected IndexRequestBuilder createInsertRequest(final AbstractEntity esEntity) {
|
||||
final IndexRequestBuilder builder = client.prepareIndex(asEsIndex(), asEsIndexType()).setSource(esEntity.toSource());
|
||||
final RequestOptionCall<IndexRequestBuilder> indexOption = esEntity.asDocMeta().indexOption();
|
||||
if (indexOption != null) {
|
||||
indexOption.callback(builder);
|
||||
}
|
||||
Long version = esEntity.asDocMeta().version();
|
||||
if (version != null && version.longValue() != -1) {
|
||||
builder.setVersion(version);
|
||||
}
|
||||
IndexResponse response = builder.execute().actionGet();
|
||||
return 1;
|
||||
return builder;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int delegateDelete(Entity entity, DeleteOption<? extends ConditionBean> option) {
|
||||
AbstractEntity esEntity = (AbstractEntity) entity;
|
||||
DeleteRequestBuilder builder = client.prepareDelete(asIndexEsName(), asTableDbName(), esEntity.asDocMeta().id());
|
||||
RequestOptionCall<DeleteRequestBuilder> deleteOption = esEntity.asDocMeta().deleteOption();
|
||||
if (deleteOption != null) {
|
||||
deleteOption.callback(builder);
|
||||
protected int delegateUpdate(final Entity entity, final UpdateOption<? extends ConditionBean> option) {
|
||||
final AbstractEntity esEntity = (AbstractEntity) entity;
|
||||
final IndexRequestBuilder builder = createUpdateRequest(esEntity);
|
||||
|
||||
final IndexResponse response = builder.execute().actionGet();
|
||||
long version = response.getVersion();
|
||||
if (version != -1) {
|
||||
esEntity.asDocMeta().version(version);
|
||||
}
|
||||
DeleteResponse response = builder.execute().actionGet();
|
||||
return 1;
|
||||
}
|
||||
|
||||
protected IndexRequestBuilder createUpdateRequest(final AbstractEntity esEntity) {
|
||||
final IndexRequestBuilder builder =
|
||||
client.prepareIndex(asEsIndex(), asEsIndexType(), esEntity.asDocMeta().id()).setSource(esEntity.toSource());
|
||||
final RequestOptionCall<IndexRequestBuilder> indexOption = esEntity.asDocMeta().indexOption();
|
||||
if (indexOption != null) {
|
||||
indexOption.callback(builder);
|
||||
}
|
||||
final Long version = esEntity.asDocMeta().version();
|
||||
if (version != null && version.longValue() != -1) {
|
||||
builder.setVersion(version);
|
||||
}
|
||||
return builder;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int delegateDelete(final Entity entity, final DeleteOption<? extends ConditionBean> option) {
|
||||
final AbstractEntity esEntity = (AbstractEntity) entity;
|
||||
final DeleteRequestBuilder builder = createDeleteRequest(esEntity);
|
||||
|
||||
final DeleteResponse response = builder.execute().actionGet();
|
||||
return response.isFound() ? 1 : 0;
|
||||
}
|
||||
|
||||
protected static String toString(Object value) {
|
||||
protected DeleteRequestBuilder createDeleteRequest(final AbstractEntity esEntity) {
|
||||
final DeleteRequestBuilder builder = client.prepareDelete(asEsIndex(), asEsIndexType(), esEntity.asDocMeta().id());
|
||||
final RequestOptionCall<DeleteRequestBuilder> deleteOption = esEntity.asDocMeta().deleteOption();
|
||||
if (deleteOption != null) {
|
||||
deleteOption.callback(builder);
|
||||
}
|
||||
return builder;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int delegateQueryDelete(final ConditionBean cb, final DeleteOption<? extends ConditionBean> option) {
|
||||
final SearchRequestBuilder builder =
|
||||
client.prepareSearch(asEsIndex()).setTypes(asEsIndexType()).setSearchType(SearchType.SCAN).setScroll(scrollForDelete)
|
||||
.setSize(sizeForDelete);
|
||||
((AbstractConditionBean) cb).request().build(builder);
|
||||
final SearchResponse response = ((AbstractConditionBean) cb).build(builder).execute().actionGet();
|
||||
|
||||
int count = 0;
|
||||
String scrollId = response.getScrollId();
|
||||
while (scrollId != null) {
|
||||
final SearchResponse scrollResponse = client.prepareSearchScroll(scrollId).setScroll(scrollForDelete).execute().actionGet();
|
||||
scrollId = scrollResponse.getScrollId();
|
||||
final SearchHits searchHits = scrollResponse.getHits();
|
||||
final SearchHit[] hits = searchHits.getHits();
|
||||
if (hits.length == 0) {
|
||||
scrollId = null;
|
||||
break;
|
||||
}
|
||||
|
||||
final BulkRequestBuilder bulkRequest = client.prepareBulk();
|
||||
for (final SearchHit hit : hits) {
|
||||
bulkRequest.add(client.prepareDelete(asEsIndex(), asEsIndexType(), hit.getId()));
|
||||
}
|
||||
count += hits.length;
|
||||
final BulkResponse bulkResponse = bulkRequest.execute().actionGet();
|
||||
if (bulkResponse.hasFailures()) {
|
||||
throw new IllegalBehaviorStateException(bulkResponse.buildFailureMessage());
|
||||
}
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
||||
protected int[] delegateBatchInsert(final List<? extends Entity> entityList, final InsertOption<? extends ConditionBean> option) {
|
||||
if (entityList.isEmpty()) {
|
||||
return new int[] {};
|
||||
}
|
||||
return delegateBatchRequest(entityList, esEntity -> {
|
||||
return createInsertRequest(esEntity);
|
||||
});
|
||||
}
|
||||
|
||||
protected int[] delegateBatchUpdate(List<? extends Entity> entityList, UpdateOption<? extends ConditionBean> option) {
|
||||
if (entityList.isEmpty()) {
|
||||
return new int[] {};
|
||||
}
|
||||
return delegateBatchRequest(entityList, esEntity -> {
|
||||
return createUpdateRequest(esEntity);
|
||||
});
|
||||
}
|
||||
|
||||
protected int[] delegateBatchDelete(List<? extends Entity> entityList, DeleteOption<? extends ConditionBean> option) {
|
||||
if (entityList.isEmpty()) {
|
||||
return new int[] {};
|
||||
}
|
||||
return delegateBatchRequest(entityList, esEntity -> {
|
||||
return createDeleteRequest(esEntity);
|
||||
});
|
||||
}
|
||||
|
||||
protected <BUILDER> int[] delegateBatchRequest(final List<? extends Entity> entityList, Function<AbstractEntity, BUILDER> call) {
|
||||
final BulkList<? extends Entity> bulkList = (BulkList<? extends Entity>) entityList;
|
||||
final BulkRequestBuilder bulkBuilder = client.prepareBulk();
|
||||
for (final Entity entity : entityList) {
|
||||
final AbstractEntity esEntity = (AbstractEntity) entity;
|
||||
BUILDER builder = call.apply(esEntity);
|
||||
if (builder instanceof IndexRequestBuilder) {
|
||||
bulkBuilder.add((IndexRequestBuilder) builder);
|
||||
} else if (builder instanceof UpdateRequestBuilder) {
|
||||
bulkBuilder.add((UpdateRequestBuilder) builder);
|
||||
} else if (builder instanceof DeleteRequestBuilder) {
|
||||
bulkBuilder.add((DeleteRequestBuilder) builder);
|
||||
}
|
||||
}
|
||||
RequestOptionCall<BulkRequestBuilder> builderCall = bulkList.getCall();
|
||||
if (builderCall != null) {
|
||||
builderCall.callback(bulkBuilder);
|
||||
}
|
||||
BulkResponse response = bulkBuilder.execute().actionGet();
|
||||
|
||||
List<Integer> resultList = new ArrayList<>();
|
||||
for (BulkItemResponse itemResponse : response.getItems()) {
|
||||
resultList.add(itemResponse.isFailed() ? 0 : 1);
|
||||
}
|
||||
int[] results = new int[resultList.size()];
|
||||
for (int i = 0; i < resultList.size(); i++) {
|
||||
results[i] = resultList.get(i);
|
||||
}
|
||||
return results;
|
||||
}
|
||||
|
||||
protected static String toString(final Object value) {
|
||||
if (value != null) {
|
||||
return value.toString();
|
||||
} else {
|
||||
|
@ -142,7 +356,7 @@ public abstract class AbstractBehavior<ENTITY extends Entity, CB extends Conditi
|
|||
}
|
||||
}
|
||||
|
||||
protected static Short toShort(Object value) {
|
||||
protected static Short toShort(final Object value) {
|
||||
if (value instanceof Number) {
|
||||
return ((Number) value).shortValue();
|
||||
} else if (value instanceof String) {
|
||||
|
@ -152,7 +366,7 @@ public abstract class AbstractBehavior<ENTITY extends Entity, CB extends Conditi
|
|||
}
|
||||
}
|
||||
|
||||
protected static Integer toInteger(Object value) {
|
||||
protected static Integer toInteger(final Object value) {
|
||||
if (value instanceof Number) {
|
||||
return ((Number) value).intValue();
|
||||
} else if (value instanceof String) {
|
||||
|
@ -162,7 +376,7 @@ public abstract class AbstractBehavior<ENTITY extends Entity, CB extends Conditi
|
|||
}
|
||||
}
|
||||
|
||||
protected static Long toLong(Object value) {
|
||||
protected static Long toLong(final Object value) {
|
||||
if (value instanceof Number) {
|
||||
return ((Number) value).longValue();
|
||||
} else if (value instanceof String) {
|
||||
|
@ -172,7 +386,7 @@ public abstract class AbstractBehavior<ENTITY extends Entity, CB extends Conditi
|
|||
}
|
||||
}
|
||||
|
||||
protected static Float toFloat(Object value) {
|
||||
protected static Float toFloat(final Object value) {
|
||||
if (value instanceof Number) {
|
||||
return ((Number) value).floatValue();
|
||||
} else if (value instanceof String) {
|
||||
|
@ -182,7 +396,7 @@ public abstract class AbstractBehavior<ENTITY extends Entity, CB extends Conditi
|
|||
}
|
||||
}
|
||||
|
||||
protected static Double toDouble(Object value) {
|
||||
protected static Double toDouble(final Object value) {
|
||||
if (value instanceof Number) {
|
||||
return ((Number) value).doubleValue();
|
||||
} else if (value instanceof String) {
|
||||
|
@ -192,7 +406,7 @@ public abstract class AbstractBehavior<ENTITY extends Entity, CB extends Conditi
|
|||
}
|
||||
}
|
||||
|
||||
protected static Boolean toBoolean(Object value) {
|
||||
protected static Boolean toBoolean(final Object value) {
|
||||
if (value instanceof Boolean) {
|
||||
return ((Boolean) value).booleanValue();
|
||||
} else if (value instanceof String) {
|
||||
|
@ -201,4 +415,120 @@ public abstract class AbstractBehavior<ENTITY extends Entity, CB extends Conditi
|
|||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static class BulkList<E> implements List<E> {
|
||||
|
||||
private final List<E> parent;
|
||||
|
||||
private final RequestOptionCall<BulkRequestBuilder> call;
|
||||
|
||||
public BulkList(final List<E> parent, final RequestOptionCall<BulkRequestBuilder> call) {
|
||||
this.parent = parent;
|
||||
this.call = call;
|
||||
}
|
||||
|
||||
public int size() {
|
||||
return parent.size();
|
||||
}
|
||||
|
||||
public boolean isEmpty() {
|
||||
return parent.isEmpty();
|
||||
}
|
||||
|
||||
public boolean contains(final Object o) {
|
||||
return parent.contains(o);
|
||||
}
|
||||
|
||||
public Iterator<E> iterator() {
|
||||
return parent.iterator();
|
||||
}
|
||||
|
||||
public Object[] toArray() {
|
||||
return parent.toArray();
|
||||
}
|
||||
|
||||
public <T> T[] toArray(final T[] a) {
|
||||
return parent.toArray(a);
|
||||
}
|
||||
|
||||
public boolean add(final E e) {
|
||||
return parent.add(e);
|
||||
}
|
||||
|
||||
public boolean remove(final Object o) {
|
||||
return parent.remove(o);
|
||||
}
|
||||
|
||||
public boolean containsAll(final Collection<?> c) {
|
||||
return parent.containsAll(c);
|
||||
}
|
||||
|
||||
public boolean addAll(final Collection<? extends E> c) {
|
||||
return parent.addAll(c);
|
||||
}
|
||||
|
||||
public boolean addAll(final int index, final Collection<? extends E> c) {
|
||||
return parent.addAll(index, c);
|
||||
}
|
||||
|
||||
public boolean removeAll(final Collection<?> c) {
|
||||
return parent.removeAll(c);
|
||||
}
|
||||
|
||||
public boolean retainAll(final Collection<?> c) {
|
||||
return parent.retainAll(c);
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
parent.clear();
|
||||
}
|
||||
|
||||
public boolean equals(final Object o) {
|
||||
return parent.equals(o);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return parent.hashCode();
|
||||
}
|
||||
|
||||
public E get(final int index) {
|
||||
return parent.get(index);
|
||||
}
|
||||
|
||||
public E set(final int index, final E element) {
|
||||
return parent.set(index, element);
|
||||
}
|
||||
|
||||
public void add(final int index, final E element) {
|
||||
parent.add(index, element);
|
||||
}
|
||||
|
||||
public E remove(final int index) {
|
||||
return parent.remove(index);
|
||||
}
|
||||
|
||||
public int indexOf(final Object o) {
|
||||
return parent.indexOf(o);
|
||||
}
|
||||
|
||||
public int lastIndexOf(final Object o) {
|
||||
return parent.lastIndexOf(o);
|
||||
}
|
||||
|
||||
public ListIterator<E> listIterator() {
|
||||
return parent.listIterator();
|
||||
}
|
||||
|
||||
public ListIterator<E> listIterator(final int index) {
|
||||
return parent.listIterator(index);
|
||||
}
|
||||
|
||||
public List<E> subList(final int fromIndex, final int toIndex) {
|
||||
return parent.subList(fromIndex, toIndex);
|
||||
}
|
||||
|
||||
public RequestOptionCall<BulkRequestBuilder> getCall() {
|
||||
return call;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue