View Javadoc
1   /* 
2   * Copyright (C) 2003-2015 eXo Platform SAS.
3   *
4   * This program is free software: you can redistribute it and/or modify
5   * it under the terms of the GNU Lesser General Public License as published by
6   * the Free Software Foundation, either version 3 of the License, or
7   * (at your option) any later version.
8   *
9   * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this program. If not, see http://www.gnu.org/licenses/ .
16  */
17  package org.exoplatform.commons.search.rest.resource;
18  
19  import io.swagger.annotations.ApiModel;
20  import io.swagger.annotations.ApiModelProperty;
21  
22  import java.io.Serializable;
23  
24  /**
25   * Created by The eXo Platform SAS
26   * Author : Thibault Clement
27   * tclement@exoplatform.com
28   * 12/4/15
29   */
30  @ApiModel(value="An Indexing Connector Resources")
31  public class ConnectorResource implements Serializable {
32  
33    private String type;
34    private boolean enable;
35  
36    public ConnectorResource() {
37    }
38  
39    public ConnectorResource(String type, boolean enable) {
40      this.type = type;
41      this.enable = enable;
42    }
43  
44    @ApiModelProperty(value = "The Connector Type")
45    public String getType() {
46      return type;
47    }
48  
49    public void setType(String type) {
50      this.type = type;
51    }
52  
53    @ApiModelProperty(value = "Does the Connector is enable or not", allowableValues = "true,false")
54    public boolean isEnable() {
55      return enable;
56    }
57  
58    public void setEnable(boolean enable) {
59      this.enable = enable;
60    }
61  }
62