1
7
8 package com.liferay.client.soap.portlet.messageboards.model;
9
10 public class MBMessageSoap implements java.io.Serializable {
11 private boolean allowPingbacks;
12
13 private boolean anonymous;
14
15 private boolean attachments;
16
17 private java.lang.String body;
18
19 private long categoryId;
20
21 private long classNameId;
22
23 private long classPK;
24
25 private long companyId;
26
27 private java.util.Calendar createDate;
28
29 private long groupId;
30
31 private long messageId;
32
33 private java.util.Calendar modifiedDate;
34
35 private long parentMessageId;
36
37 private long primaryKey;
38
39 private double priority;
40
41 private int status;
42
43 private long statusByUserId;
44
45 private java.lang.String statusByUserName;
46
47 private java.util.Calendar statusDate;
48
49 private java.lang.String subject;
50
51 private long threadId;
52
53 private long userId;
54
55 private java.lang.String userName;
56
57 private java.lang.String uuid;
58
59 public MBMessageSoap() {
60 }
61
62 public MBMessageSoap(
63 boolean allowPingbacks,
64 boolean anonymous,
65 boolean attachments,
66 java.lang.String body,
67 long categoryId,
68 long classNameId,
69 long classPK,
70 long companyId,
71 java.util.Calendar createDate,
72 long groupId,
73 long messageId,
74 java.util.Calendar modifiedDate,
75 long parentMessageId,
76 long primaryKey,
77 double priority,
78 int status,
79 long statusByUserId,
80 java.lang.String statusByUserName,
81 java.util.Calendar statusDate,
82 java.lang.String subject,
83 long threadId,
84 long userId,
85 java.lang.String userName,
86 java.lang.String uuid) {
87 this.allowPingbacks = allowPingbacks;
88 this.anonymous = anonymous;
89 this.attachments = attachments;
90 this.body = body;
91 this.categoryId = categoryId;
92 this.classNameId = classNameId;
93 this.classPK = classPK;
94 this.companyId = companyId;
95 this.createDate = createDate;
96 this.groupId = groupId;
97 this.messageId = messageId;
98 this.modifiedDate = modifiedDate;
99 this.parentMessageId = parentMessageId;
100 this.primaryKey = primaryKey;
101 this.priority = priority;
102 this.status = status;
103 this.statusByUserId = statusByUserId;
104 this.statusByUserName = statusByUserName;
105 this.statusDate = statusDate;
106 this.subject = subject;
107 this.threadId = threadId;
108 this.userId = userId;
109 this.userName = userName;
110 this.uuid = uuid;
111 }
112
113
114
119 public boolean isAllowPingbacks() {
120 return allowPingbacks;
121 }
122
123
124
129 public void setAllowPingbacks(boolean allowPingbacks) {
130 this.allowPingbacks = allowPingbacks;
131 }
132
133
134
139 public boolean isAnonymous() {
140 return anonymous;
141 }
142
143
144
149 public void setAnonymous(boolean anonymous) {
150 this.anonymous = anonymous;
151 }
152
153
154
159 public boolean isAttachments() {
160 return attachments;
161 }
162
163
164
169 public void setAttachments(boolean attachments) {
170 this.attachments = attachments;
171 }
172
173
174
179 public java.lang.String getBody() {
180 return body;
181 }
182
183
184
189 public void setBody(java.lang.String body) {
190 this.body = body;
191 }
192
193
194
199 public long getCategoryId() {
200 return categoryId;
201 }
202
203
204
209 public void setCategoryId(long categoryId) {
210 this.categoryId = categoryId;
211 }
212
213
214
219 public long getClassNameId() {
220 return classNameId;
221 }
222
223
224
229 public void setClassNameId(long classNameId) {
230 this.classNameId = classNameId;
231 }
232
233
234
239 public long getClassPK() {
240 return classPK;
241 }
242
243
244
249 public void setClassPK(long classPK) {
250 this.classPK = classPK;
251 }
252
253
254
259 public long getCompanyId() {
260 return companyId;
261 }
262
263
264
269 public void setCompanyId(long companyId) {
270 this.companyId = companyId;
271 }
272
273
274
279 public java.util.Calendar getCreateDate() {
280 return createDate;
281 }
282
283
284
289 public void setCreateDate(java.util.Calendar createDate) {
290 this.createDate = createDate;
291 }
292
293
294
299 public long getGroupId() {
300 return groupId;
301 }
302
303
304
309 public void setGroupId(long groupId) {
310 this.groupId = groupId;
311 }
312
313
314
319 public long getMessageId() {
320 return messageId;
321 }
322
323
324
329 public void setMessageId(long messageId) {
330 this.messageId = messageId;
331 }
332
333
334
339 public java.util.Calendar getModifiedDate() {
340 return modifiedDate;
341 }
342
343
344
349 public void setModifiedDate(java.util.Calendar modifiedDate) {
350 this.modifiedDate = modifiedDate;
351 }
352
353
354
359 public long getParentMessageId() {
360 return parentMessageId;
361 }
362
363
364
369 public void setParentMessageId(long parentMessageId) {
370 this.parentMessageId = parentMessageId;
371 }
372
373
374
379 public long getPrimaryKey() {
380 return primaryKey;
381 }
382
383
384
389 public void setPrimaryKey(long primaryKey) {
390 this.primaryKey = primaryKey;
391 }
392
393
394
399 public double getPriority() {
400 return priority;
401 }
402
403
404
409 public void setPriority(double priority) {
410 this.priority = priority;
411 }
412
413
414
419 public int getStatus() {
420 return status;
421 }
422
423
424
429 public void setStatus(int status) {
430 this.status = status;
431 }
432
433
434
439 public long getStatusByUserId() {
440 return statusByUserId;
441 }
442
443
444
449 public void setStatusByUserId(long statusByUserId) {
450 this.statusByUserId = statusByUserId;
451 }
452
453
454
459 public java.lang.String getStatusByUserName() {
460 return statusByUserName;
461 }
462
463
464
469 public void setStatusByUserName(java.lang.String statusByUserName) {
470 this.statusByUserName = statusByUserName;
471 }
472
473
474
479 public java.util.Calendar getStatusDate() {
480 return statusDate;
481 }
482
483
484
489 public void setStatusDate(java.util.Calendar statusDate) {
490 this.statusDate = statusDate;
491 }
492
493
494
499 public java.lang.String getSubject() {
500 return subject;
501 }
502
503
504
509 public void setSubject(java.lang.String subject) {
510 this.subject = subject;
511 }
512
513
514
519 public long getThreadId() {
520 return threadId;
521 }
522
523
524
529 public void setThreadId(long threadId) {
530 this.threadId = threadId;
531 }
532
533
534
539 public long getUserId() {
540 return userId;
541 }
542
543
544
549 public void setUserId(long userId) {
550 this.userId = userId;
551 }
552
553
554
559 public java.lang.String getUserName() {
560 return userName;
561 }
562
563
564
569 public void setUserName(java.lang.String userName) {
570 this.userName = userName;
571 }
572
573
574
579 public java.lang.String getUuid() {
580 return uuid;
581 }
582
583
584
589 public void setUuid(java.lang.String uuid) {
590 this.uuid = uuid;
591 }
592
593 private java.lang.Object __equalsCalc = null;
594 public synchronized boolean equals(java.lang.Object obj) {
595 if (!(obj instanceof MBMessageSoap)) return false;
596 MBMessageSoap other = (MBMessageSoap) obj;
597 if (obj == null) return false;
598 if (this == obj) return true;
599 if (__equalsCalc != null) {
600 return (__equalsCalc == obj);
601 }
602 __equalsCalc = obj;
603 boolean _equals;
604 _equals = true &&
605 this.allowPingbacks == other.isAllowPingbacks() &&
606 this.anonymous == other.isAnonymous() &&
607 this.attachments == other.isAttachments() &&
608 ((this.body==null && other.getBody()==null) ||
609 (this.body!=null &&
610 this.body.equals(other.getBody()))) &&
611 this.categoryId == other.getCategoryId() &&
612 this.classNameId == other.getClassNameId() &&
613 this.classPK == other.getClassPK() &&
614 this.companyId == other.getCompanyId() &&
615 ((this.createDate==null && other.getCreateDate()==null) ||
616 (this.createDate!=null &&
617 this.createDate.equals(other.getCreateDate()))) &&
618 this.groupId == other.getGroupId() &&
619 this.messageId == other.getMessageId() &&
620 ((this.modifiedDate==null && other.getModifiedDate()==null) ||
621 (this.modifiedDate!=null &&
622 this.modifiedDate.equals(other.getModifiedDate()))) &&
623 this.parentMessageId == other.getParentMessageId() &&
624 this.primaryKey == other.getPrimaryKey() &&
625 this.priority == other.getPriority() &&
626 this.status == other.getStatus() &&
627 this.statusByUserId == other.getStatusByUserId() &&
628 ((this.statusByUserName==null && other.getStatusByUserName()==null) ||
629 (this.statusByUserName!=null &&
630 this.statusByUserName.equals(other.getStatusByUserName()))) &&
631 ((this.statusDate==null && other.getStatusDate()==null) ||
632 (this.statusDate!=null &&
633 this.statusDate.equals(other.getStatusDate()))) &&
634 ((this.subject==null && other.getSubject()==null) ||
635 (this.subject!=null &&
636 this.subject.equals(other.getSubject()))) &&
637 this.threadId == other.getThreadId() &&
638 this.userId == other.getUserId() &&
639 ((this.userName==null && other.getUserName()==null) ||
640 (this.userName!=null &&
641 this.userName.equals(other.getUserName()))) &&
642 ((this.uuid==null && other.getUuid()==null) ||
643 (this.uuid!=null &&
644 this.uuid.equals(other.getUuid())));
645 __equalsCalc = null;
646 return _equals;
647 }
648
649 private boolean __hashCodeCalc = false;
650 public synchronized int hashCode() {
651 if (__hashCodeCalc) {
652 return 0;
653 }
654 __hashCodeCalc = true;
655 int _hashCode = 1;
656 _hashCode += (isAllowPingbacks() ? Boolean.TRUE : Boolean.FALSE).hashCode();
657 _hashCode += (isAnonymous() ? Boolean.TRUE : Boolean.FALSE).hashCode();
658 _hashCode += (isAttachments() ? Boolean.TRUE : Boolean.FALSE).hashCode();
659 if (getBody() != null) {
660 _hashCode += getBody().hashCode();
661 }
662 _hashCode += new Long(getCategoryId()).hashCode();
663 _hashCode += new Long(getClassNameId()).hashCode();
664 _hashCode += new Long(getClassPK()).hashCode();
665 _hashCode += new Long(getCompanyId()).hashCode();
666 if (getCreateDate() != null) {
667 _hashCode += getCreateDate().hashCode();
668 }
669 _hashCode += new Long(getGroupId()).hashCode();
670 _hashCode += new Long(getMessageId()).hashCode();
671 if (getModifiedDate() != null) {
672 _hashCode += getModifiedDate().hashCode();
673 }
674 _hashCode += new Long(getParentMessageId()).hashCode();
675 _hashCode += new Long(getPrimaryKey()).hashCode();
676 _hashCode += new Double(getPriority()).hashCode();
677 _hashCode += getStatus();
678 _hashCode += new Long(getStatusByUserId()).hashCode();
679 if (getStatusByUserName() != null) {
680 _hashCode += getStatusByUserName().hashCode();
681 }
682 if (getStatusDate() != null) {
683 _hashCode += getStatusDate().hashCode();
684 }
685 if (getSubject() != null) {
686 _hashCode += getSubject().hashCode();
687 }
688 _hashCode += new Long(getThreadId()).hashCode();
689 _hashCode += new Long(getUserId()).hashCode();
690 if (getUserName() != null) {
691 _hashCode += getUserName().hashCode();
692 }
693 if (getUuid() != null) {
694 _hashCode += getUuid().hashCode();
695 }
696 __hashCodeCalc = false;
697 return _hashCode;
698 }
699
700 private static org.apache.axis.description.TypeDesc typeDesc =
702 new org.apache.axis.description.TypeDesc(MBMessageSoap.class, true);
703
704 static {
705 typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.messageboards.portlet.liferay.com", "MBMessageSoap"));
706 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
707 elemField.setFieldName("allowPingbacks");
708 elemField.setXmlName(new javax.xml.namespace.QName("", "allowPingbacks"));
709 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
710 elemField.setNillable(false);
711 typeDesc.addFieldDesc(elemField);
712 elemField = new org.apache.axis.description.ElementDesc();
713 elemField.setFieldName("anonymous");
714 elemField.setXmlName(new javax.xml.namespace.QName("", "anonymous"));
715 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
716 elemField.setNillable(false);
717 typeDesc.addFieldDesc(elemField);
718 elemField = new org.apache.axis.description.ElementDesc();
719 elemField.setFieldName("attachments");
720 elemField.setXmlName(new javax.xml.namespace.QName("", "attachments"));
721 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
722 elemField.setNillable(false);
723 typeDesc.addFieldDesc(elemField);
724 elemField = new org.apache.axis.description.ElementDesc();
725 elemField.setFieldName("body");
726 elemField.setXmlName(new javax.xml.namespace.QName("", "body"));
727 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
728 elemField.setNillable(true);
729 typeDesc.addFieldDesc(elemField);
730 elemField = new org.apache.axis.description.ElementDesc();
731 elemField.setFieldName("categoryId");
732 elemField.setXmlName(new javax.xml.namespace.QName("", "categoryId"));
733 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
734 elemField.setNillable(false);
735 typeDesc.addFieldDesc(elemField);
736 elemField = new org.apache.axis.description.ElementDesc();
737 elemField.setFieldName("classNameId");
738 elemField.setXmlName(new javax.xml.namespace.QName("", "classNameId"));
739 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
740 elemField.setNillable(false);
741 typeDesc.addFieldDesc(elemField);
742 elemField = new org.apache.axis.description.ElementDesc();
743 elemField.setFieldName("classPK");
744 elemField.setXmlName(new javax.xml.namespace.QName("", "classPK"));
745 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
746 elemField.setNillable(false);
747 typeDesc.addFieldDesc(elemField);
748 elemField = new org.apache.axis.description.ElementDesc();
749 elemField.setFieldName("companyId");
750 elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
751 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
752 elemField.setNillable(false);
753 typeDesc.addFieldDesc(elemField);
754 elemField = new org.apache.axis.description.ElementDesc();
755 elemField.setFieldName("createDate");
756 elemField.setXmlName(new javax.xml.namespace.QName("", "createDate"));
757 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
758 elemField.setNillable(true);
759 typeDesc.addFieldDesc(elemField);
760 elemField = new org.apache.axis.description.ElementDesc();
761 elemField.setFieldName("groupId");
762 elemField.setXmlName(new javax.xml.namespace.QName("", "groupId"));
763 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
764 elemField.setNillable(false);
765 typeDesc.addFieldDesc(elemField);
766 elemField = new org.apache.axis.description.ElementDesc();
767 elemField.setFieldName("messageId");
768 elemField.setXmlName(new javax.xml.namespace.QName("", "messageId"));
769 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
770 elemField.setNillable(false);
771 typeDesc.addFieldDesc(elemField);
772 elemField = new org.apache.axis.description.ElementDesc();
773 elemField.setFieldName("modifiedDate");
774 elemField.setXmlName(new javax.xml.namespace.QName("", "modifiedDate"));
775 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
776 elemField.setNillable(true);
777 typeDesc.addFieldDesc(elemField);
778 elemField = new org.apache.axis.description.ElementDesc();
779 elemField.setFieldName("parentMessageId");
780 elemField.setXmlName(new javax.xml.namespace.QName("", "parentMessageId"));
781 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
782 elemField.setNillable(false);
783 typeDesc.addFieldDesc(elemField);
784 elemField = new org.apache.axis.description.ElementDesc();
785 elemField.setFieldName("primaryKey");
786 elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
787 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
788 elemField.setNillable(false);
789 typeDesc.addFieldDesc(elemField);
790 elemField = new org.apache.axis.description.ElementDesc();
791 elemField.setFieldName("priority");
792 elemField.setXmlName(new javax.xml.namespace.QName("", "priority"));
793 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
794 elemField.setNillable(false);
795 typeDesc.addFieldDesc(elemField);
796 elemField = new org.apache.axis.description.ElementDesc();
797 elemField.setFieldName("status");
798 elemField.setXmlName(new javax.xml.namespace.QName("", "status"));
799 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
800 elemField.setNillable(false);
801 typeDesc.addFieldDesc(elemField);
802 elemField = new org.apache.axis.description.ElementDesc();
803 elemField.setFieldName("statusByUserId");
804 elemField.setXmlName(new javax.xml.namespace.QName("", "statusByUserId"));
805 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
806 elemField.setNillable(false);
807 typeDesc.addFieldDesc(elemField);
808 elemField = new org.apache.axis.description.ElementDesc();
809 elemField.setFieldName("statusByUserName");
810 elemField.setXmlName(new javax.xml.namespace.QName("", "statusByUserName"));
811 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
812 elemField.setNillable(true);
813 typeDesc.addFieldDesc(elemField);
814 elemField = new org.apache.axis.description.ElementDesc();
815 elemField.setFieldName("statusDate");
816 elemField.setXmlName(new javax.xml.namespace.QName("", "statusDate"));
817 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
818 elemField.setNillable(true);
819 typeDesc.addFieldDesc(elemField);
820 elemField = new org.apache.axis.description.ElementDesc();
821 elemField.setFieldName("subject");
822 elemField.setXmlName(new javax.xml.namespace.QName("", "subject"));
823 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
824 elemField.setNillable(true);
825 typeDesc.addFieldDesc(elemField);
826 elemField = new org.apache.axis.description.ElementDesc();
827 elemField.setFieldName("threadId");
828 elemField.setXmlName(new javax.xml.namespace.QName("", "threadId"));
829 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
830 elemField.setNillable(false);
831 typeDesc.addFieldDesc(elemField);
832 elemField = new org.apache.axis.description.ElementDesc();
833 elemField.setFieldName("userId");
834 elemField.setXmlName(new javax.xml.namespace.QName("", "userId"));
835 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
836 elemField.setNillable(false);
837 typeDesc.addFieldDesc(elemField);
838 elemField = new org.apache.axis.description.ElementDesc();
839 elemField.setFieldName("userName");
840 elemField.setXmlName(new javax.xml.namespace.QName("", "userName"));
841 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
842 elemField.setNillable(true);
843 typeDesc.addFieldDesc(elemField);
844 elemField = new org.apache.axis.description.ElementDesc();
845 elemField.setFieldName("uuid");
846 elemField.setXmlName(new javax.xml.namespace.QName("", "uuid"));
847 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
848 elemField.setNillable(true);
849 typeDesc.addFieldDesc(elemField);
850 }
851
852
855 public static org.apache.axis.description.TypeDesc getTypeDesc() {
856 return typeDesc;
857 }
858
859
862 public static org.apache.axis.encoding.Serializer getSerializer(
863 java.lang.String mechType,
864 java.lang.Class _javaType,
865 javax.xml.namespace.QName _xmlType) {
866 return
867 new org.apache.axis.encoding.ser.BeanSerializer(
868 _javaType, _xmlType, typeDesc);
869 }
870
871
874 public static org.apache.axis.encoding.Deserializer getDeserializer(
875 java.lang.String mechType,
876 java.lang.Class _javaType,
877 javax.xml.namespace.QName _xmlType) {
878 return
879 new org.apache.axis.encoding.ser.BeanDeserializer(
880 _javaType, _xmlType, typeDesc);
881 }
882
883 }
884