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
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
Fields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
getCount()
long
getDocId()
int
int
getType()
getUrl()
long
int
getViews()
int
hashCode()
boolean
boolean
void
setCount
(int count) void
setDocId
(long docId) void
setEnabled
(int enabled) void
setExpired
(Date expired) void
setExpireHours
(Integer expireHours) void
setMaxCount
(Integer maxCount) void
setMaxViews
(Integer maxViews) void
void
setTicketId
(String ticketId) void
setType
(int type) void
void
setUserId
(long userId) void
setViews
(int views) Methods inherited from class com.logicaldoc.core.PersistentObject
getCreation, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, setCreation, 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:
-
VIEW
public static final int VIEW- 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) -
getExpired
-
setExpired
-
getCount
public int getCount() -
setCount
public void setCount(int count) -
isTicketExpired
public boolean isTicketExpired() -
isTicketViewExpired
public boolean isTicketViewExpired() -
getSuffix
-
setSuffix
-
getUrl
-
setUrl
-
getMaxCount
-
setMaxCount
-
getEnabled
public int getEnabled() -
setEnabled
public void setEnabled(int enabled) -
getViews
public int getViews() -
setViews
public void setViews(int views) -
getMaxViews
-
setMaxViews
-
getExpireHours
-
setExpireHours
-
hashCode
public int hashCode()- Overrides:
hashCode
in classPersistentObject
-
equals
- Overrides:
equals
in classPersistentObject
-