Package com.logicaldoc.core.ticket
Class Ticket
java.lang.Object
com.logicaldoc.core.PersistentObject
com.logicaldoc.core.ticket.Ticket
- All Implemented Interfaces:
Serializable
Represents ticket, most of the time this is used to model download tickets.
- Author:
- Michael Scholz, Marco Meschieri
- See Also:
-
Field Summary
Fields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getCount()
long
getDocId()
int
int
getType()
getUrl()
long
boolean
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
void
setTicketId
(String ticketId) void
setType
(int type) void
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 Details
-
DOWNLOAD
public static final int DOWNLOAD- See Also:
-
PSW_RECOVERY
public static final int PSW_RECOVERY- See Also:
-
-
Constructor Details
-
Ticket
public Ticket()
-
-
Method Details
-
getDocId
public long getDocId() -
setDocId
public void setDocId(long docId) -
getTicketId
- Returns:
- Returns the ticketId.
-
setTicketId
- 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
-
setCreation
-
getExpired
-
setExpired
-
getCount
public int getCount() -
setCount
public void setCount(int count) -
isTicketExpired
public boolean isTicketExpired() -
getSuffix
-
setSuffix
-
getUrl
-
setUrl
-
getMaxCount
-
setMaxCount
-
getEnabled
public int getEnabled() -
setEnabled
public void setEnabled(int enabled)
-