Class LikeProperties
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.assetconsumer.properties.LikeProperties
-
- All Implemented Interfaces:
Serializable
public class LikeProperties extends Object implements Serializable
The LikeProperties properties object records a single user's "like" of an asset.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LikeProperties()Default constructorLikeProperties(LikeProperties template)Copy/clone constructor.
-
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()Create a hash code for this element type.voidsetIsPublic(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.
-
-
-
Constructor Detail
-
LikeProperties
public LikeProperties()
Default constructor
-
LikeProperties
public LikeProperties(LikeProperties 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.
-
equals
public boolean equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.
-
-