View Javadoc
1   /*
2    * Copyright (C) 2003-2010 eXo Platform SAS.
3    *
4    * This program is free software; you can redistribute it and/or
5    * modify it under the terms of the GNU Affero General Public License
6    * as published by the Free Software Foundation; either version 3
7    * of the License, or (at your option) any later version.
8    *
9    * This program is distributed in the hope that it will be useful,
10   * but WITHOUT ANY WARRANTY; without even the implied warranty of
11   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12   * GNU General Public License for more details.
13   *
14   * You should have received a copy of the GNU General Public License
15   * along with this program; if not, see<http://www.gnu.org/licenses/>.
16   */
17  package org.exoplatform.webservice.cs.bean;
18  
19  /**
20   * Created by The eXo Platform SAS
21   * Author : Hoang Manh Dung
22   *          dung.hoang@exoplatform.com
23   * Jan 4, 2011  
24   */
25  public class SingleEvent {
26  
27    private String summary         = "";
28  
29    private String description     = "";
30  
31    private String location        = "";
32  
33    private String eventState      = "";
34  
35    private String priority        = "";
36  
37    private long   startDateTime   = -1;
38  
39    private long   endDateTime     = -1;
40  
41    private long   startTimeOffset = 0;
42  
43    private long   endTimeOffset   = 0;
44  
45    private String dateFormat      = "";
46  
47    private boolean isVirtual = true;
48    private boolean isEvent = true ;
49    private boolean isOccurrence = false;
50  
51  
52    public String getSummary() {
53      return summary;
54    }
55  
56    public void setSummary(String summary) {
57      this.summary = summary != null ? summary : "";
58    }
59  
60    public String getDescription() {
61      return description;
62    }
63  
64    public void setDescription(String description) {
65      this.description = description != null ? description : "";
66    }
67  
68    public String getLocation() {
69      return location;
70    }
71  
72    public void setLocation(String location) {
73      this.location = location != null ? location : "";
74    }
75  
76    public String getEventState() {
77      return eventState;
78    }
79  
80    public void setEventState(String eventState) {
81      this.eventState = eventState != null ? eventState : "";
82    }
83  
84    public String getPriority() {
85      return priority;
86    }
87  
88    public void setPriority(String priority) {
89      this.priority = priority != null ? priority : "";
90    }
91  
92    public long getStartDateTime() {
93      return startDateTime;
94    }
95  
96    public void setStartDateTime(long startDateTime) {
97      this.startDateTime = startDateTime;
98    }
99  
100   public long getEndDateTime() {
101     return endDateTime;
102   }
103 
104   public void setEndDateTime(long endDateTime) {
105     this.endDateTime = endDateTime;
106   }
107 
108   public long getStartTimeOffset() {
109     return startTimeOffset;
110   }
111 
112   public void setStartTimeOffset(long startTimeOffset) {
113     this.startTimeOffset = startTimeOffset;
114   }
115 
116   public long getEndTimeOffset() {
117     return endTimeOffset;
118   }
119 
120   public void setEndTimeOffset(long endTimeOffset) {
121     this.endTimeOffset = endTimeOffset;
122   }
123 
124   public String getDateFormat() {
125     return dateFormat;
126   }
127 
128   public void setDateFormat(String dateFormat) {
129     this.dateFormat = dateFormat;
130   }
131 
132   public boolean isVirtual() {
133     return isVirtual;
134   }
135 
136   public void setVirtual(boolean virtual) {
137     isVirtual = virtual;
138   }
139 
140   public boolean isEvent() {
141     return isEvent;
142   }
143 
144   public void setEvent(boolean event) {
145     isEvent = event;
146   }
147 
148   public boolean isOccurrence() {
149     return isOccurrence;
150   }
151 
152   public void setOccurrence(boolean occurrence) {
153     isOccurrence = occurrence;
154   }
155 }