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.booleangetIsPublic()Return whether this record can be shared with colleagues.longgetKarmaPointPlateau()Return the current karma point plateau level for this person.longgetKarmaPoints()Return the karma points awarded to this person.inthashCode()Just use the GUID for the hash code as it should be unique.voidsetIsPublic(boolean isPublic)Set up whether this record can be shared with colleagues.voidsetKarmaPointPlateau(long karmaPointPlateau)Set up the karma point plateau level for this person.voidsetKarmaPoints(long 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, getEffectiveFrom, getEffectiveTo, getExtendedProperties, getQualifiedName, getTypeName, getVendorProperties, setAdditionalProperties, setEffectiveFrom, setEffectiveTo, 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 long getKarmaPoints()
Return the karma points awarded to this person.- Returns:
- count
-
setKarmaPoints
public void setKarmaPoints(long karmaPoints)
Set up the karma points for this person.- Parameters:
karmaPoints- count
-
getKarmaPointPlateau
public long getKarmaPointPlateau()
Return the current karma point plateau level for this person.- Returns:
- count
-
setKarmaPointPlateau
public void setKarmaPointPlateau(long karmaPointPlateau)
Set up the karma point plateau level for this person.- Parameters:
karmaPointPlateau- count
-
getIsPublic
public boolean getIsPublic()
Return whether this record can be shared with colleagues.- Returns:
- flag
-
setIsPublic
public void setIsPublic(boolean isPublic)
Set up whether this record can be shared with colleagues.- Parameters:
isPublic- flag
-
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
-
-