Class Like
java.lang.Object
org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementControlHeader
org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader
org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
org.odpi.openmetadata.frameworks.connectors.properties.beans.Like
- All Implemented Interfaces:
Serializable
The Like properties object records a single user's "like" of an asset.
- See Also:
-
Field Summary
FieldsFields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
extendedProperties, urlFields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
CURRENT_AUDIT_HEADER_VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.booleanReturn if this like is private to the creating user.getUser()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.voidSet up the user id of the person who created the like.toString()Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
getExtendedProperties, getURL, setExtendedProperties, setURLMethods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader
getClassifications, getGUID, setClassifications, setGUIDMethods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementControlHeader
getOrigin, getStatus, getType, getVersions, setOrigin, setStatus, setType, setVersionsMethods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
getHeaderVersion, setHeaderVersion
-
Field Details
-
user
-
isPublic
protected boolean isPublic
-
-
Constructor Details
-
Like
public Like()Default constructor -
Like
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 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
Standard toString method.- Overrides:
toStringin classElementBase- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classElementBase- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Hash of properties- Overrides:
hashCodein classElementBase- Returns:
- int
-