Class LikeProperties
java.lang.Object
org.odpi.openmetadata.accessservices.communityprofile.properties.LikeProperties
- All Implemented Interfaces:
Serializable
The LikeProperties properties object records a single user's "like" of an asset.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorLikeProperties
(LikeProperties template) Copy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
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.getUser()
Return the user id of the person who created the like.int
hashCode()
Create a hash code for this element type.void
setIsPublic
(boolean aPublic) Set up whether the like is private to the creating user or not.void
Set up he user id of the person who created the like.toString()
Standard toString method.
-
Constructor Details
-
LikeProperties
public LikeProperties()Default constructor -
LikeProperties
Copy/clone constructor.- Parameters:
template
- element to copy
-
-
Method Details
-
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
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
Standard toString method. -
equals
Compare the values of the supplied object with those stored in the current object. -
hashCode
public int hashCode()Create a hash code for this element type.
-