Class ContributionRecord
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.communityprofile.properties.ReferenceableProperties
-
- org.odpi.openmetadata.accessservices.communityprofile.properties.ContributionRecord
-
- All Implemented Interfaces:
Serializable
public class ContributionRecord extends ReferenceableProperties
The ContributionRecord holds the information about an individual's contribution to the open metadata ecosystem. The base types provide support for karma points. This can be extended using the open metadata type system and these new properties can be maintained using the extended properties.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ContributionRecord()Default ConstructorContributionRecord(ContributionRecord template)Copy/clone Constructor - the resulting object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Equals method that returns true if containing properties are the same.intgetKarmaPointPlateau()Return the current karma point plateau level for this person.intgetKarmaPoints()Return the karma points awarded to this person.inthashCode()Just use the GUID for the hash code as it should be unique.voidsetKarmaPointPlateau(int karmaPointPlateau)Set up the karma point plateau level for this person.voidsetKarmaPoints(int karmaPoints)Set up the karma points for this person.StringtoString()JSON-style toString.-
Methods inherited from class org.odpi.openmetadata.accessservices.communityprofile.properties.ReferenceableProperties
getAdditionalProperties, getExtendedProperties, getQualifiedName, getTypeName, getVendorProperties, setAdditionalProperties, setExtendedProperties, setQualifiedName, setTypeName, setVendorProperties
-
-
-
-
Constructor Detail
-
ContributionRecord
public ContributionRecord()
Default Constructor
-
ContributionRecord
public ContributionRecord(ContributionRecord template)
Copy/clone Constructor - the resulting object.- Parameters:
template- object being copied
-
-
Method Detail
-
getKarmaPoints
public int getKarmaPoints()
Return the karma points awarded to this person.- Returns:
- count
-
setKarmaPoints
public void setKarmaPoints(int karmaPoints)
Set up the karma points for this person.- Parameters:
karmaPoints- count
-
getKarmaPointPlateau
public int getKarmaPointPlateau()
Return the current karma point plateau level for this person.- Returns:
- count
-
setKarmaPointPlateau
public void setKarmaPointPlateau(int karmaPointPlateau)
Set up the karma point plateau level for this person.- Parameters:
karmaPointPlateau- count
-
toString
public String toString()
JSON-style toString.- Overrides:
toStringin classReferenceableProperties- Returns:
- list of properties and their values.
-
equals
public boolean equals(Object objectToCompare)
Equals method that returns true if containing properties are the same.- Overrides:
equalsin classReferenceableProperties- Parameters:
objectToCompare- object to compare- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Just use the GUID for the hash code as it should be unique.- Overrides:
hashCodein classReferenceableProperties- Returns:
- int code
-
-