You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rave.apache.org by mf...@apache.org on 2012/06/04 17:30:29 UTC

svn commit: r1346011 - in /rave/branches/model_interfaces/rave-components/rave-core/src/main/java/org/apache/rave/portal/model/impl: OrganizationImpl.java PersonPropertyImpl.java

Author: mfranklin
Date: Mon Jun  4 15:30:28 2012
New Revision: 1346011

URL: http://svn.apache.org/viewvc?rev=1346011&view=rev
Log:
Added PersonProperty Impl (RAVE-630)

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

Modified: rave/branches/model_interfaces/rave-components/rave-core/src/main/java/org/apache/rave/portal/model/impl/OrganizationImpl.java
URL: http://svn.apache.org/viewvc/rave/branches/model_interfaces/rave-components/rave-core/src/main/java/org/apache/rave/portal/model/impl/OrganizationImpl.java?rev=1346011&r1=1346010&r2=1346011&view=diff
==============================================================================
--- rave/branches/model_interfaces/rave-components/rave-core/src/main/java/org/apache/rave/portal/model/impl/OrganizationImpl.java (original)
+++ rave/branches/model_interfaces/rave-components/rave-core/src/main/java/org/apache/rave/portal/model/impl/OrganizationImpl.java Mon Jun  4 15:30:28 2012
@@ -1,9 +1,10 @@
 package org.apache.rave.portal.model.impl;
 import org.apache.rave.portal.model.Address;
+import org.apache.rave.portal.model.Organization;
 
 import java.util.Date;
 
-public class OrganizationImpl {
+public class OrganizationImpl implements Organization {
     private Address address;
     private String description;
     private Date endDate;

Added: rave/branches/model_interfaces/rave-components/rave-core/src/main/java/org/apache/rave/portal/model/impl/PersonPropertyImpl.java
URL: http://svn.apache.org/viewvc/rave/branches/model_interfaces/rave-components/rave-core/src/main/java/org/apache/rave/portal/model/impl/PersonPropertyImpl.java?rev=1346011&view=auto
==============================================================================
--- rave/branches/model_interfaces/rave-components/rave-core/src/main/java/org/apache/rave/portal/model/impl/PersonPropertyImpl.java (added)
+++ rave/branches/model_interfaces/rave-components/rave-core/src/main/java/org/apache/rave/portal/model/impl/PersonPropertyImpl.java Mon Jun  4 15:30:28 2012
@@ -0,0 +1,91 @@
+package org.apache.rave.portal.model.impl;
+
+import org.apache.rave.portal.model.PersonProperty;
+
+/** **/
+public class PersonPropertyImpl implements PersonProperty {
+
+    private Long id;
+    private String type;
+    private String value;
+    private String qualifier;
+    private String extendedValue;
+    private Boolean primary;
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+
+    public String getType() {
+        return type;
+    }
+
+    public void setType(String type) {
+        this.type = type;
+    }
+
+    public String getValue() {
+        return value;
+    }
+
+    public void setValue(String value) {
+        this.value = value;
+    }
+
+    public String getQualifier() {
+        return qualifier;
+    }
+
+    public void setQualifier(String qualifier) {
+        this.qualifier = qualifier;
+    }
+
+    public String getExtendedValue() {
+        return extendedValue;
+    }
+
+    public void setExtendedValue(String extendedValue) {
+        this.extendedValue = extendedValue;
+    }
+
+    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 PersonPropertyImpl)) return false;
+
+        PersonPropertyImpl that = (PersonPropertyImpl) o;
+
+        if (extendedValue != null ? !extendedValue.equals(that.extendedValue) : that.extendedValue != null)
+            return false;
+        if (id != null ? !id.equals(that.id) : that.id != 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 (type != null ? !type.equals(that.type) : that.type != null) return false;
+        if (value != null ? !value.equals(that.value) : that.value != null) return false;
+
+        return true;
+    }
+
+    @Override
+    public int hashCode() {
+        int result = id != null ? id.hashCode() : 0;
+        result = 31 * result + (type != null ? type.hashCode() : 0);
+        result = 31 * result + (value != null ? value.hashCode() : 0);
+        result = 31 * result + (qualifier != null ? qualifier.hashCode() : 0);
+        result = 31 * result + (extendedValue != null ? extendedValue.hashCode() : 0);
+        result = 31 * result + (primary != null ? primary.hashCode() : 0);
+        return result;
+    }
+}