Class AssetLike

    • 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 asset
        likeBean - bean containing the like properties
      • AssetLike

        public AssetLike​(AssetDescriptor parentAsset,
                         AssetLike templateLike)
        Copy/clone constructor.
        Parameters:
        parentAsset - descriptor for parent asset
        templateLike - 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:
        toString in class AssetElementHeader
        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:
        equals in class AssetElementHeader
        Parameters:
        objectToCompare - supplied object
        Returns:
        boolean result of comparison