01: package org.contineo.core.document;
02:
03: /**
04: * Represents a download ticket.
05: *
06: * @author Michael Scholz
07: */
08: public class DownloadTicket {
09: private String ticketId = "";
10:
11: private int menuId = 0;
12:
13: private String username = "";
14:
15: public DownloadTicket() {
16:
17: }
18:
19: /**
20: * @return Returns the menuId.
21: * @uml.property name="menuId"
22: */
23: public int getMenuId() {
24: return menuId;
25: }
26:
27: /**
28: * @param menuId The menuId to set.
29: * @uml.property name="menuId"
30: */
31: public void setMenuId(int menuId) {
32: this .menuId = menuId;
33: }
34:
35: /**
36: * @return Returns the ticketId.
37: * @uml.property name="ticketId"
38: */
39: public String getTicketId() {
40: return ticketId;
41: }
42:
43: /**
44: * @param ticketId The ticketId to set.
45: * @uml.property name="ticketId"
46: */
47: public void setTicketId(String ticketId) {
48: this .ticketId = ticketId;
49: }
50:
51: /**
52: * @return Returns the username.
53: * @uml.property name="username"
54: */
55: public String getUsername() {
56: return username;
57: }
58:
59: /**
60: * @param username The username to set.
61: * @uml.property name="username"
62: */
63: public void setUsername(String username) {
64: this .username = username;
65: }
66:
67: @Override
68: public boolean equals(Object obj) {
69: if (!(obj instanceof DownloadTicket))
70: return false;
71: DownloadTicket other = (DownloadTicket) obj;
72: return this .getTicketId().equals(other.getTicketId());
73: }
74:
75: @Override
76: public int hashCode() {
77: return ticketId.hashCode();
78: }
79: }
|