Class ClickHistory


  • @Entity
    public class ClickHistory
    extends SessionResult
    A single entry in the user's click history
    Since:
    12.5
    • Field Detail

      • clickDate

        private Date clickDate
        Date when the click was performed
      • query

        private String query

        Query that returned this result

        Might be null if there was no referer available.

      • metaData

        private final Map<String,​String> metaData
        Metadata values for the result at the time the result was first clicked by the user.
    • Constructor Detail

      • ClickHistory

        public ClickHistory()
    • Method Detail

      • prePersist

        protected void prePersist()
        Truncate metadata to maximum size allowed in the database before saving to database
        Overrides:
        prePersist in class SessionResult
      • getClickDate

        public Date getClickDate()
        Date when the click was performed
      • setClickDate

        public void setClickDate​(Date clickDate)
        Date when the click was performed
      • getQuery

        public String getQuery()

        Query that returned this result

        Might be null if there was no referer available.

      • setQuery

        public void setQuery​(String query)

        Query that returned this result

        Might be null if there was no referer available.

      • getMetaData

        public Map<String,​String> getMetaData()
        Metadata values for the result at the time the result was first clicked by the user.