Class ContributionRecord
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataRootProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.ReferenceableProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.actors.ContributionRecord
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.
-
Constructor Summary
ConstructorDescriptionDefault ConstructorContributionRecord
(ContributionRecord template) Copy/clone Constructor - the resulting object. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Equals method that returns true if containing properties are the same.boolean
Return whether this record can be shared with colleagues.long
Return the current karma point plateau level for this person.long
Return the karma points awarded to this person.int
hashCode()
Just use the GUID for the hash code as it should be unique.void
setIsPublic
(boolean isPublic) Set up whether this record can be shared with colleagues.void
setKarmaPointPlateau
(long karmaPointPlateau) Set up the karma point plateau level for this person.void
setKarmaPoints
(long karmaPoints) Set up the karma points for this person.toString()
JSON-style toString.Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.ReferenceableProperties
getAdditionalProperties, getQualifiedName, getVendorProperties, setAdditionalProperties, setQualifiedName, setVendorProperties
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataRootProperties
getEffectiveFrom, getEffectiveTo, getExtendedProperties, getTypeName, setEffectiveFrom, setEffectiveTo, setExtendedProperties, setTypeName
-
Constructor Details
-
ContributionRecord
public ContributionRecord()Default Constructor -
ContributionRecord
Copy/clone Constructor - the resulting object.- Parameters:
template
- object being copied
-
-
Method Details
-
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
JSON-style toString.- Overrides:
toString
in classReferenceableProperties
- Returns:
- list of properties and their values.
-
equals
Equals method that returns true if containing properties are the same.- Overrides:
equals
in 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:
hashCode
in classReferenceableProperties
- Returns:
- int code
-