Package com.logicaldoc.core.ticket
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intDOWNLOADstatic intPSW_RECOVERY-
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 intgetCount()DategetCreation()longgetDocId()intgetEnabled()DategetExpired()IntegergetMaxCount()StringgetSuffix()StringgetTicketId()intgetType()StringgetUrl()longgetUserId()booleanisTicketExpired()voidsetCount(int count)voidsetCreation(Date creation)voidsetDocId(long docId)voidsetEnabled(int enabled)voidsetExpired(Date expired)voidsetMaxCount(Integer maxCount)voidsetSuffix(String suffix)voidsetTicketId(String ticketId)voidsetType(int type)voidsetUrl(String url)voidsetUserId(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
-
DOWNLOAD
public static final int DOWNLOAD
- 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)
-
-