1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.exoplatform.calendar.ws.bean;
19
20 import static org.exoplatform.calendar.ws.CalendarRestApi.EVENT_URI;
21 import static org.exoplatform.calendar.ws.CalendarRestApi.INVITATION_URI;
22
23 import java.io.Serializable;
24
25 import org.exoplatform.calendar.service.Invitation;
26 import org.exoplatform.calendar.ws.common.Resource;
27
28 public class InvitationResource extends Resource {
29 private static final long serialVersionUID = -5546515171185717545L;
30
31 private Serializable event;
32
33 private String participant;
34
35 private String status;
36
37 public InvitationResource() {
38 super(null);
39 }
40
41 public InvitationResource(Invitation data, String basePath) {
42 super(data.getId());
43 setHref(new StringBuffer(basePath).append(INVITATION_URI).append(data.getId()).toString());
44 event = new StringBuffer(basePath).append(EVENT_URI).append(data.getEventId()).toString();
45 this.participant = data.getParticipant();
46 this.status = data.getStatus();
47 }
48
49 public Serializable getEvent() {
50 return event;
51 }
52
53 public void setEvt(Serializable event) {
54 this.event = event;
55 }
56
57 public String getParticipant() {
58 return participant;
59 }
60
61 public String getStatus() {
62 return status;
63 }
64
65 public void setParticipant(String participant) {
66 this.participant = participant;
67 }
68
69 public void setStatus(String status) {
70 this.status = status;
71 }
72 }