Class Like


  • public class Like
    extends Object
    A liking expressed by an user about some entity.
    Since:
    8.0.0
    Version:
    $Revision: 17049 $ $Date: 2015-03-03 11:26:53 -0300 (Tue, 03 Mar 2015) $
    • Field Detail

      • NAMED_QUERY_DELETE_BY_SERVICEINSTANCEID

        protected static final String NAMED_QUERY_DELETE_BY_SERVICEINSTANCEID
        See Also:
        Constant Field Values
      • NAMED_QUERY_FIND_BY_ITEMID_AND_SERVICEINSTANCEID

        protected static final String NAMED_QUERY_FIND_BY_ITEMID_AND_SERVICEINSTANCEID
        See Also:
        Constant Field Values
      • NAMED_QUERY_FIND_LIKE_BY_ITEMID_AND_USERID_AND_SERVICEINSTANCEID

        protected static final String NAMED_QUERY_FIND_LIKE_BY_ITEMID_AND_USERID_AND_SERVICEINSTANCEID
        See Also:
        Constant Field Values
    • Constructor Detail

      • Like

        public Like()
    • Method Detail

      • getId

        public String getId()
        Returns this liking's identifier.
        Returns:
        this liking's identifier.
        Since:
        8.0.0
      • setId

        public void setId​(String id)
        Sets this liking's identifier.
        Parameters:
        id - the identifier value to set.
        Since:
        8.0.0
      • getServiceInstanceId

        public String getServiceInstanceId()
        Returns the identifier of the service instance from this liking.
        Returns:
        the identifier of the service instance from this liking.
        Since:
        8.0.0
      • setServiceInstanceId

        public void setServiceInstanceId​(String serviceInstanceId)
        Sets the identifier of the service instance from this liking.
        Parameters:
        serviceInstanceId - the service instance identifier value to set.
        Since:
        8.0.0
      • getItemId

        public String getItemId()
        Returns the identifier of the entity which this liking is related.
        Returns:
        the the identifier of the entity which this liking is related.
        Since:
        8.0.0
      • setItemId

        public void setItemId​(String itemId)
        Sets the identifier of the entity which this liking is related.
        Parameters:
        itemId - the liking's identifier value to set.
        Since:
        8.0.0
      • getItemName

        public String getItemName()
        Returns the title of the entity which this liking is related.
        Returns:
        the title of the entity which this liking is related.
        Since:
        8.0.0
      • setItemName

        public void setItemName​(String itemName)
        Sets the title of the entity which this liking is related.
        Parameters:
        itemName - the liking's title value to set.
        Since:
        8.0.0
      • getItemServiceInstanceId

        public String getItemServiceInstanceId()
        Returns the identifier of the service instance from the entity which this liking is related.
        Returns:
        the identifier of the service instance from the entity which this liking is related.
        Since:
        8.0.0
      • setItemServiceInstanceId

        public void setItemServiceInstanceId​(String itemServiceInstanceId)
        Sets the identifier of the service instance from the entity which this liking is related.
        Parameters:
        itemServiceInstanceId - the liking's service instance identifier value to set.
        Since:
        8.0.0
      • getItemUrl

        public String getItemUrl()
        Returns the URL to the details page of entity which this liking is related.
        Returns:
        the URL to the details page of entity which this liking is related.
        Since:
        8.0.0
      • setItemUrl

        public void setItemUrl​(String itemUrl)
        Sets the URL to the details page of entity which this liking is related.
        Parameters:
        itemUrl - the liking's details page URL value to set.
        Since:
        8.0.0
      • getLikeDate

        public Date getLikeDate()
        Returns this liking's expression date.
        Returns:
        this liking's expression date.
        Since:
        8.0.0
      • getUserId

        public String getUserId()
        Returns the identifier of the user which expressed this liking.
        Returns:
        the identifier of the user which expressed this liking.
        Since:
        8.0.0