1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.exoplatform.calendar.ws.common;
19
20 import java.io.Serializable;
21
22 import org.json.JSONObject;
23
24 public abstract class Resource implements Serializable {
25
26 private static final long serialVersionUID = 3422763517401399776L;
27 private String id;
28 private String href;
29
30 public Resource(String id) {
31 this.id = id;
32 }
33
34 public String getId(){
35 return id;
36 }
37
38 public void setId(String id) {
39 this.id = id;
40 }
41
42 public String getHref() {
43 return href;
44 }
45
46 public void setHref(String href) {
47 this.href = href;
48 }
49
50 @Override
51 public String toString() {
52 return new JSONObject(this).toString();
53 }
54 }