Author: mfranklin
Date: Mon Jun  4 15:01:26 2012
New Revision: 1345999

URL: http://svn.apache.org/viewvc?rev=1345999&view=rev
Log:
Added org impl (RAVE-625)

Added:
    
rave/branches/model_interfaces/rave-components/rave-core/src/main/java/org/apache/rave/portal/model/OrganizationImpl.java

Added: 
rave/branches/model_interfaces/rave-components/rave-core/src/main/java/org/apache/rave/portal/model/OrganizationImpl.java
URL: 
http://svn.apache.org/viewvc/rave/branches/model_interfaces/rave-components/rave-core/src/main/java/org/apache/rave/portal/model/OrganizationImpl.java?rev=1345999&view=auto
==============================================================================
--- 
rave/branches/model_interfaces/rave-components/rave-core/src/main/java/org/apache/rave/portal/model/OrganizationImpl.java
 (added)
+++ 
rave/branches/model_interfaces/rave-components/rave-core/src/main/java/org/apache/rave/portal/model/OrganizationImpl.java
 Mon Jun  4 15:01:26 2012
@@ -0,0 +1,142 @@
+package org.apache.rave.portal.model;
+import java.util.Date;
+
+public class OrganizationImpl {
+    private Address address;
+    private String description;
+    private Date endDate;
+    private String field;
+    private String name;
+    private Date startDate;
+    private String subField;
+    private String title;
+    private String webpage;
+    private String qualifier;
+    private Boolean primary;
+
+    public Address getAddress() {
+        return address;
+    }
+
+    public void setAddress(Address address) {
+        this.address = address;
+    }
+
+    public String getDescription() {
+        return description;
+    }
+
+    public void setDescription(String description) {
+        this.description = description;
+    }
+
+    public Date getEndDate() {
+        return endDate;
+    }
+
+    public void setEndDate(Date endDate) {
+        this.endDate = endDate;
+    }
+
+    public String getField() {
+        return field;
+    }
+
+    public void setField(String field) {
+        this.field = field;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    public Date getStartDate() {
+        return startDate;
+    }
+
+    public void setStartDate(Date startDate) {
+        this.startDate = startDate;
+    }
+
+    public String getSubField() {
+        return subField;
+    }
+
+    public void setSubField(String subField) {
+        this.subField = subField;
+    }
+
+    public String getTitle() {
+        return title;
+    }
+
+    public void setTitle(String title) {
+        this.title = title;
+    }
+
+    public String getWebpage() {
+        return webpage;
+    }
+
+    public void setWebpage(String webpage) {
+        this.webpage = webpage;
+    }
+
+    public String getQualifier() {
+        return qualifier;
+    }
+
+    public void setQualifier(String qualifier) {
+        this.qualifier = qualifier;
+    }
+
+    public Boolean getPrimary() {
+        return primary;
+    }
+
+    public void setPrimary(Boolean primary) {
+        this.primary = primary;
+    }
+
+    @Override
+    public boolean equals(Object o) {
+        if (this == o) return true;
+        if (!(o instanceof OrganizationImpl)) return false;
+
+        OrganizationImpl that = (OrganizationImpl) o;
+
+        if (address != null ? !address.equals(that.address) : that.address != 
null) return false;
+        if (description != null ? !description.equals(that.description) : 
that.description != null) return false;
+        if (endDate != null ? !endDate.equals(that.endDate) : that.endDate != 
null) return false;
+        if (field != null ? !field.equals(that.field) : that.field != null) 
return false;
+        if (name != null ? !name.equals(that.name) : that.name != null) return 
false;
+        if (primary != null ? !primary.equals(that.primary) : that.primary != 
null) return false;
+        if (qualifier != null ? !qualifier.equals(that.qualifier) : 
that.qualifier != null) return false;
+        if (startDate != null ? !startDate.equals(that.startDate) : 
that.startDate != null) return false;
+        if (subField != null ? !subField.equals(that.subField) : that.subField 
!= null) return false;
+        if (title != null ? !title.equals(that.title) : that.title != null) 
return false;
+        if (webpage != null ? !webpage.equals(that.webpage) : that.webpage != 
null) return false;
+
+        return true;
+    }
+
+    @Override
+    public int hashCode() {
+        int result = address != null ? address.hashCode() : 0;
+        result = 31 * result + (description != null ? description.hashCode() : 
0);
+        result = 31 * result + (endDate != null ? endDate.hashCode() : 0);
+        result = 31 * result + (field != null ? field.hashCode() : 0);
+        result = 31 * result + (name != null ? name.hashCode() : 0);
+        result = 31 * result + (startDate != null ? startDate.hashCode() : 0);
+        result = 31 * result + (subField != null ? subField.hashCode() : 0);
+        result = 31 * result + (title != null ? title.hashCode() : 0);
+        result = 31 * result + (webpage != null ? webpage.hashCode() : 0);
+        result = 31 * result + (qualifier != null ? qualifier.hashCode() : 0);
+        result = 31 * result + (primary != null ? primary.hashCode() : 0);
+        return result;
+    }
+}


Reply via email to