1
7
8 package com.liferay.client.portlet.calendar.model;
9
10 public class CalEventSoap implements java.io.Serializable {
11 private boolean allDay;
12
13 private long companyId;
14
15 private java.util.Calendar createDate;
16
17 private java.lang.String description;
18
19 private int durationHour;
20
21 private int durationMinute;
22
23 private java.util.Calendar endDate;
24
25 private long eventId;
26
27 private int firstReminder;
28
29 private long groupId;
30
31 private java.util.Calendar modifiedDate;
32
33 private long primaryKey;
34
35 private java.lang.String recurrence;
36
37 private java.lang.String remindBy;
38
39 private boolean repeating;
40
41 private int secondReminder;
42
43 private java.util.Calendar startDate;
44
45 private boolean timeZoneSensitive;
46
47 private java.lang.String title;
48
49 private java.lang.String type;
50
51 private long userId;
52
53 private java.lang.String userName;
54
55 public CalEventSoap() {
56 }
57
58 public CalEventSoap(
59 boolean allDay,
60 long companyId,
61 java.util.Calendar createDate,
62 java.lang.String description,
63 int durationHour,
64 int durationMinute,
65 java.util.Calendar endDate,
66 long eventId,
67 int firstReminder,
68 long groupId,
69 java.util.Calendar modifiedDate,
70 long primaryKey,
71 java.lang.String recurrence,
72 java.lang.String remindBy,
73 boolean repeating,
74 int secondReminder,
75 java.util.Calendar startDate,
76 boolean timeZoneSensitive,
77 java.lang.String title,
78 java.lang.String type,
79 long userId,
80 java.lang.String userName) {
81 this.allDay = allDay;
82 this.companyId = companyId;
83 this.createDate = createDate;
84 this.description = description;
85 this.durationHour = durationHour;
86 this.durationMinute = durationMinute;
87 this.endDate = endDate;
88 this.eventId = eventId;
89 this.firstReminder = firstReminder;
90 this.groupId = groupId;
91 this.modifiedDate = modifiedDate;
92 this.primaryKey = primaryKey;
93 this.recurrence = recurrence;
94 this.remindBy = remindBy;
95 this.repeating = repeating;
96 this.secondReminder = secondReminder;
97 this.startDate = startDate;
98 this.timeZoneSensitive = timeZoneSensitive;
99 this.title = title;
100 this.type = type;
101 this.userId = userId;
102 this.userName = userName;
103 }
104
105
106
111 public boolean isAllDay() {
112 return allDay;
113 }
114
115
116
121 public void setAllDay(boolean allDay) {
122 this.allDay = allDay;
123 }
124
125
126
131 public long getCompanyId() {
132 return companyId;
133 }
134
135
136
141 public void setCompanyId(long companyId) {
142 this.companyId = companyId;
143 }
144
145
146
151 public java.util.Calendar getCreateDate() {
152 return createDate;
153 }
154
155
156
161 public void setCreateDate(java.util.Calendar createDate) {
162 this.createDate = createDate;
163 }
164
165
166
171 public java.lang.String getDescription() {
172 return description;
173 }
174
175
176
181 public void setDescription(java.lang.String description) {
182 this.description = description;
183 }
184
185
186
191 public int getDurationHour() {
192 return durationHour;
193 }
194
195
196
201 public void setDurationHour(int durationHour) {
202 this.durationHour = durationHour;
203 }
204
205
206
211 public int getDurationMinute() {
212 return durationMinute;
213 }
214
215
216
221 public void setDurationMinute(int durationMinute) {
222 this.durationMinute = durationMinute;
223 }
224
225
226
231 public java.util.Calendar getEndDate() {
232 return endDate;
233 }
234
235
236
241 public void setEndDate(java.util.Calendar endDate) {
242 this.endDate = endDate;
243 }
244
245
246
251 public long getEventId() {
252 return eventId;
253 }
254
255
256
261 public void setEventId(long eventId) {
262 this.eventId = eventId;
263 }
264
265
266
271 public int getFirstReminder() {
272 return firstReminder;
273 }
274
275
276
281 public void setFirstReminder(int firstReminder) {
282 this.firstReminder = firstReminder;
283 }
284
285
286
291 public long getGroupId() {
292 return groupId;
293 }
294
295
296
301 public void setGroupId(long groupId) {
302 this.groupId = groupId;
303 }
304
305
306
311 public java.util.Calendar getModifiedDate() {
312 return modifiedDate;
313 }
314
315
316
321 public void setModifiedDate(java.util.Calendar modifiedDate) {
322 this.modifiedDate = modifiedDate;
323 }
324
325
326
331 public long getPrimaryKey() {
332 return primaryKey;
333 }
334
335
336
341 public void setPrimaryKey(long primaryKey) {
342 this.primaryKey = primaryKey;
343 }
344
345
346
351 public java.lang.String getRecurrence() {
352 return recurrence;
353 }
354
355
356
361 public void setRecurrence(java.lang.String recurrence) {
362 this.recurrence = recurrence;
363 }
364
365
366
371 public java.lang.String getRemindBy() {
372 return remindBy;
373 }
374
375
376
381 public void setRemindBy(java.lang.String remindBy) {
382 this.remindBy = remindBy;
383 }
384
385
386
391 public boolean isRepeating() {
392 return repeating;
393 }
394
395
396
401 public void setRepeating(boolean repeating) {
402 this.repeating = repeating;
403 }
404
405
406
411 public int getSecondReminder() {
412 return secondReminder;
413 }
414
415
416
421 public void setSecondReminder(int secondReminder) {
422 this.secondReminder = secondReminder;
423 }
424
425
426
431 public java.util.Calendar getStartDate() {
432 return startDate;
433 }
434
435
436
441 public void setStartDate(java.util.Calendar startDate) {
442 this.startDate = startDate;
443 }
444
445
446
451 public boolean isTimeZoneSensitive() {
452 return timeZoneSensitive;
453 }
454
455
456
461 public void setTimeZoneSensitive(boolean timeZoneSensitive) {
462 this.timeZoneSensitive = timeZoneSensitive;
463 }
464
465
466
471 public java.lang.String getTitle() {
472 return title;
473 }
474
475
476
481 public void setTitle(java.lang.String title) {
482 this.title = title;
483 }
484
485
486
491 public java.lang.String getType() {
492 return type;
493 }
494
495
496
501 public void setType(java.lang.String type) {
502 this.type = type;
503 }
504
505
506
511 public long getUserId() {
512 return userId;
513 }
514
515
516
521 public void setUserId(long userId) {
522 this.userId = userId;
523 }
524
525
526
531 public java.lang.String getUserName() {
532 return userName;
533 }
534
535
536
541 public void setUserName(java.lang.String userName) {
542 this.userName = userName;
543 }
544
545 private java.lang.Object __equalsCalc = null;
546 public synchronized boolean equals(java.lang.Object obj) {
547 if (!(obj instanceof CalEventSoap)) return false;
548 CalEventSoap other = (CalEventSoap) obj;
549 if (obj == null) return false;
550 if (this == obj) return true;
551 if (__equalsCalc != null) {
552 return (__equalsCalc == obj);
553 }
554 __equalsCalc = obj;
555 boolean _equals;
556 _equals = true &&
557 this.allDay == other.isAllDay() &&
558 this.companyId == other.getCompanyId() &&
559 ((this.createDate==null && other.getCreateDate()==null) ||
560 (this.createDate!=null &&
561 this.createDate.equals(other.getCreateDate()))) &&
562 ((this.description==null && other.getDescription()==null) ||
563 (this.description!=null &&
564 this.description.equals(other.getDescription()))) &&
565 this.durationHour == other.getDurationHour() &&
566 this.durationMinute == other.getDurationMinute() &&
567 ((this.endDate==null && other.getEndDate()==null) ||
568 (this.endDate!=null &&
569 this.endDate.equals(other.getEndDate()))) &&
570 this.eventId == other.getEventId() &&
571 this.firstReminder == other.getFirstReminder() &&
572 this.groupId == other.getGroupId() &&
573 ((this.modifiedDate==null && other.getModifiedDate()==null) ||
574 (this.modifiedDate!=null &&
575 this.modifiedDate.equals(other.getModifiedDate()))) &&
576 this.primaryKey == other.getPrimaryKey() &&
577 ((this.recurrence==null && other.getRecurrence()==null) ||
578 (this.recurrence!=null &&
579 this.recurrence.equals(other.getRecurrence()))) &&
580 ((this.remindBy==null && other.getRemindBy()==null) ||
581 (this.remindBy!=null &&
582 this.remindBy.equals(other.getRemindBy()))) &&
583 this.repeating == other.isRepeating() &&
584 this.secondReminder == other.getSecondReminder() &&
585 ((this.startDate==null && other.getStartDate()==null) ||
586 (this.startDate!=null &&
587 this.startDate.equals(other.getStartDate()))) &&
588 this.timeZoneSensitive == other.isTimeZoneSensitive() &&
589 ((this.title==null && other.getTitle()==null) ||
590 (this.title!=null &&
591 this.title.equals(other.getTitle()))) &&
592 ((this.type==null && other.getType()==null) ||
593 (this.type!=null &&
594 this.type.equals(other.getType()))) &&
595 this.userId == other.getUserId() &&
596 ((this.userName==null && other.getUserName()==null) ||
597 (this.userName!=null &&
598 this.userName.equals(other.getUserName())));
599 __equalsCalc = null;
600 return _equals;
601 }
602
603 private boolean __hashCodeCalc = false;
604 public synchronized int hashCode() {
605 if (__hashCodeCalc) {
606 return 0;
607 }
608 __hashCodeCalc = true;
609 int _hashCode = 1;
610 _hashCode += (isAllDay() ? Boolean.TRUE : Boolean.FALSE).hashCode();
611 _hashCode += new Long(getCompanyId()).hashCode();
612 if (getCreateDate() != null) {
613 _hashCode += getCreateDate().hashCode();
614 }
615 if (getDescription() != null) {
616 _hashCode += getDescription().hashCode();
617 }
618 _hashCode += getDurationHour();
619 _hashCode += getDurationMinute();
620 if (getEndDate() != null) {
621 _hashCode += getEndDate().hashCode();
622 }
623 _hashCode += new Long(getEventId()).hashCode();
624 _hashCode += getFirstReminder();
625 _hashCode += new Long(getGroupId()).hashCode();
626 if (getModifiedDate() != null) {
627 _hashCode += getModifiedDate().hashCode();
628 }
629 _hashCode += new Long(getPrimaryKey()).hashCode();
630 if (getRecurrence() != null) {
631 _hashCode += getRecurrence().hashCode();
632 }
633 if (getRemindBy() != null) {
634 _hashCode += getRemindBy().hashCode();
635 }
636 _hashCode += (isRepeating() ? Boolean.TRUE : Boolean.FALSE).hashCode();
637 _hashCode += getSecondReminder();
638 if (getStartDate() != null) {
639 _hashCode += getStartDate().hashCode();
640 }
641 _hashCode += (isTimeZoneSensitive() ? Boolean.TRUE : Boolean.FALSE).hashCode();
642 if (getTitle() != null) {
643 _hashCode += getTitle().hashCode();
644 }
645 if (getType() != null) {
646 _hashCode += getType().hashCode();
647 }
648 _hashCode += new Long(getUserId()).hashCode();
649 if (getUserName() != null) {
650 _hashCode += getUserName().hashCode();
651 }
652 __hashCodeCalc = false;
653 return _hashCode;
654 }
655
656 private static org.apache.axis.description.TypeDesc typeDesc =
658 new org.apache.axis.description.TypeDesc(CalEventSoap.class, true);
659
660 static {
661 typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.calendar.portlet.liferay.com", "CalEventSoap"));
662 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
663 elemField.setFieldName("allDay");
664 elemField.setXmlName(new javax.xml.namespace.QName("", "allDay"));
665 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
666 elemField.setNillable(false);
667 typeDesc.addFieldDesc(elemField);
668 elemField = new org.apache.axis.description.ElementDesc();
669 elemField.setFieldName("companyId");
670 elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
671 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
672 elemField.setNillable(false);
673 typeDesc.addFieldDesc(elemField);
674 elemField = new org.apache.axis.description.ElementDesc();
675 elemField.setFieldName("createDate");
676 elemField.setXmlName(new javax.xml.namespace.QName("", "createDate"));
677 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
678 elemField.setNillable(true);
679 typeDesc.addFieldDesc(elemField);
680 elemField = new org.apache.axis.description.ElementDesc();
681 elemField.setFieldName("description");
682 elemField.setXmlName(new javax.xml.namespace.QName("", "description"));
683 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
684 elemField.setNillable(true);
685 typeDesc.addFieldDesc(elemField);
686 elemField = new org.apache.axis.description.ElementDesc();
687 elemField.setFieldName("durationHour");
688 elemField.setXmlName(new javax.xml.namespace.QName("", "durationHour"));
689 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
690 elemField.setNillable(false);
691 typeDesc.addFieldDesc(elemField);
692 elemField = new org.apache.axis.description.ElementDesc();
693 elemField.setFieldName("durationMinute");
694 elemField.setXmlName(new javax.xml.namespace.QName("", "durationMinute"));
695 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
696 elemField.setNillable(false);
697 typeDesc.addFieldDesc(elemField);
698 elemField = new org.apache.axis.description.ElementDesc();
699 elemField.setFieldName("endDate");
700 elemField.setXmlName(new javax.xml.namespace.QName("", "endDate"));
701 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
702 elemField.setNillable(true);
703 typeDesc.addFieldDesc(elemField);
704 elemField = new org.apache.axis.description.ElementDesc();
705 elemField.setFieldName("eventId");
706 elemField.setXmlName(new javax.xml.namespace.QName("", "eventId"));
707 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
708 elemField.setNillable(false);
709 typeDesc.addFieldDesc(elemField);
710 elemField = new org.apache.axis.description.ElementDesc();
711 elemField.setFieldName("firstReminder");
712 elemField.setXmlName(new javax.xml.namespace.QName("", "firstReminder"));
713 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
714 elemField.setNillable(false);
715 typeDesc.addFieldDesc(elemField);
716 elemField = new org.apache.axis.description.ElementDesc();
717 elemField.setFieldName("groupId");
718 elemField.setXmlName(new javax.xml.namespace.QName("", "groupId"));
719 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
720 elemField.setNillable(false);
721 typeDesc.addFieldDesc(elemField);
722 elemField = new org.apache.axis.description.ElementDesc();
723 elemField.setFieldName("modifiedDate");
724 elemField.setXmlName(new javax.xml.namespace.QName("", "modifiedDate"));
725 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
726 elemField.setNillable(true);
727 typeDesc.addFieldDesc(elemField);
728 elemField = new org.apache.axis.description.ElementDesc();
729 elemField.setFieldName("primaryKey");
730 elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
731 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
732 elemField.setNillable(false);
733 typeDesc.addFieldDesc(elemField);
734 elemField = new org.apache.axis.description.ElementDesc();
735 elemField.setFieldName("recurrence");
736 elemField.setXmlName(new javax.xml.namespace.QName("", "recurrence"));
737 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
738 elemField.setNillable(true);
739 typeDesc.addFieldDesc(elemField);
740 elemField = new org.apache.axis.description.ElementDesc();
741 elemField.setFieldName("remindBy");
742 elemField.setXmlName(new javax.xml.namespace.QName("", "remindBy"));
743 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
744 elemField.setNillable(true);
745 typeDesc.addFieldDesc(elemField);
746 elemField = new org.apache.axis.description.ElementDesc();
747 elemField.setFieldName("repeating");
748 elemField.setXmlName(new javax.xml.namespace.QName("", "repeating"));
749 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
750 elemField.setNillable(false);
751 typeDesc.addFieldDesc(elemField);
752 elemField = new org.apache.axis.description.ElementDesc();
753 elemField.setFieldName("secondReminder");
754 elemField.setXmlName(new javax.xml.namespace.QName("", "secondReminder"));
755 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
756 elemField.setNillable(false);
757 typeDesc.addFieldDesc(elemField);
758 elemField = new org.apache.axis.description.ElementDesc();
759 elemField.setFieldName("startDate");
760 elemField.setXmlName(new javax.xml.namespace.QName("", "startDate"));
761 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
762 elemField.setNillable(true);
763 typeDesc.addFieldDesc(elemField);
764 elemField = new org.apache.axis.description.ElementDesc();
765 elemField.setFieldName("timeZoneSensitive");
766 elemField.setXmlName(new javax.xml.namespace.QName("", "timeZoneSensitive"));
767 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
768 elemField.setNillable(false);
769 typeDesc.addFieldDesc(elemField);
770 elemField = new org.apache.axis.description.ElementDesc();
771 elemField.setFieldName("title");
772 elemField.setXmlName(new javax.xml.namespace.QName("", "title"));
773 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
774 elemField.setNillable(true);
775 typeDesc.addFieldDesc(elemField);
776 elemField = new org.apache.axis.description.ElementDesc();
777 elemField.setFieldName("type");
778 elemField.setXmlName(new javax.xml.namespace.QName("", "type"));
779 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
780 elemField.setNillable(true);
781 typeDesc.addFieldDesc(elemField);
782 elemField = new org.apache.axis.description.ElementDesc();
783 elemField.setFieldName("userId");
784 elemField.setXmlName(new javax.xml.namespace.QName("", "userId"));
785 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
786 elemField.setNillable(false);
787 typeDesc.addFieldDesc(elemField);
788 elemField = new org.apache.axis.description.ElementDesc();
789 elemField.setFieldName("userName");
790 elemField.setXmlName(new javax.xml.namespace.QName("", "userName"));
791 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
792 elemField.setNillable(true);
793 typeDesc.addFieldDesc(elemField);
794 }
795
796
799 public static org.apache.axis.description.TypeDesc getTypeDesc() {
800 return typeDesc;
801 }
802
803
806 public static org.apache.axis.encoding.Serializer getSerializer(
807 java.lang.String mechType,
808 java.lang.Class _javaType,
809 javax.xml.namespace.QName _xmlType) {
810 return
811 new org.apache.axis.encoding.ser.BeanSerializer(
812 _javaType, _xmlType, typeDesc);
813 }
814
815
818 public static org.apache.axis.encoding.Deserializer getDeserializer(
819 java.lang.String mechType,
820 java.lang.Class _javaType,
821 javax.xml.namespace.QName _xmlType) {
822 return
823 new org.apache.axis.encoding.ser.BeanDeserializer(
824 _javaType, _xmlType, typeDesc);
825 }
826
827 }
828