Package com.logicaldoc.core.ticket
Class Ticket
- java.lang.Object
-
- com.logicaldoc.core.PersistentObject
-
- com.logicaldoc.core.ticket.Ticket
-
public class Ticket extends PersistentObject
Represents ticket, most of the time this is used to model download tickets.- Author:
- Michael Scholz, Marco Meschieri
-
-
Field Summary
Fields Modifier and Type Field Description static int
PSW_RECOVERY
static int
TICKET
-
Fields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG
-
-
Constructor Summary
Constructors Constructor Description Ticket()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCount()
Date
getCreation()
long
getDocId()
int
getEnabled()
Date
getExpired()
Integer
getMaxCount()
String
getSuffix()
String
getTicketId()
int
getType()
String
getUrl()
long
getUserId()
boolean
isTicketExpired()
void
setCount(int count)
void
setCreation(Date creation)
void
setDocId(long docId)
void
setEnabled(int enabled)
void
setExpired(Date expired)
void
setMaxCount(Integer maxCount)
void
setSuffix(String suffix)
void
setTicketId(String ticketId)
void
setType(int type)
void
setUrl(String url)
void
setUserId(long userId)
-
Methods inherited from class com.logicaldoc.core.PersistentObject
equals, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, hashCode, setDeleted, setId, setLastModified, setRecordVersion, setTenantId, toString
-
-
-
-
Field Detail
-
TICKET
public static final int TICKET
- See Also:
- Constant Field Values
-
PSW_RECOVERY
public static final int PSW_RECOVERY
- See Also:
- Constant Field Values
-
-
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)
-
-