| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
|
| 17 | |
|
| 18 | |
package org.apache.shindig.social.core.model; |
| 19 | |
|
| 20 | |
import org.apache.shindig.social.opensocial.model.Address; |
| 21 | |
import org.apache.shindig.social.opensocial.model.Organization; |
| 22 | |
|
| 23 | |
import java.util.Date; |
| 24 | |
|
| 25 | 18 | public class OrganizationImpl implements Organization { |
| 26 | |
private Address address; |
| 27 | |
private String description; |
| 28 | |
private Date endDate; |
| 29 | |
private String field; |
| 30 | |
private String name; |
| 31 | |
private String salary; |
| 32 | |
private Date startDate; |
| 33 | |
private String subField; |
| 34 | |
private String title; |
| 35 | |
private String webpage; |
| 36 | |
private String type; |
| 37 | |
private Boolean primary; |
| 38 | |
|
| 39 | |
public Address getAddress() { |
| 40 | 6 | return address; |
| 41 | |
} |
| 42 | |
|
| 43 | |
public void setAddress(Address address) { |
| 44 | 18 | this.address = address; |
| 45 | 18 | } |
| 46 | |
|
| 47 | |
public String getDescription() { |
| 48 | 6 | return description; |
| 49 | |
} |
| 50 | |
|
| 51 | |
public void setDescription(String description) { |
| 52 | 18 | this.description = description; |
| 53 | 18 | } |
| 54 | |
|
| 55 | |
public Date getEndDate() { |
| 56 | 4 | if (endDate == null) { |
| 57 | 0 | return null; |
| 58 | |
} |
| 59 | 4 | return new Date(endDate.getTime()); |
| 60 | |
} |
| 61 | |
|
| 62 | |
public void setEndDate(Date endDate) { |
| 63 | 18 | if (endDate == null) { |
| 64 | 0 | this.endDate = null; |
| 65 | 0 | } else { |
| 66 | 18 | this.endDate = new Date(endDate.getTime()); |
| 67 | |
} |
| 68 | 18 | } |
| 69 | |
|
| 70 | |
public String getField() { |
| 71 | 6 | return field; |
| 72 | |
} |
| 73 | |
|
| 74 | |
public void setField(String field) { |
| 75 | 18 | this.field = field; |
| 76 | 18 | } |
| 77 | |
|
| 78 | |
public String getName() { |
| 79 | 6 | return name; |
| 80 | |
} |
| 81 | |
|
| 82 | |
public void setName(String name) { |
| 83 | 18 | this.name = name; |
| 84 | 18 | } |
| 85 | |
|
| 86 | |
public String getSalary() { |
| 87 | 6 | return salary; |
| 88 | |
} |
| 89 | |
|
| 90 | |
public void setSalary(String salary) { |
| 91 | 18 | this.salary = salary; |
| 92 | 18 | } |
| 93 | |
|
| 94 | |
public Date getStartDate() { |
| 95 | 4 | if (startDate == null) { |
| 96 | 0 | return null; |
| 97 | |
} |
| 98 | 4 | return new Date(startDate.getTime()); |
| 99 | |
} |
| 100 | |
|
| 101 | |
public void setStartDate(Date startDate) { |
| 102 | 18 | if (startDate == null) { |
| 103 | 0 | this.startDate = null; |
| 104 | 0 | } else { |
| 105 | 18 | this.startDate = new Date(startDate.getTime()); |
| 106 | |
} |
| 107 | 18 | } |
| 108 | |
|
| 109 | |
public String getSubField() { |
| 110 | 6 | return subField; |
| 111 | |
} |
| 112 | |
|
| 113 | |
public void setSubField(String subField) { |
| 114 | 18 | this.subField = subField; |
| 115 | 18 | } |
| 116 | |
|
| 117 | |
public String getTitle() { |
| 118 | 6 | return title; |
| 119 | |
} |
| 120 | |
|
| 121 | |
public void setTitle(String title) { |
| 122 | 18 | this.title = title; |
| 123 | 18 | } |
| 124 | |
|
| 125 | |
public String getWebpage() { |
| 126 | 6 | return webpage; |
| 127 | |
} |
| 128 | |
|
| 129 | |
public void setWebpage(String webpage) { |
| 130 | 18 | this.webpage = webpage; |
| 131 | 18 | } |
| 132 | |
|
| 133 | |
public String getType() { |
| 134 | 6 | return type; |
| 135 | |
} |
| 136 | |
|
| 137 | |
public void setType(String type) { |
| 138 | 18 | this.type = type; |
| 139 | 18 | } |
| 140 | |
|
| 141 | |
public Boolean getPrimary() { |
| 142 | 4 | return primary; |
| 143 | |
} |
| 144 | |
|
| 145 | |
public void setPrimary(Boolean primary) { |
| 146 | 0 | this.primary = primary; |
| 147 | 0 | } |
| 148 | |
} |