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.
  • Constructor Details

    • ContributionRecord

      public ContributionRecord()
      Default Constructor
    • ContributionRecord

      public ContributionRecord(ContributionRecord template)
      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

      public String toString()
      JSON-style toString.
      Overrides:
      toString in class ReferenceableProperties
      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:
      equals in class ReferenceableProperties
      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 class ReferenceableProperties
      Returns:
      int code