View Javadoc
1   /*
2    * Copyright 2012-2025 CodeLibs Project and the Others.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13   * either express or implied. See the License for the specific language
14   * governing permissions and limitations under the License.
15   */
16  package org.codelibs.fess.opensearch.config.exentity;
17  
18  import java.util.List;
19  
20  import org.codelibs.fess.opensearch.config.bsentity.BsCrawlingInfo;
21  
22  /**
23   * @author ESFlute (using FreeGen)
24   */
25  public class CrawlingInfo extends BsCrawlingInfo {
26  
27      private static final long serialVersionUID = 1L;
28  
29      private List<CrawlingInfoParam> crawlingInfoParamList;
30  
31      public CrawlingInfo() {
32      }
33  
34      public CrawlingInfo(final String sessionId) {
35          setSessionId(sessionId);
36      }
37  
38      public String getId() {
39          return asDocMeta().id();
40      }
41  
42      public void setId(final String id) {
43          asDocMeta().id(id);
44      }
45  
46      public Long getVersionNo() {
47          return asDocMeta().version();
48      }
49  
50      public void setVersionNo(final Long version) {
51          asDocMeta().version(version);
52      }
53  
54      public void setCrawlingInfoInfoList(final List<CrawlingInfoParam> crawlingInfoParamList) {
55          this.crawlingInfoParamList = crawlingInfoParamList;
56      }
57  
58      public List<CrawlingInfoParam> getCrawlingInfoParamList() {
59          return crawlingInfoParamList;
60      }
61  
62      @Override
63      public String toString() {
64          return "CrawlingInfo [crawlingInfoParamList=" + crawlingInfoParamList + ", createdTime=" + createdTime + ", expiredTime="
65                  + expiredTime + ", name=" + name + ", sessionId=" + sessionId + ", docMeta=" + docMeta + "]";
66      }
67  }