Class Ticket

java.lang.Object
com.logicaldoc.core.PersistentObject
com.logicaldoc.core.ticket.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:
  • Field Details

  • Constructor Details

    • Ticket

      public Ticket()
  • Method Details

    • 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()
    • isTicketViewExpired

      public boolean isTicketViewExpired()
    • 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)
    • getViews

      public int getViews()
    • setViews

      public void setViews(int views)
    • getMaxViews

      public Integer getMaxViews()
    • setMaxViews

      public void setMaxViews(Integer maxViews)
    • getExpireHours

      public Integer getExpireHours()
    • setExpireHours

      public void setExpireHours(Integer expireHours)