Class Like
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.Like
-
- All Implemented Interfaces:
Serializable
public class Like extends ElementHeader
The Like properties object records a single user's "like" of an asset.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanisPublicprotected Stringuser-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader
classifications, extendedProperties, guid, type, url
-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
CURRENT_AUDIT_HEADER_VERSION
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Compare the values of the supplied object with those stored in the current object.booleangetIsPublic()Return if this like is private to the creating user.StringgetUser()Return the user id of the person who created the like.inthashCode()Hash of propertiesvoidsetIsPublic(boolean aPublic)Set up whether the like is private to the creating user or not.voidsetUser(String user)Set up he user id of the person who created the like.StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader
getClassifications, getExtendedProperties, getGUID, getType, getURL, setClassifications, setExtendedProperties, setGUID, setType, setURL
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
getHeaderVersion, setHeaderVersion
-
-
-
-
Field Detail
-
user
protected String user
-
isPublic
protected boolean isPublic
-
-
Constructor Detail
-
Like
public Like()
Default constructor
-
Like
public Like(Like template)
Copy/clone constructor.- Parameters:
template- element to copy
-
-
Method Detail
-
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 he 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:
toStringin classElementHeader- 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:
equalsin classElementHeader- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Hash of properties- Overrides:
hashCodein classElementHeader- Returns:
- int
-
-