Class AssetLike
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyElementBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetElementHeader
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetLike
-
- All Implemented Interfaces:
Serializable
public class AssetLike extends AssetElementHeader
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 LikelikeBean-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyBase
parentAsset
-
-
Constructor Summary
Constructors Constructor Description AssetLike(AssetDescriptor parentAsset, AssetLike templateLike)Copy/clone constructor.AssetLike(AssetDescriptor parentAsset, Like likeBean)Bean constructor with parent assetAssetLike(Like likeBean)Bean 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.protected LikegetLikeBean()Return the bean with the properties.StringgetUser()Return the user id of the person who created the like.inthashCode()Hash of propertiesbooleanisPublic()Return if this like is private to the creating user.StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetElementHeader
getAssetClassifications, getElementHeaderBean, getExtendedProperties, getGUID, getType, getURL, setBean
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyBase
getParentAsset, getParentAssetName, getParentAssetTypeName
-
-
-
-
Field Detail
-
likeBean
protected Like likeBean
-
-
Constructor Detail
-
AssetLike
public AssetLike(Like likeBean)
Bean constructor- Parameters:
likeBean- bean containing the like properties
-
AssetLike
public AssetLike(AssetDescriptor parentAsset, Like likeBean)
Bean constructor with parent asset- Parameters:
parentAsset- descriptor for parent assetlikeBean- bean containing the like properties
-
AssetLike
public AssetLike(AssetDescriptor parentAsset, AssetLike templateLike)
Copy/clone constructor.- Parameters:
parentAsset- descriptor for parent assettemplateLike- element to copy
-
-
Method Detail
-
getLikeBean
protected Like getLikeBean()
Return the bean with the properties.- Returns:
- like bean
-
isPublic
public boolean isPublic()
Return if this like is private to the creating user.- Returns:
- boolean
-
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
-
toString
public String toString()
Standard toString method.- Overrides:
toStringin classAssetElementHeader- 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 classAssetElementHeader- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Hash of properties- Overrides:
hashCodein classAssetElementHeader- Returns:
- int
-
-