java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementHeader
org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
org.odpi.openmetadata.frameworks.connectors.properties.beans.Like

public class Like extends ElementBase
The Like properties object records a single user's "like" of an asset.
  • Field Summary

    Fields inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader

    CURRENT_AUDIT_HEADER_VERSION
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
    Like(Like template)
    Copy/clone constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object objectToCompare)
    Compare the values of the supplied object with those stored in the current object.
    boolean
    Return if this like is private to the creating user.
    Return the user id of the person who created the like.
    int
    Hash of properties
    void
    setIsPublic(boolean aPublic)
    Set up whether the like is private to the creating user or not.
    void
    Set up the user id of the person who created the like.
    Standard toString method.

    Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase

    getExtendedProperties, setExtendedProperties

    Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementHeader

    getClassifications, getGUID, setClassifications, setGUID

    Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader

    getHeaderVersion, getOrigin, getStatus, getType, getVersions, setHeaderVersion, setOrigin, setStatus, setType, setVersions

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Like

      public Like()
      Default constructor
    • Like

      public Like(Like template)
      Copy/clone constructor.
      Parameters:
      template - element to copy
  • Method Details

    • getUser

      public String getUser()
      Return the user id of the person who created the like. Null means the user id is not known.
      Returns:
      String liking user
    • setUser

      public void setUser(String user)
      Set up the user id of the person who created the like. Null means the user id is not known.
      Parameters:
      user - String liking user
    • getIsPublic

      public boolean getIsPublic()
      Return if this like is private to the creating user.
      Returns:
      boolean
    • setIsPublic

      public void setIsPublic(boolean aPublic)
      Set up whether the like is private to the creating user or not.
      Parameters:
      aPublic - boolean
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class ElementBase
      Returns:
      print out of variables in a JSON-style
    • equals

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class ElementBase
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Hash of properties
      Overrides:
      hashCode in class ElementBase
      Returns:
      int