Class Ticket

  • All Implemented Interfaces:
    Serializable

    public class Ticket
    extends PersistentObject
    Represents ticket, most of the time this is used to model download tickets.
    Author:
    Michael Scholz, Marco Meschieri
    See Also:
    Serialized Form
    • Constructor Detail

      • Ticket

        public Ticket()
    • Method Detail

      • getDocId

        public long getDocId()
      • setDocId

        public void setDocId​(long docId)
      • getTicketId

        public String getTicketId()
        Returns:
        Returns the ticketId.
      • setTicketId

        public void setTicketId​(String ticketId)
        Parameters:
        ticketId - The ticketId to set.
      • getUserId

        public long getUserId()
      • setUserId

        public void setUserId​(long userId)
      • getType

        public int getType()
      • setType

        public void setType​(int type)
      • getCreation

        public Date getCreation()
      • setCreation

        public void setCreation​(Date creation)
      • getExpired

        public Date getExpired()
      • setExpired

        public void setExpired​(Date expired)
      • getCount

        public int getCount()
      • setCount

        public void setCount​(int count)
      • isTicketExpired

        public boolean isTicketExpired()
      • getSuffix

        public String getSuffix()
      • setSuffix

        public void setSuffix​(String suffix)
      • getUrl

        public String getUrl()
      • setUrl

        public void setUrl​(String url)
      • getMaxCount

        public Integer getMaxCount()
      • setMaxCount

        public void setMaxCount​(Integer maxCount)
      • getEnabled

        public int getEnabled()
      • setEnabled

        public void setEnabled​(int enabled)