1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.flags.messaging;
24  
25  import com.liferay.portal.service.ServiceContext;
26  
27  import java.io.Serializable;
28  
29  /**
30   * <a href="FlagsRequest.java.html"><b><i>View Source</i></b></a>
31   *
32   * @author Michael C. Han
33   * @author Brian Wing Shun Chan
34   */
35  public class FlagsRequest implements Serializable {
36  
37      public FlagsRequest() {
38      }
39  
40      public FlagsRequest(
41          String className, long classPK, String reporterEmailAddress,
42          long reportedUserId, String contentTitle, String contentURL,
43          String reason, ServiceContext serviceContext) {
44  
45          _className = className;
46          _classPK = classPK;
47          _reporterEmailAddress = reporterEmailAddress;
48          _reportedUserId = reportedUserId;
49          _contentTitle = contentTitle;
50          _contentURL = contentURL;
51          _reason = reason;
52          _serviceContext = serviceContext;
53      }
54  
55      public String getClassName() {
56          return _className;
57      }
58  
59      public long getClassPK() {
60          return _classPK;
61      }
62  
63      public String getComments() {
64          return _comments;
65      }
66  
67      public String getContentTitle() {
68          return _contentTitle;
69      }
70  
71      public String getContentURL() {
72          return _contentURL;
73      }
74  
75      public String getReason() {
76          return _reason;
77      }
78  
79      public long getReportedUserId() {
80          return _reportedUserId;
81      }
82  
83      public String getReporterEmailAddress() {
84          return _reporterEmailAddress;
85      }
86  
87      public ServiceContext getServiceContext() {
88          return _serviceContext;
89      }
90  
91      public void setClassName(String className) {
92          _className = className;
93      }
94  
95      public void setClassPK(long classPK) {
96          _classPK = classPK;
97      }
98  
99      public void setComments(String comments) {
100         _comments = comments;
101     }
102 
103     public void setContentTitle(String contentTitle) {
104         _contentTitle = contentTitle;
105     }
106 
107     public void setContentURL(String contentURL) {
108         _contentURL = contentURL;
109     }
110 
111     public void setReason(String reason) {
112         this._reason = reason;
113     }
114 
115     public void setReportedUserId(long reportedUserId) {
116         _reportedUserId = reportedUserId;
117     }
118 
119     public void setReporterEmailAddress(String reporterEmailAddress) {
120         _reporterEmailAddress = reporterEmailAddress;
121     }
122 
123     public void setServiceContext(ServiceContext serviceContext) {
124         _serviceContext = serviceContext;
125     }
126 
127     public String toString() {
128         StringBuilder sb = new StringBuilder();
129 
130         sb.append("{className=");
131         sb.append(_className);
132         sb.append(", classPK=");
133         sb.append(_classPK);
134         sb.append(", comments=");
135         sb.append(_comments);
136         sb.append(", contentTitle=");
137         sb.append(_contentTitle);
138         sb.append(", contentURL=");
139         sb.append(_contentURL);
140         sb.append(", reason=");
141         sb.append(_reason);
142         sb.append(", reportedUserId=");
143         sb.append(_reportedUserId);
144         sb.append(", reporterEmailAddress=");
145         sb.append(_reporterEmailAddress);
146         sb.append(", serviceContext=");
147         sb.append(_serviceContext);
148         sb.append("}");
149 
150         return sb.toString();
151     }
152 
153     private String _className;
154     private long _classPK;
155     private String _comments;
156     private String _contentTitle;
157     private String _contentURL;
158     private String _reason;
159     private long _reportedUserId;
160     private String _reporterEmailAddress;
161     private ServiceContext _serviceContext;
162 
163 }