1 18 19 package sync4j.framework.server; 20 21 import java.io.Serializable ; 22 23 import sync4j.framework.server.Sync4jSourceType; 24 25 import org.apache.commons.lang.builder.ToStringBuilder; 26 27 35 public class Sync4jConnector implements Serializable { 36 37 private String connectorId; 38 private String connectorName; 39 private String description; 40 private String adminClass; 41 private Sync4jSourceType[] syncSourceType; 42 43 44 public Sync4jConnector() { 45 this(null,null,null,null); 46 } 47 48 public Sync4jConnector(String connectorId , 49 String connectorName, 50 String description , 51 String adminClass ) { 52 this.connectorId = connectorId; 53 this.connectorName = connectorName; 54 this.description = description; 55 this.adminClass = adminClass; 56 } 57 58 62 public String getConnectorId() { 63 return connectorId; 64 } 65 66 70 public void setConnectorId(String connectorId) { 71 this.connectorId = connectorId; 72 } 73 74 78 public String getConnectorName() { 79 return connectorName; 80 } 81 82 86 public void setConnectorName(String connectorName) { 87 this.connectorName = connectorName; 88 } 89 90 94 public String getDescription() { 95 return description; 96 } 97 98 102 public void setDescription(String description) { 103 this.description = description; 104 } 105 106 110 public String getAdminClass() { 111 return adminClass; 112 } 113 114 118 public void setAdminClass(String adminClass) { 119 this.adminClass = adminClass; 120 } 121 122 public void setSourceTypes(Sync4jSourceType[] syncSourceType) { 123 this.syncSourceType = syncSourceType; 124 } 125 public Sync4jSourceType[] getSourceTypes() { 126 return this.syncSourceType; 127 } 128 129 public String toString() { 130 StringBuffer sb = new StringBuffer (); 131 sb.append("IdConnector :" + this.connectorId); 132 sb.append("ConnectorName:" + this.connectorName); 133 sb.append("Description :" + this.description); 134 sb.append("AdminClass :" + this.adminClass); 135 return sb.toString(); 136 } 137 138 } 139 | Popular Tags |